graphdb-workbench 2.8.8-TR2 → 2.8.9-RC1
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.
- package/dist/{10.5ddeb0c3a1fe59eae189.bundle.js → 10.d8d48ce0ca42085e7864.bundle.js} +1 -1
- package/dist/100.bf4a4f519b81c43fafc1.bundle.js +1 -0
- package/dist/{100.39911dc242bc083427b5.bundle.js → 101.444ee8c4ad450a80c227.bundle.js} +1 -1
- package/dist/{101.3c81e5463ac7bd87920b.bundle.js → 102.ec42287cf6022b9eb02f.bundle.js} +1 -1
- package/dist/{102.fe653ba57ff2b81cdf07.bundle.js → 103.82c4dfa967a6f2407f11.bundle.js} +1 -1
- package/dist/{103.663db6e061c3509a1f78.bundle.js → 104.cb138bb3b878e001e32f.bundle.js} +1 -1
- package/dist/{104.5bde157512536df59792.bundle.js → 105.8c2014a729e3e29b78ae.bundle.js} +1 -1
- package/dist/{105.af4d75298548559a6b91.bundle.js → 106.4aa823fde540a06e4083.bundle.js} +1 -1
- package/dist/{106.1c526cd8378b98858e06.bundle.js → 107.09c059b73119d06600c0.bundle.js} +1 -1
- package/dist/{107.4bf934d8a7d093ea4cd6.bundle.js → 108.3c5b6b3268b21218a7a5.bundle.js} +1 -1
- package/dist/{108.8ea1a51acbd345907740.bundle.js → 109.57128c0d6212e0a46ad3.bundle.js} +1 -1
- package/dist/{109.a71df4aa4e00b47f5616.bundle.js → 110.af42819ef3cf70e39b25.bundle.js} +1 -1
- package/dist/{110.94d5a65ffa5d8891406f.bundle.js → 111.f548b124aab10b4b1c9e.bundle.js} +1 -1
- package/dist/{111.a8212d3445aa614f99d9.bundle.js → 112.f754348fe5d0086f677e.bundle.js} +1 -1
- package/dist/{112.393b01f7630bb30617c9.bundle.js → 113.d7c1a18d18713eece29a.bundle.js} +1 -1
- package/dist/{113.cbdf7d68d2471ced1ef4.bundle.js → 114.f719039be05fc7b214c5.bundle.js} +1 -1
- package/dist/{114.85465110c4fbd79849c7.bundle.js → 115.8dab67853260483ced85.bundle.js} +1 -1
- package/dist/{115.a6c405de2fe018cc6033.bundle.js → 116.ed2bb3fba38737cd21a2.bundle.js} +1 -1
- package/dist/{116.227e24944ca1c987460c.bundle.js → 117.8dc1a253f70f4727c027.bundle.js} +1 -1
- package/dist/{117.125beedc641ab53f511f.bundle.js → 118.d197d3c97039ee68643d.bundle.js} +1 -1
- package/dist/{118.a6e09ae6273a9e7714ff.bundle.js → 119.ee1dd79fb171af44577c.bundle.js} +1 -1
- package/dist/{12.8078044ba9dc5aefb919.bundle.js → 12.ed4bc07d06db664a8a2c.bundle.js} +1 -1
- package/dist/{119.f672e5bd50a1a9476dcc.bundle.js → 120.e25b821b13d853a321b5.bundle.js} +1 -1
- package/dist/{120.8725206e84a9f2b1fc44.bundle.js → 121.45b40da06cc7a71ae79f.bundle.js} +1 -1
- package/dist/{121.787215b44b2f8f4d2850.bundle.js → 122.4e50eaaadaf3dd57b2b2.bundle.js} +1 -1
- package/dist/{122.39e92001e2f86ed551f4.bundle.js → 123.2cc29edc9b32fcc35a5c.bundle.js} +1 -1
- package/dist/{123.30b2e28436b10116e05a.bundle.js → 124.5bf5f52df172c58b05d0.bundle.js} +1 -1
- package/dist/{124.ff59b5de798cc188f089.bundle.js → 125.53a564a1540cfbe90d0a.bundle.js} +1 -1
- package/dist/{125.04369aedfa25c24c03cf.bundle.js → 126.dc613e6d7c178aa1f71d.bundle.js} +1 -1
- package/dist/{126.20cf9bbd99138d8275e9.bundle.js → 127.aef2e7fa7136b5fb20dc.bundle.js} +1 -1
- package/dist/{127.fa70afe0caa6a82a487d.bundle.js → 128.c47682ae8c6f4827775e.bundle.js} +1 -1
- package/dist/{128.d6242296779b40ceee78.bundle.js → 129.79a97fa0c54c52a26f86.bundle.js} +1 -1
- package/dist/{13.e28878c924d54fd6affc.bundle.js → 13.49bf149227b1a2f915a6.bundle.js} +1 -1
- package/dist/{136.7045cfc939cc42c457de.bundle.js → 136.3b7b30e23a57edaccaad.bundle.js} +1 -1
- package/dist/{140.20b791dd9206aec902c3.bundle.js → 140.0824cff78d35896e19a1.bundle.js} +1 -1
- package/dist/{146.725d89d31b4a9b742d3f.bundle.js → 146.a0a2b0a47fa6363c2be0.bundle.js} +1 -1
- package/dist/{15.7ee3e6ec073366903f69.bundle.js → 15.2eabfe524e0689eb26e9.bundle.js} +1 -1
- package/dist/{16.cfcb97f2798c0f998b6d.bundle.js → 16.0ead6802df331f763762.bundle.js} +1 -1
- package/dist/{160.09bb953d13e3d63eed4f.bundle.js → 160.9df03bd5ab91e27a7e3c.bundle.js} +1 -1
- package/dist/{17.330b4db61f4286346e1d.bundle.js → 17.bcc91ddb954e2e1ee5a2.bundle.js} +1 -1
- package/dist/{18.131accbaf7a1f9d61001.bundle.js → 18.a4b27592c1b39f2b754b.bundle.js} +1 -1
- package/dist/186.d2a7c6668b2f2198549a.bundle.js +1 -1
- package/dist/{19.417d4a0cb5047abff48e.bundle.js → 19.33b6dc6ba1cea3b94465.bundle.js} +1 -1
- package/dist/{192.2d6358f31811ab3464ba.bundle.js → 192.a238bb9bb9a833ef304b.bundle.js} +1 -1
- package/dist/{198.f34180ba04b8f2d651ab.bundle.js → 198.568088e342b26f534c8f.bundle.js} +1 -1
- package/dist/{2.6684bcc4e367bcb9e628.bundle.js → 2.3837bd63288e2a826720.bundle.js} +1 -1
- package/dist/{20.ee5088425c87c66ae8d0.bundle.js → 20.204efddc3b65e3417f98.bundle.js} +1 -1
- package/dist/{200.7ff10cae741e1382bcb3.bundle.js → 200.6eee537413665b02c23f.bundle.js} +1 -1
- package/dist/{206.750777aab552b2c97c68.bundle.js → 206.7f16c0fcd5d65d82f869.bundle.js} +1 -1
- package/dist/{21.7ad047ae5bb8c0a68163.bundle.js → 21.bf90c5dbc6751926b09f.bundle.js} +1 -1
- package/dist/{217.76f3e1cda60f9abe1701.bundle.js → 217.57a8407776a632ad45ff.bundle.js} +1 -1
- package/dist/{226.a3b6f063cd117f6809e5.bundle.js → 226.914d0a244a06d6eff230.bundle.js} +1 -1
- package/dist/{23.56301f1a97cc94310f2d.bundle.js → 23.b57e6b08f36eaa6cfa1c.bundle.js} +1 -1
- package/dist/{234.a223a40490dbaf451cd7.bundle.js → 234.d92bb857de797a88568d.bundle.js} +1 -1
- package/dist/{235.2d41cfd545adcebf23d1.bundle.js → 235.1182f064fb17ad3f55d1.bundle.js} +1 -1
- package/dist/{24.0fee5a7050aa01c43593.bundle.js → 24.77404fb1a29f7448cfa9.bundle.js} +1 -1
- package/dist/{25.42411835319827f4bfc1.bundle.js → 25.fd2151cfa79bb46e568e.bundle.js} +1 -1
- package/dist/{250.f20ba52ca6ed81d5d179.bundle.js → 250.ad498a8076662df1ed87.bundle.js} +1 -1
- package/dist/{26.68da73b9eb0e20ef6a04.bundle.js → 26.b4cf5132c870052d06f3.bundle.js} +1 -1
- package/dist/{261.bb146605dd28d704aa16.bundle.js → 261.01d68aa8402ef6ac3a38.bundle.js} +1 -1
- package/dist/{266.929c96d6372d56668ae0.bundle.js → 266.6b132ba2f789d8526651.bundle.js} +1 -1
- package/dist/{27.9170cfa5bc0b60e51d82.bundle.js → 27.af756f3e9a79334cb6f9.bundle.js} +1 -1
- package/dist/{271.f51d241774a8df3f20c7.bundle.js → 271.57cac2aa90c6b4409f51.bundle.js} +1 -1
- package/dist/{273.235fcf7e993aace5557d.bundle.js → 273.532af8c0707be80576a4.bundle.js} +1 -1
- package/dist/{274.4489e0c0b2b5457a3513.bundle.js → 274.9e29d76ce7a1be779fe2.bundle.js} +1 -1
- package/dist/{28.decaa67e47ac79ba59a3.bundle.js → 28.f64cabb9e00e2f08ed6a.bundle.js} +1 -1
- package/dist/{288.b263f48bcaa5db590821.bundle.js → 288.942d138e6c489a3ff6df.bundle.js} +1 -1
- package/dist/{29.8b089f6adfabb19d8073.bundle.js → 29.073b9b1176718648e438.bundle.js} +1 -1
- package/dist/{293.88a6655ca50918b1edc4.bundle.js → 293.35cf89ffdbbcab6c39de.bundle.js} +1 -1
- package/dist/{3.31747e6f9dde0db936ea.bundle.js → 3.f26cefadb24ee2836b8a.bundle.js} +1 -1
- package/dist/{30.9345c96cc253adab0ae0.bundle.js → 30.3530af7acf6dd4af07b4.bundle.js} +1 -1
- package/dist/{302.2a26c6c4f78a037c6d3e.bundle.js → 302.9e008d753a24f66797ac.bundle.js} +1 -1
- package/dist/{307.d188e735148ef48fbe80.bundle.js → 307.99dec37cee341acf70d6.bundle.js} +1 -1
- package/dist/{31.614dbf7498a1552e355c.bundle.js → 31.19f116ce71f83ce6c3df.bundle.js} +1 -1
- package/dist/{319.53ee0f1a2a998747c6bd.bundle.js → 319.6ee5e4d0efbb256ad040.bundle.js} +1 -1
- package/dist/{32.a52b26adcd7755172626.bundle.js → 32.3649b0fc7e7136790d43.bundle.js} +1 -1
- package/dist/{320.80795d19cc7aa6ccaa28.bundle.js → 320.5cb0f10abd3ca266298e.bundle.js} +1 -1
- package/dist/{328.e966458d8c8ceca910de.bundle.js → 328.b769a2c7965fcc07d289.bundle.js} +1 -1
- package/dist/{33.db577a77e1237b4997ef.bundle.js → 33.d4864cfbed6bb7c30c95.bundle.js} +1 -1
- package/dist/{330.38fcfd70d382ec90607d.bundle.js → 330.f66ff693ab2f86440650.bundle.js} +1 -1
- package/dist/{34.12bd97ec9f0f5411ede8.bundle.js → 34.4a17e8b0f3f203963d5e.bundle.js} +1 -1
- package/dist/342.cead059cad2a860fb1db.bundle.js +1 -0
- package/dist/348.b09b5350639beca8034e.bundle.js +1 -1
- package/dist/{35.e22a1a214303b341a46d.bundle.js → 35.2920265e8348ab78e718.bundle.js} +1 -1
- package/dist/354.474aa50f195477e48af9.bundle.js +1 -1
- package/dist/357.603fceaaeb0992019407.bundle.js +1 -1
- package/dist/358.5398b6635b1fc42b581a.bundle.js +1 -1
- package/dist/359.a2f8d884c46015ae98ed.bundle.js +1 -1
- package/dist/{36.1092cd7bf5d220bb9063.bundle.js → 36.99a2c4a2393ff13ec514.bundle.js} +1 -1
- package/dist/360.40b2c9f3610b0f8dea80.bundle.js +1 -1
- package/dist/361.91ac80c8c5586b0546a5.bundle.js +1 -1
- package/dist/37.d519cb3af9d6205f0015.bundle.js +1 -0
- package/dist/{38.fb2659cad2c86b5ec58d.bundle.js → 38.23f902df4ed8fbfc7fcf.bundle.js} +1 -1
- package/dist/{39.96fb293a7ae3ef7a5ad9.bundle.js → 39.171886987f5ef7d17208.bundle.js} +1 -1
- package/dist/391.45bf699afe7aba531cd9.bundle.js +1 -1
- package/dist/{40.159ef797572a6c14eab5.bundle.js → 40.0937e585f9f5a7eaab82.bundle.js} +1 -1
- package/dist/403.61a61ce1c12385533859.bundle.js +1 -1
- package/dist/404.b53dc0ad0aaedcf3f809.bundle.js +1 -1
- package/dist/405.eb8906e00f241da08275.bundle.js +1 -1
- package/dist/406.48298a2b9c49b99170f8.bundle.js +1 -1
- package/dist/407.56a20539c08f5d616640.bundle.js +1 -1
- package/dist/409.72d548b44e2f1c414a24.bundle.js +1 -1
- package/dist/{41.8a09e7ba27f7614de053.bundle.js → 41.3b2afebd8ef778234327.bundle.js} +1 -1
- package/dist/410.df9406357dc52e98d0c4.bundle.js +1 -1
- package/dist/411.3a8907f7c02b1e9581e2.bundle.js +1 -1
- package/dist/412.5feece7f4c5164d2eadb.bundle.js +1 -1
- package/dist/{42.68cf9fea9586d95c7ef2.bundle.js → 42.51a2b146401e3d3c44fd.bundle.js} +1 -1
- package/dist/43.c3b8fc48a5d69126ff55.bundle.js +1 -0
- package/dist/{44.582668c8e60673ee9a89.bundle.js → 44.0b6f6369f9c157f2243c.bundle.js} +1 -1
- package/dist/46.5baa02d0ce0f4e4bec79.bundle.js +1 -0
- package/dist/{47.a0af564fb81592c87a50.bundle.js → 47.c7898dbc38a6a6e9321b.bundle.js} +1 -1
- package/dist/{48.067da85ef40da92d258a.bundle.js → 48.4a5b02907ad2d1a2792f.bundle.js} +1 -1
- package/dist/{49.ca18c72cba3d68131fdb.bundle.js → 49.143329d875c1714aec89.bundle.js} +1 -1
- package/dist/{50.271eee82fbebc9d53f38.bundle.js → 50.385486fe0efbefd5dfa9.bundle.js} +1 -1
- package/dist/{51.4ac9662be57037924446.bundle.js → 51.9f3c96f8a93b54423852.bundle.js} +1 -1
- package/dist/{52.1470d5ed8b99f64d5ce2.bundle.js → 52.ff20925f8f7656382d7b.bundle.js} +1 -1
- package/dist/{53.f13a957ecbd28e1125c7.bundle.js → 53.e286cd8cfb636fcec996.bundle.js} +1 -1
- package/dist/{54.c875b7240154b221bebb.bundle.js → 54.326b8c0143c463fc8e2d.bundle.js} +1 -1
- package/dist/55.4009a0d60dea722c108d.bundle.js +1 -0
- package/dist/{55.49f77e42bc983dcbfacc.bundle.js → 56.a581f6f1ded6a4d3d08b.bundle.js} +1 -1
- package/dist/{56.5a4901fea60239d0b3e0.bundle.js → 57.aa39c7d23ece602d952f.bundle.js} +1 -1
- package/dist/{57.1bb4040e33a9a35f5b9f.bundle.js → 58.fad69b0e6153a06c83b7.bundle.js} +1 -1
- package/dist/{58.394c32af3b117b179610.bundle.js → 59.84e7285984168a313d36.bundle.js} +1 -1
- package/dist/{6.f8af74652bcab7953736.bundle.js → 6.73f6adae3ab11729ebf2.bundle.js} +1 -1
- package/dist/{59.e50dc5ce41dd02cf3b3d.bundle.js → 60.ad49b739e4b8f2cdbce7.bundle.js} +1 -1
- package/dist/{60.95c6753d580f3a716b22.bundle.js → 61.ee14d8cda3708fe9c287.bundle.js} +1 -1
- package/dist/{61.f553a4c10a25b9af3cd7.bundle.js → 62.092aacacd064526783c0.bundle.js} +1 -1
- package/dist/{62.48b219154c6345908a80.bundle.js → 63.9537a1fd0366d5518114.bundle.js} +1 -1
- package/dist/64.1dd28ef2f60fe1ba23a5.bundle.js +1 -0
- package/dist/{64.04c60a42b228c234e2ad.bundle.js → 65.4c0218d3ba1faae1f6ad.bundle.js} +1 -1
- package/dist/{65.bb26ca0693ef27c414a7.bundle.js → 66.2a2d9bf0e595ca627c78.bundle.js} +1 -1
- package/dist/{66.f19c0287fadf05c84858.bundle.js → 67.a4e87ab3032de83a0d71.bundle.js} +1 -1
- package/dist/{67.6b37a09a02d11c37bcaa.bundle.js → 68.66efe1b03756e3052e35.bundle.js} +1 -1
- package/dist/{68.9ebaf6d51e22177c8ba2.bundle.js → 69.fd10e482a3491294f900.bundle.js} +1 -1
- package/dist/{7.e59eae3aa5e9e0ea5a0e.bundle.js → 7.c7a405d7dc99c9ebee48.bundle.js} +1 -1
- package/dist/70.38ae428de620fbf7602d.bundle.js +1 -0
- package/dist/{69.f3be67c2243892d32055.bundle.js → 71.e18795e8eaed8f747ce5.bundle.js} +1 -1
- package/dist/{70.415393ee813d58975172.bundle.js → 72.a53c1a358c3335c3eaa1.bundle.js} +1 -1
- package/dist/{71.e89efd706a10aea2074e.bundle.js → 73.d442bfb6f448e72c5bce.bundle.js} +1 -1
- package/dist/{72.6f58ccfef39ec2ee9614.bundle.js → 74.05569d4f46a43d6d56e4.bundle.js} +1 -1
- package/dist/{73.53bbbd74f7de2913152b.bundle.js → 75.e226c0d22ed7ff1b57ee.bundle.js} +1 -1
- package/dist/{74.184ffc6fc6053f5c645d.bundle.js → 76.afa96077de497c981882.bundle.js} +1 -1
- package/dist/{75.441343592edbcf27a029.bundle.js → 77.9fa02265d836024fdf79.bundle.js} +1 -1
- package/dist/{76.055e216b311e1817484e.bundle.js → 78.9f81b2060ae650976ae7.bundle.js} +1 -1
- package/dist/{77.c75c1df7b8e2c4855b17.bundle.js → 79.3fc17aa270c5a6477e9c.bundle.js} +1 -1
- package/dist/{8.28f2c0d888f5e99cfbc9.bundle.js → 8.18ec3a5b3f95a7965e71.bundle.js} +1 -1
- package/dist/{78.bd5758f93518290f477f.bundle.js → 80.7de02802c242d6cf125c.bundle.js} +1 -1
- package/dist/{79.1d57915d970df0a37229.bundle.js → 81.66b9a961188d712b1d48.bundle.js} +1 -1
- package/dist/{80.c83c5d743d89a63e7437.bundle.js → 82.8c402a2cedd2441c3f3c.bundle.js} +1 -1
- package/dist/{81.d04604229fe4fdd02601.bundle.js → 83.15cd8f06607b23e5e901.bundle.js} +1 -1
- package/dist/{82.a8e009ab0c08b859d2ce.bundle.js → 84.825f8eaa43e71f73f25d.bundle.js} +1 -1
- package/dist/{83.80c0e99346b0e55b33a5.bundle.js → 85.00ce4d8f4433d87bf54e.bundle.js} +1 -1
- package/dist/{84.891be8b57abdab473123.bundle.js → 86.ffeb1acd50a34948e089.bundle.js} +1 -1
- package/dist/{86.33c18744f8b1ae858a66.bundle.js → 87.9ac37a1a4a11ef7dfbac.bundle.js} +1 -1
- package/dist/{87.a623d6e7d303f6f34851.bundle.js → 88.5b052707f2cd26eb7890.bundle.js} +1 -1
- package/dist/{88.11dcfbd80b70ce8140af.bundle.js → 89.76461444a1cb2b2e1114.bundle.js} +1 -1
- package/dist/{9.4b42fc29ab253cd7ad0d.bundle.js → 9.d57134d0b4eb2e6f4ee6.bundle.js} +1 -1
- package/dist/{89.2c22dfa2ddf7c65e8f07.bundle.js → 90.7934551daab93be805ba.bundle.js} +1 -1
- package/dist/{90.d64c9e9798606a8a2488.bundle.js → 91.de9fe730d2b00227b9d4.bundle.js} +1 -1
- package/dist/{91.53d392a817902243fd14.bundle.js → 92.f4a3984a912edbb06838.bundle.js} +1 -1
- package/dist/{92.4c7f6ae785e5c2726adf.bundle.js → 93.e22a88d63bd4fc5f616c.bundle.js} +1 -1
- package/dist/{93.44989fd952e4ee29a14d.bundle.js → 94.f731de3062bce3990e2f.bundle.js} +1 -1
- package/dist/{94.8f5fc9e6922907cdf8d0.bundle.js → 95.5fdf43bda2882304ace9.bundle.js} +1 -1
- package/dist/{95.7a98715e44233a65f0b6.bundle.js → 96.21c753d787869238e5ed.bundle.js} +1 -1
- package/dist/{96.b2a0154600564a0bf2c8.bundle.js → 97.13cd4feb8916c17b8b20.bundle.js} +1 -1
- package/dist/{97.19320ba399d9b0bc4a3d.bundle.js → 98.6379c1708e09a721cc36.bundle.js} +1 -1
- package/dist/{98.53c28cc4683594868437.bundle.js → 99.bfe2ea3e30bb6b0e9045.bundle.js} +1 -1
- package/dist/{bundle.8b5133c2bd45c3446e7b.bundle.js → bundle.f1f997c1b702d546a4e1.bundle.js} +5 -5
- package/dist/css/autocomplete.css +5 -0
- package/dist/css/rdf-class-hierarchy.css +1 -1
- package/dist/index.html +3 -3
- package/dist/js/angular/autocomplete/templates/modal/add-label.html +5 -2
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/license-checker.json +2 -2
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +8 -10
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +12 -12
- package/package.json +1 -1
- package/dist/129.e20705a1f5be2410d666.bundle.js +0 -1
- package/dist/342.ca94acdc8de22e22241a.bundle.js +0 -1
- package/dist/37.fbd78997b9e6a3530e15.bundle.js +0 -1
- package/dist/43.53bafbaf1332f99c7e74.bundle.js +0 -1
- package/dist/46.eb3af10b1fccbfa2f5bf.bundle.js +0 -1
- package/dist/63.9c60525f7eed7756e83e.bundle.js +0 -1
- package/dist/85.945ee0e14f628a4fa4a1.bundle.js +0 -1
- package/dist/99.bc85d568135caa51630f.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[61,297],{152:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",n),n.$inject=["$http"];function n(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,n){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:n}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,n,r){return e.get("rest/dependencies/matrix",{params:{mode:n,classes:_.map(t,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(t,n){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:n}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,n,r){return e.get("rest/dependencies/predicates",{params:{from:t,to:n,mode:"all",graphURI:r}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let n={headers:{"Content-Type":"application/json"}};return n=Object.assign(n,t),e.post("rest/explore-graph/graph",n)},getRdfsLabelAndComment:function(t,n,r){const a=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(a,{uri:t,languages:n}),headers:{Accept:"application/json"}})}}}},262:function(e,t,n){"use strict";n.r(t);var r=n(552);n(152);function a(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(n){n.$watch("dependenciesData",(function(){if(n.dependenciesData){const a=n.dependenciesData;!function(a,s){if(function(){let e=!0;for(const t of a){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),i=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){i.style("opacity",0)}));const c=Math.min(800,800)/2.8,d=c-24,p=d3.arc().innerRadius(d).outerRadius(c),l=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),u=d3.ribbon().radius(d),g=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");g.append("circle").attr("r",c).style("fill","none");const f=l(a),h=g.selectAll(".group").data(f.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=h.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));h.append("title").text((function(e,t){return s[t]})),h.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",p).style("fill",(function(e,t){return o(t)})),h.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(d+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return s[e.index]}));const m=g.selectAll(".chord").data(f).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",u);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,r){const a=s[r.source.index],o=s[r.target.index],c=e.pageX,d=e.pageY;t.getPredicates(a,o,n.selectedGraph&&n.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+a+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",i.html(t).style("left",c+"px").style("top",d+"px")})),i.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){g.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=r.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(a.matrix,a.nodes,a.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",a),a.$inject=["$repositories","GraphDataRestService"]},539:function(e,t,n){var r,a;r=[n(547)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(547)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},552:function(e,t,n){"use strict";n(539);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{259:function(t,e,r){"use strict";r.r(e);var n=r(552),a=r(551);r(13);function o(t,e,r,o,s,c,i,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),y=d3.drag().subject((function(t){return t})).on("start",(function(t,e){g.stop(),e.fx=t.x,e.fy=t.y,d3.select(this).classed("selected",!0)})).on("end",(function(t,e){e.fx=null,e.fy=null,d3.select(this).classed("selected",!1),b?(g.alpha(.2).restart(),b=!1):g.restart()})).on("drag",(function(t,e){b=!0,g.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y})),x=p.append("defs");x.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var t=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.8.8-TR2");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var t=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");t.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var e=16+1200/18/2.5,r=e+1200/90;t.append("circle").attrs({class:"legend-class-node",cx:(16+e)/2,cy:30,r:1200/18/4.5}),t.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),t.append("circle").attrs({class:"legend-object-node",cx:(16+e)/2,cy:70,r:1200/110/1.25}),t.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),t.append("circle").attrs({class:"legend-datatype-node",cx:(16+e)/2,cy:70+1200/45,r:1200/110/2}),t.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),t.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:e,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),t.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:e,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),t.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:e,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)"),t.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var m=s.search().uri,v=s.search().name;const k=s.search().collapsed;(function(t,e){o.getDomainRangeData(t,e).success((function(t,e,r){u.domainRangeGraphData=t})).error((function(t){d.error("Request for "+v+" failed!")}))})(m,k),$(window).on("popstate",(function(){c.set(i.DOMAIN_RANGE_WENT_BACK,!0)})),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(c.set(i.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==c.get(i.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:m,name:v,collapsed:e})}(u.collapseEdges),c.remove(i.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const P=r.nodes,j=r.links;g.nodes(P).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(j).distance(1200/3.5));var n=p.selectAll(".link").data(j).enter().append("g");function o(t){t.style("stroke",f),t.style("stroke-width",2),t.attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)")}var c,i,d=0;n.each((function(t){if(t.objectPropNodeClassUri!==m)c=n.append("line").attrs({class:"link","marker-end":"url("+s.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=1200/18;break;case"objectRight":t.targetRadius=1200/110;break;case"datatype":t.targetRadius=1200/110/2;break;default:t.targetRadius=0}var e=d3.select(this);t.targetNodeEdgeCount>1?o(e):t.implicit&&e.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(i)){i=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+s.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=t.targetNodeEdgeCount)>1&&o(d3.select(".loop-link"))}}));var x={};function k(){$.isEmptyObject(x)||(x.text.style("fill","black"),x.background.style("fill","#f0f0f0"))}function b(t,e){k(),x.text=d3.select(this),x.background=d3.select(this.previousSibling),x.text.style("fill","white"),x.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e})),t.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",k)}));var w=n.append("text").attr("class",(function(t){return t.objectPropNodeClassUri===m?"loop-link-property-name":"property-name"})).attr("dx",(function(t){return 1200/18/2*("objectLeft"===t.propertyType?1:-1)})).style("text-anchor",(function(t){return"objectLeft"===t.propertyType?"end":"start"})).style("font-size",1200/90).text((function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name}));w.each((function(t){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",b):r.on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var E=n.append("rect").attr("class",(function(t){return t.objectPropNodeClassUri!==m?"link-background":"loop-link-background"})).attr("width",(function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4})).attr("height",(function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2})).attr("transform",(function(t){var e=2-1200/18/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"})).on("click",(function(t){t.stopPropagation()})),N=p.selectAll(".node").data(P).enter().append("g"),R=N.filter((function(t){return t.objectPropClassUri!==m})).append("circle").each((function(t){var e=d3.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+s.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:1200/110/2}):e.attrs({class:"object-prop-node",r:1200/110})})).call(y);d3.selectAll(".object-prop-node").on("dblclick",(function(e,r,n){u.$apply((function(){t.$broadcast("reloadDomainRangeGraphView",r,n)}))})),N.filter((function(t){return t.objectPropClassName&&t.objectPropClassUri!==m})).append("text").attr("class",(function(t){return t.classPosition+"-class-label"})).style("font-size",1200/90).text((function(t){return t.objectPropClassName})).on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var C=N.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(t){return a.a.Text.calcFontSize(v,1200/18)})).text(v).on("click",(function(){e.open("resource?uri="+encodeURIComponent(m),"_blank")}))}));var T=p.select(".class-node + text"),A=d3.select(".class-node"),L=d3.selectAll(".loop-link-background"),M=d3.selectAll(".loop-link-property-name");if(w=d3.selectAll(".property-name"),!angular.isUndefined(i)){var U=[];L.each((function(t,e){d3.select(this);U.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})}))}g.on("tick",(function(t){var e=8*g.alpha();function r(t){var e=t.x+1200/18*2,r=t.y-1200/18/1.9;var n=[];L.each((function(a,o){n.push(a),o<h?function(n,a){var o=$.grep(U,(function(t){return t.idx==a}));a>0&&(e+=parseFloat(a*(o[0].height/(a/1.4)))),n.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(d3.select(this),o):d3.select(this).remove()})),function(t){var e;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=t,e=this.getComputedTextLength()})).on("click",b),d3.select(".view-more-preds-rect").attr("height",e+4)}(n)}c.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.targetX})).attr("y2",(function(t){return t.targetY})).each((function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius})),R.each((function(t){"main"!==t.classPosition||angular.isUndefined(i)||(!function(t){var e=t.x+64,r=t.y-1200/18/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var n=$.grep(U,(function(t){return t.idx==r})),a=0;r>0&&(a=parseFloat(2*r*(n[0].height/1.4)));var o=t.x,s=t.y-1200/18*2.1-a;e.attrs({x:o,y:s}).moveToFront()}M.each((function(t,r){var n=d3.select(this),a=M.size()-h;a<0?e(n,r):(0==r&&!u.collapseEdges&&a>1&&(!function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),a),e(n,r)),r<h?e(n,r):n.remove())}))}(t),r(t)),t.objectPropClassUri!==m&&d3.select(this).attr("cx",(function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=A.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x})).attr("cy",(function(t){return t.y}))})),T.attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).moveToFront(),E.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),w.attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),C.attr("x",(function(t){return"right"===t.classPosition?t.x+1200/110*1.2:t.x-1200/110*1.2})).attr("y",(function(t){return t.y})).moveToFront()}))}}));let b=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",o),o.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},539:function(t,e,r){var n,a;n=[r(547)],void 0===(a=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),r=select(this);for(var n in t)r.attr(n,t[n])}))}function e(t,e){for(var r in e)t.attr(r,e[r]);return t}return"undefined"==typeof d3&&(d3=r(547)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?t:e)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,n))||(t.exports=a)},551:function(t,e,r){"use strict";r(539);var n=n||{};n.Text=function(){function t(t,e,r,n){r=r||10;var a=e/3;return"string"==typeof t?(a*=10/(t.substring(0,e/3).length+1.5),a+=1,t.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<r&&(a=r),Math.round(a)):(a<r&&(a=r),Math.round(a))}return{calcFontSizeRaw:t,calcFontSize:function(e,r,n,a){return t(e,r,n)+"px"},getTextWithElipsisIfNeeded:function(t,e){return"string"==typeof t&&t.length>e?t.substring(0,e-3)+"...":t}}}(),n.Transition={fadeIn:function(t,e){t.style("opacity",0).transition().duration(e).style("opacity",1)},fadeOut:function(t,e){t.style("opacity",1).transition().duration(e).style("opacity",0)}},n.Click=function(){const t=function(t,r){let n,a=1,o=arguments.length;for(;++a<o;)n=arguments[a],t[n]=e(t,r,r[n]);return t};function e(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}return{delayDblClick:function(){var e=d3.dispatch("click","dblclick");return t((function(t){var r,n=null;t.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),t.on("mouseup",(function(t,a){var o,s,c;(s=r,c=d3.pointer(document.body),Math.sqrt(Math.pow(s[0]-c[0],2),Math.pow(s[1]-c[1],2))>5)||(n?(window.clearTimeout(n),n=null,e.call("dblclick",t,t,a)):n=window.setTimeout((o=t,function(){e.call("click",o,o,a),n=null}),250))}))}),e,"on")}}}(),e.a=n},552:function(t,e,r){"use strict";r(539);var n=n||{};n.Export={getCSSRules:function(t){const e=$('link[href="'+t+'"]')[0].sheet.rules;let r="";return _.each(e,(function(t){r+=t.cssText})),r},generateBase64ImageSource:function(t){t||(t="svg");const e=d3.selectAll(t).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(e)))}},e.a=n}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{259:function(t,e,r){"use strict";r.r(e);var n=r(552),a=r(551);r(13);function o(t,e,r,o,s,c,i,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),y=d3.drag().subject((function(t){return t})).on("start",(function(t,e){g.stop(),e.fx=t.x,e.fy=t.y,d3.select(this).classed("selected",!0)})).on("end",(function(t,e){e.fx=null,e.fy=null,d3.select(this).classed("selected",!1),b?(g.alpha(.2).restart(),b=!1):g.restart()})).on("drag",(function(t,e){b=!0,g.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y})),x=p.append("defs");x.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),x.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var t=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.8.9-RC1");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var t=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");t.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var e=16+1200/18/2.5,r=e+1200/90;t.append("circle").attrs({class:"legend-class-node",cx:(16+e)/2,cy:30,r:1200/18/4.5}),t.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),t.append("circle").attrs({class:"legend-object-node",cx:(16+e)/2,cy:70,r:1200/110/1.25}),t.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),t.append("circle").attrs({class:"legend-datatype-node",cx:(16+e)/2,cy:70+1200/45,r:1200/110/2}),t.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),t.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:e,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),t.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:e,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+s.absUrl()+"#arrow)"),t.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),t.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:e,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)"),t.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var m=s.search().uri,v=s.search().name;const k=s.search().collapsed;(function(t,e){o.getDomainRangeData(t,e).success((function(t,e,r){u.domainRangeGraphData=t})).error((function(t){d.error("Request for "+v+" failed!")}))})(m,k),$(window).on("popstate",(function(){c.set(i.DOMAIN_RANGE_WENT_BACK,!0)})),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(c.set(i.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==c.get(i.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:m,name:v,collapsed:e})}(u.collapseEdges),c.remove(i.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const P=r.nodes,j=r.links;g.nodes(P).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(j).distance(1200/3.5));var n=p.selectAll(".link").data(j).enter().append("g");function o(t){t.style("stroke",f),t.style("stroke-width",2),t.attr("marker-end","url("+s.absUrl()+"#collapsed-arrow)")}var c,i,d=0;n.each((function(t){if(t.objectPropNodeClassUri!==m)c=n.append("line").attrs({class:"link","marker-end":"url("+s.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=1200/18;break;case"objectRight":t.targetRadius=1200/110;break;case"datatype":t.targetRadius=1200/110/2;break;default:t.targetRadius=0}var e=d3.select(this);t.targetNodeEdgeCount>1?o(e):t.implicit&&e.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(i)){i=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+s.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=t.targetNodeEdgeCount)>1&&o(d3.select(".loop-link"))}}));var x={};function k(){$.isEmptyObject(x)||(x.text.style("fill","black"),x.background.style("fill","#f0f0f0"))}function b(t,e){k(),x.text=d3.select(this),x.background=d3.select(this.previousSibling),x.text.style("fill","white"),x.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e})),t.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",k)}));var w=n.append("text").attr("class",(function(t){return t.objectPropNodeClassUri===m?"loop-link-property-name":"property-name"})).attr("dx",(function(t){return 1200/18/2*("objectLeft"===t.propertyType?1:-1)})).style("text-anchor",(function(t){return"objectLeft"===t.propertyType?"end":"start"})).style("font-size",1200/90).text((function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name}));w.each((function(t){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",b):r.on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var E=n.append("rect").attr("class",(function(t){return t.objectPropNodeClassUri!==m?"link-background":"loop-link-background"})).attr("width",(function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4})).attr("height",(function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2})).attr("transform",(function(t){var e=2-1200/18/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"})).on("click",(function(t){t.stopPropagation()})),N=p.selectAll(".node").data(P).enter().append("g"),R=N.filter((function(t){return t.objectPropClassUri!==m})).append("circle").each((function(t){var e=d3.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+s.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:1200/110/2}):e.attrs({class:"object-prop-node",r:1200/110})})).call(y);d3.selectAll(".object-prop-node").on("dblclick",(function(e,r,n){u.$apply((function(){t.$broadcast("reloadDomainRangeGraphView",r,n)}))})),N.filter((function(t){return t.objectPropClassName&&t.objectPropClassUri!==m})).append("text").attr("class",(function(t){return t.classPosition+"-class-label"})).style("font-size",1200/90).text((function(t){return t.objectPropClassName})).on("click",(function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var C=N.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(t){return a.a.Text.calcFontSize(v,1200/18)})).text(v).on("click",(function(){e.open("resource?uri="+encodeURIComponent(m),"_blank")}))}));var T=p.select(".class-node + text"),A=d3.select(".class-node"),L=d3.selectAll(".loop-link-background"),M=d3.selectAll(".loop-link-property-name");if(w=d3.selectAll(".property-name"),!angular.isUndefined(i)){var U=[];L.each((function(t,e){d3.select(this);U.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})}))}g.on("tick",(function(t){var e=8*g.alpha();function r(t){var e=t.x+1200/18*2,r=t.y-1200/18/1.9;var n=[];L.each((function(a,o){n.push(a),o<h?function(n,a){var o=$.grep(U,(function(t){return t.idx==a}));a>0&&(e+=parseFloat(a*(o[0].height/(a/1.4)))),n.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(d3.select(this),o):d3.select(this).remove()})),function(t){var e;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=t,e=this.getComputedTextLength()})).on("click",b),d3.select(".view-more-preds-rect").attr("height",e+4)}(n)}c.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x1",(function(t){return t.source.x})).attr("y1",(function(t){return t.source.y})).attr("x2",(function(t){return t.targetX})).attr("y2",(function(t){return t.targetY})).each((function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius})),R.each((function(t){"main"!==t.classPosition||angular.isUndefined(i)||(!function(t){var e=t.x+64,r=t.y-1200/18/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var n=$.grep(U,(function(t){return t.idx==r})),a=0;r>0&&(a=parseFloat(2*r*(n[0].height/1.4)));var o=t.x,s=t.y-1200/18*2.1-a;e.attrs({x:o,y:s}).moveToFront()}M.each((function(t,r){var n=d3.select(this),a=M.size()-h;a<0?e(n,r):(0==r&&!u.collapseEdges&&a>1&&(!function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),a),e(n,r)),r<h?e(n,r):n.remove())}))}(t),r(t)),t.objectPropClassUri!==m&&d3.select(this).attr("cx",(function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=A.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x})).attr("cy",(function(t){return t.y}))})),T.attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).moveToFront(),E.filter((function(t){return t.objectPropNodeClassUri!==m})).attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),w.attr("x",(function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2})).attr("y",(function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2})).moveToFront(),C.attr("x",(function(t){return"right"===t.classPosition?t.x+1200/110*1.2:t.x-1200/110*1.2})).attr("y",(function(t){return t.y})).moveToFront()}))}}));let b=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",o),o.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},539:function(t,e,r){var n,a;n=[r(547)],void 0===(a=function(){function t(t,e){return t.each((function(){var t=e.apply(this,arguments),r=select(this);for(var n in t)r.attr(n,t[n])}))}function e(t,e){for(var r in e)t.attr(r,e[r]);return t}return"undefined"==typeof d3&&(d3=r(547)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?t:e)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const t=this.parentNode.firstChild;t&&this.parentNode.insertBefore(this,t)}))},d3}.apply(e,n))||(t.exports=a)},551:function(t,e,r){"use strict";r(539);var n=n||{};n.Text=function(){function t(t,e,r,n){r=r||10;var a=e/3;return"string"==typeof t?(a*=10/(t.substring(0,e/3).length+1.5),a+=1,t.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<r&&(a=r),Math.round(a)):(a<r&&(a=r),Math.round(a))}return{calcFontSizeRaw:t,calcFontSize:function(e,r,n,a){return t(e,r,n)+"px"},getTextWithElipsisIfNeeded:function(t,e){return"string"==typeof t&&t.length>e?t.substring(0,e-3)+"...":t}}}(),n.Transition={fadeIn:function(t,e){t.style("opacity",0).transition().duration(e).style("opacity",1)},fadeOut:function(t,e){t.style("opacity",1).transition().duration(e).style("opacity",0)}},n.Click=function(){const t=function(t,r){let n,a=1,o=arguments.length;for(;++a<o;)n=arguments[a],t[n]=e(t,r,r[n]);return t};function e(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}return{delayDblClick:function(){var e=d3.dispatch("click","dblclick");return t((function(t){var r,n=null;t.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),t.on("mouseup",(function(t,a){var o,s,c;(s=r,c=d3.pointer(document.body),Math.sqrt(Math.pow(s[0]-c[0],2),Math.pow(s[1]-c[1],2))>5)||(n?(window.clearTimeout(n),n=null,e.call("dblclick",t,t,a)):n=window.setTimeout((o=t,function(){e.call("click",o,o,a),n=null}),250))}))}),e,"on")}}}(),e.a=n},552:function(t,e,r){"use strict";r(539);var n=n||{};n.Export={getCSSRules:function(t){const e=$('link[href="'+t+'"]')[0].sheet.rules;let r="";return _.each(e,(function(t){r+=t.cssText})),r},generateBase64ImageSource:function(t){t||(t="svg");const e=d3.selectAll(t).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(e)))}},e.a=n}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[63,183,205,329],{101:function(e,o,r){"use strict";r.r(o),r.d(o,"removeSpecialChars",(function(){return s})),r.d(o,"toBoolean",(function(){return a})),r.d(o,"toTitleCase",(function(){return i}));var t=r(18);const s=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),i=e=>e?Object(t.upperFirst)(e.toLowerCase()):e},180:function(e,o){function r(e,o,r,t,s){e.message=s,e.close=()=>{o.dismiss()},e.copyToClipboard=()=>{navigator.clipboard.writeText(e.message).then(()=>{t.success(r.instant("import.help.messages.copied_to_clipboard")),e.close()},e=>{console.error("Could not copy text: ",e)})}}angular.module("graphdb.framework.impex.import.controllers.import-resource-message-dialog",[]).controller("ImportResourceMessageDialogController",r),r.$inject=["$scope","$uibModalInstance","$translate","toastr","message"]},280:function(e,o,r){"use strict";r.r(o);r(180);var t=r(91),s=r(101);function a(e){return{restrict:"E",templateUrl:"js/angular/import/templates/import-resource-message.html",scope:{resource:"="},link:o=>{o.ImportResourceStatus=t.ImportResourceStatus,o.toTitleCase=e=>s.toTitleCase(e),o.showMessage=o=>{e.open({templateUrl:"js/angular/import/templates/import-resource-message-dialog.html",controller:"ImportResourceMessageDialogController",size:"lg",windowClass:"import-resource-message-dialog",backdrop:"static",resolve:{message:function(){return o?o.importResource.message:""}}})}}}}angular.module("graphdb.framework.import.directives.import-resource-message",["graphdb.framework.impex.import.controllers.import-resource-message-dialog"]).directive("importResourceMessage",a),a.$inject=["$uibModal"]},91:function(e,o,r){"use strict";r.r(o),r.d(o,"ImportResourceStatus",(function(){return t}));const t={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[64,100,205,206],{115:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},153:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceTreeElement",(function(){return o}));var r=s(91),i=s(18);class o{constructor(){this.importResource=void 0,this.parent=void 0,this.partialSelected=!1,this.indent=0,this.isImportable=!1,this.hasOngoingImport=!1,this.hasStatusInfo=!1,this.canResetStatus=!1,this.name="",this.shortenedName="",this.path="",this.shortenedContext="",this.selected=!1,this.directories=[],this.files=[],this.isImportedBiggerThanModified=!1,this.isModifiedBiggerThanImported=!1,this.isEditable=!1,this.iconClass="",this.shortenedMessage=""}addResource(e){if(e.isFile())this.files.push(e);else{if(!e.isDirectory())throw new Error("Unsupported resource type!");this.directories.push(e)}}removeResource(e){e.isFile()?this.files=this.files.filter(t=>e.importResource.name!==t.importResource.name):this.directories=this.directories.filter(t=>e.importResource.name!==t.importResource.name)}remove(){this.isRoot()||this.parent.removeResource(this)}getOrCreateDirectory(e){let t=this.directories.find(t=>t.name===e);return t||(t=new o,t.name=e,this.directories.push(t)),t}getRoot(){return this.isRoot()?this:this.parent.getRoot()}isRoot(){return void 0===this.parent}isDirectory(){return this.importResource.isDirectory()}isFile(){return!this.isRoot()&&this.importResource.isFile()}isEmpty(){return 0===this.directories.length&&0===this.files.length}toList(){const e=[];return this.parent&&e.push(this),this.directories.forEach(t=>{e.push(...t.toList())}),e.push(...this.files),e}setSelection(e,t=!0){this.selected=e,this.files.forEach(t=>t.setSelection(e,!1)),this.directories.forEach(t=>t.setSelection(e,!1)),t&&this.getRoot().updateSelectionState()}updateSelectionState(){if(this.directories.forEach(e=>e.updateSelectionState()),this.parent&&this.isDirectory()){const e=this.hasUnselectedChildren(),t=this.hasSelectedChildren();this.selected=t&&!e,this.partialSelected=t&&e}}hasUnselectedChildren(){return this.files.some(e=>!e.selected)||this.directories.some(e=>!e.selected||e.hasUnselectedChildren())}hasSelectedChildren(){return this.files.some(e=>e.selected)||this.directories.some(e=>e.selected||e.hasSelectedChildren())}selectAllWithStatus(e){this.importResource&&e.indexOf(this.importResource.status)>-1&&(this.selected=!0),this.files.forEach(t=>t.selectAllWithStatus(e)),this.directories.forEach(t=>t.selectAllWithStatus(e))}getAllSelectedForImport(){const e=[],t=this.isRoot();return!t&&this.selected&&e.push(this),(t||this.isDirectory()&&!this.selected)&&(this.files.forEach(t=>e.push(...t.getAllSelectedForImport())),this.directories.forEach(t=>e.push(...t.getAllSelectedForImport()))),Object(i.cloneDeep)(e)}getAllSelected(){const e=[];return!this.isRoot()&&this.selected&&e.push(this),this.files.forEach(t=>e.push(...t.getAllSelected())),this.directories.forEach(t=>e.push(...t.getAllSelected())),Object(i.cloneDeep)(e)}getSelectedImportedResources(){return this.getAllSelected().some(e=>e.importResource.status===r.ImportResourceStatus.DONE)}deselectAll(){this.files.forEach(e=>e.deselectAll()),this.directories.forEach(e=>e.deselectAll()),this.selected=!1,this.partialSelected=!1}getAllSelectedFiles(){const e=[];return!this.isRoot()&&this.selected&&e.push(this.importResource),this.files.forEach(t=>e.push(...t.getAllSelectedFiles())),this.directories.forEach(t=>e.push(...t.getAllSelectedFiles())),e}getAllSelectedFilesNames(){return this.getAllSelectedFiles().map(e=>e.name)}getResourceByName(e){if(this.importResource&&this.importResource.name===e)return this;const t=this.files.find(t=>t.importResource.name===e);if(t)return t;for(const t of this.directories){const s=t.getResourceByName(e);if(s)return s}return null}hasTextInResourcesName(e){return!!this.importResource.name.toLowerCase().includes(e.toLowerCase())||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e)))}hasTextInDirectoriesName(e){return!(!this.isDirectory()||!this.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e))}hasTextInFilesName(e){return!(!this.isFile()||!this.name.toLowerCase().includes(e.toLowerCase()))||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInFilesName(e)))}sort(e){this.directories.sort(e),this.files.sort(e),this.directories.forEach(t=>t.sort(e))}getSize(){return this.toList().length}}},282:function(e,t,s){"use strict";s.r(t),s.d(t,"INDENT",(function(){return c})),s.d(t,"serverImportResourceTypeToIconMapping",(function(){return n})),s.d(t,"userImportResourceTypeToIconMapping",(function(){return a})),s.d(t,"ImportResourceTreeService",(function(){return u}));var r=s(115),i=s(153),o=s(91);const c=30,n=new Map;n.set(r.ImportResourceType.DIRECTORY,"icon-folder"),n.set(r.ImportResourceType.FILE,"icon-file");const a=new Map;a.set(r.ImportResourceType.DIRECTORY,"icon-folder"),a.set(r.ImportResourceType.FILE,"icon-upload"),a.set(r.ImportResourceType.URL,"icon-link"),a.set(r.ImportResourceType.TEXT,"icon-sparql");class u{static toImportResourceTree(e,t){const s=new i.ImportResourceTreeElement;return e.forEach(e=>{u.addResourceToTree(s,e,t)}),s}static mergeResourceTree(e,t,s){e.getRoot().toList().forEach(e=>{t.find(t=>t.name===e.importResource.name)||e.remove()}),t.forEach(t=>{const r=e.getResourceByName(t.name);r?r.importResource=t:u.addResourceToTree(e,t,s)})}static addResourceToTree(e,t,s){const r=u.getPath(t);let o;o=t.isDirectory()?r:r.slice(0,r.length-1);const c=u.getOrCreateParent(e,o);if(t.isFile()){const e=new i.ImportResourceTreeElement;return e.parent=c,e.importResource=t,e.path=r.join("/"),e.name=r[r.length-1],c.addResource(e),u.setIcon(e,s),e}return c.importResource=t,c.path=r.join("/"),u.setIcon(c,s),c}static setIcon(e,t){e.iconClass=t?a.get(e.importResource.type):n.get(e.importResource.type)}static getOrCreateParent(e,t){let s=e;return t.forEach(e=>{const t=s.getOrCreateDirectory(e);t.parent=s,s=t}),s}static getPath(e){if(e.isURL())return[e.name];const t=/[/\\]/;return t.test(e.name)?e.name.split(t):[e.name]}static calculateElementIndent(e){e.indent=8+u.getParentsCount(e)*c+"px",e.directories.forEach(e=>u.calculateElementIndent(e)),e.files.forEach(e=>u.calculateElementIndent(e))}static setupAfterTreeInitProperties(e){e.isRoot()||(e.isImportable=u.isImportable(e.importResource),e.hasOngoingImport=u.hasOngoingImport(e.importResource),e.canResetStatus=u.canResetStatus(e.importResource),e.hasStatusInfo="DONE"===e.importResource.status||"ERROR"===e.importResource.status,e.isEditable=e.importResource.isText(),u.setupShortenedMessage(e),u.setupShortenedContext(e),u.setupShortenedName(e),u.setupImportedAndModifiedComparableProperties(e)),e.directories.forEach(e=>u.setupAfterTreeInitProperties(e)),e.files.forEach(e=>u.setupAfterTreeInitProperties(e))}static setupShortenedMessage(e){const t=e.importResource?e.importResource.message:"";t&&t.length>150&&(e.shortenedMessage=t.substring(0,150)+"...")}static setupShortenedContext(e){const t=e.importResource?e.importResource.context:"";t.length>63&&(e.shortenedContext=t.substring(0,30)+"..."+t.substring(t.length-30))}static setupShortenedName(e){const t=e.name||"";t.length>123&&(e.shortenedName=t.substring(0,30)+"..."+t.substring(t.length-30))}static setupImportedAndModifiedComparableProperties(e){const t=e.importResource;if(t){if(0===t.importedOn||0===t.modifiedOn||t.importedOn===t.modifiedOn)return;e.isImportedBiggerThanModified=t.importedOn>t.modifiedOn,e.isModifiedBiggerThanImported=!e.isImportedBiggerThanModified}}static isImportable(e){return e.status!==o.ImportResourceStatus.IMPORTING&&e.status!==o.ImportResourceStatus.UPLOADING&&e.status!==o.ImportResourceStatus.PENDING&&e.status!==o.ImportResourceStatus.INTERRUPTING&&e.status!==o.ImportResourceStatus.UPLOADING&&e.status!==o.ImportResourceStatus.UPLOADED&&e.status!==o.ImportResourceStatus.UPLOAD_ERROR}static hasOngoingImport(e){return e.status===o.ImportResourceStatus.IMPORTING||e.status===o.ImportResourceStatus.UPLOADING||e.status===o.ImportResourceStatus.PENDING||e.status===o.ImportResourceStatus.INTERRUPTING}static canResetStatus(e){return e.status===o.ImportResourceStatus.DONE||e.status===o.ImportResourceStatus.ERROR}static getParentsCount(e){let t=0;if(void 0===e.parent)return t;let s=e.parent;for(;s;)s=s.parent,t++;return t-1}}},91:function(e,t,s){"use strict";s.r(t),s.d(t,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[65,203,205,206],{115:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},146:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},178:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResource",(function(){return a}));var r=s(91),i=s(146),o=s(115);class a{constructor(t,e){this.hash=e(JSON.stringify(t)),this.name=t?t.name:void 0,this.status=t?t.status:r.ImportResourceStatus.NONE,this.message=t&&t.message?t.message:"",this.context=t&&t.context?t.context:"",this.replaceGraphs=t?t.replaceGraphs:[],this.baseURI=t?t.baseURI:void 0,this.forceSerial=!!t&&t.forceSerial,this.type=t?t.type:void 0,this.format=t?t.format:void 0,this.data=t?t.data:void 0,this.modifiedOn=t?t.lastModified:void 0,this.importedOn=t?t.imported:void 0,this.size=t?t.size:"",this.addedStatements=t?t.addedStatements:0,this.removedStatements=t?t.removedStatements:0,this.numReplacedGraphs=t?t.numReplacedGraphs:0,this.parserSettings=t?t.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=t?t.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},91:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[66,80,257,258],{92:function(t,i,s){"use strict";s.r(i),s.d(i,"SimilarityIndexType",(function(){return e}));const e={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:t=>e.TEXT===t,isTextLiteralType:t=>e.TEXT_LITERAL===t,isPredicationType:t=>e.PREDICATION===t}},94:function(t,i,s){"use strict";s.r(i),s.d(i,"SimilarityIndexStatus",(function(){return e}));const e={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:t=>e.CREATING===t,isBuildingStatus:t=>e.BUILDING===t,isBuiltStatus:t=>e.BUILT===t,isRebuildingStatus:t=>e.REBUILDING===t,isOutdatedStatus:t=>e.OUTDATED===t,isInterruptedStatus:t=>e.INTERRUPTED===t,isObsoleteStatus:t=>e.OBSOLETE===t,isFailedStatus:t=>e.FAILED===t}},95:function(t,i,s){"use strict";s.r(i),s.d(i,"SimilarityIndex",(function(){return u}));var e=s(92),a=s(94);class u{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=e.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return e.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return e.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return e.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return a.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return a.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return a.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return a.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return a.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return a.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return a.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return a.SimilarityIndexStatus.isFailedStatus(this.status)}}},99:function(t,i,s){"use strict";s.r(i),s.d(i,"mapIndexesResponseToSimilarityIndex",(function(){return a}));var e=s(95);const a=t=>t.map(t=>{const i=new e.SimilarityIndex;return i.type=t.type,i.stopList=t.stopList,i.status=t.status,i.selectQuery=t.selectQuery,i.searchQuery=t.searchQuery,i.sameAs=t.sameAs,i.options=t.options,i.name=t.name,i.infer=t.infer,i.analyzer=t.analyzer,i.analogicalQuery=t.analogicalQuery,i})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[67,106,271,272],{123:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatAnswerModel",(function(){return n})),s.d(e,"ContinueChatRun",(function(){return i}));class n{constructor(t={}){this._chatId=t.chatId,this._chatName=t.chatName||"",this._timestamp=t.timestamp,this._messages=t.messages||[],this._continueRunId=t.continueRunId}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get chatName(){return this._chatName}set chatName(t){this._chatName=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get messages(){return this._messages}set messages(t){this._messages=t}get continueRunId(){return this._continueRunId}set continueRunId(t){this._continueRunId=t}}class i{constructor(t,e){this._chatItem=t,this._runId=e}get chatId(){return this._chatItem.chatId}toContinueRunRequestPayload(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}},151:function(t,e,s){"use strict";s.r(e),s.d(e,"chatMessageModelListMapper",(function(){return r})),s.d(e,"chatItemsModelMapper",(function(){return h})),s.d(e,"chatMessageModelMapper",(function(){return u})),s.d(e,"chatAnswerModelMapper",(function(){return o}));var n=s(89),i=s(96),a=s(123);const r=t=>t?t.map(t=>u(t)):[],h=(t=[])=>{const e=[];let s;return t.forEach(t=>{const a=t.conversationId;n.CHAT_MESSAGE_ROLE.USER===t.role?(s&&e.push(s),s=new i.ChatItemModel(a,u(t))):(s||(s=new i.ChatItemModel(a,null)),s.answers.push(u(t)),s.agentId=t.agentId)}),s&&e.push(s),new i.ChatItemsListModel(e)},u=t=>{if(t)return new n.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},o=t=>{if(t)return new a.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:r(t.messages),continueRunId:t.continueRunId})}},89:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatMessageModel",(function(){return n})),s.d(e,"CHAT_MESSAGE_ROLE",(function(){return i}));class n{constructor(t){this._id=t.id,this._role=t.role,this._message=t.message,this._timestamp=1e3*t.timestamp}get id(){return this._id}set id(t){this._id=t}get role(){return this._role}set role(t){this._role=t}get message(){return this._message}set message(t){this._message=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}}const i={USER:"user",ASSISTANT:"assistant"}},96:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatItemModel",(function(){return i})),s.d(e,"ChatItemsListModel",(function(){return a}));var n=s(89);class i{constructor(t,e){this._chatId=t,this._agentId=void 0,this._question=e,this._answers=[]}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get agentId(){return this._agentId}set agentId(t){this._agentId=t}get question(){return this._question}set question(t){this._question=t}get answers(){return this._answers}set answers(t){this._answers=t}setQuestionMessage(t){this._question||(this._question=new n.ChatMessageModel({role:n.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message,tzOffset:-(new Date).getTimezoneOffset()}}toExplainResponsePayload(t){return{conversationId:this._chatId,answerId:t}}}class a{constructor(t=[]){this._items=t}isEmpty(){return 0===this._items.length}appendItem(t){this._items.push(t)}get items(){return this._items}set items(t){this._items=t||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{573:function(e,t){
|
|
2
2
|
/*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var e=8,t=9,n=13,i=27,r=32,o=38,a=40,u=37,s=39,l=46,c=188,f=9007199254740991,d=["text","email","url"],p=angular.module("ngTagsInput",[]);p.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(t,i,o,a,p,g){function h(e,t,n,i){var r,o,u,s,l={};return r=function(t){return g.safeToString(t[e.displayProperty])},o=function(t,n){t[e.displayProperty]=n},u=function(t){var i=r(t),o=i&&i.length>=e.minLength&&i.length<=e.maxLength&&e.allowedTagsPattern.test(i)&&!g.findInObjectArray(l.items,t,e.keyProperty||e.displayProperty);return a.when(o&&n({$tag:t})).then(g.promisifyValue)},s=function(e){return a.when(i({$tag:e})).then(g.promisifyValue)},l.items=[],l.addText=function(e){var t={};return o(t,e),l.add(t)},l.add=function(n){var i=r(n);return e.replaceSpacesWithDashes&&(i=g.replaceSpacesWithDashes(i)),o(n,i),u(n).then((function(){l.items.push(n),t.trigger("tag-added",{$tag:n})})).catch((function(){i&&t.trigger("invalid-tag",{$tag:n})}))},l.remove=function(e){var n=l.items[e];return s(n).then((function(){return l.items.splice(e,1),l.clearSelection(),t.trigger("tag-removed",{$tag:n}),n}))},l.select=function(e){0>e?e=l.items.length-1:e>=l.items.length&&(e=0),l.index=e,l.selected=l.items[e]},l.selectPrior=function(){l.select(--l.index)},l.selectNext=function(){l.select(++l.index)},l.removeSelected=function(){return l.remove(l.index)},l.clearSelection=function(){l.selected=null,l.index=-1},l.getItems=function(){return e.useStrings?l.items.map(r):l.items},l.clearSelection(),l}function m(e){return-1!==d.indexOf(e)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(e,t,n){e.events=g.simplePubSub(),p.load("tagsInput",e,t,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",m],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,f],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,f],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),e.tagList=new h(e.options,e.events,g.handleUndefinedResult(e.onTagAdding,!0),g.handleUndefinedResult(e.onTagRemoving,!0)),this.registerAutocomplete=function(){return n.find("input"),{addTag:function(t){return e.tagList.add(t)},getTags:function(){return e.tagList.items},getCurrentTagText:function(){return e.newTag.text()},getOptions:function(){return e.options},getTemplateScope:function(){return e.templateScope},on:function(t,n){return e.events.on(t,n,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return e.options},removeTag:function(t){e.disabled||e.tagList.remove(t)}}}}],link:function(a,f,d,p){var h,m,v=[n,c,r,e,l,u,s],y=a.tagList,b=a.events,x=a.options,T=f.find("input"),w=["minTags","maxTags","allowLeftoverText"];h=function(){p.$setValidity("maxTags",y.items.length<=x.maxTags),p.$setValidity("minTags",y.items.length>=x.minTags),p.$setValidity("leftoverText",!(!a.hasFocus&&!x.allowLeftoverText)||!a.newTag.text())},m=function(){t((function(){T[0].focus()}))},p.$isEmpty=function(e){return!e||!e.length},a.newTag={text:function(e){return angular.isDefined(e)?(a.text=e,void b.trigger("input-change",e)):a.text||""},invalid:null},a.track=function(e){return e[x.keyProperty||x.displayProperty]},a.getTagClass=function(e,t){var n=e===y.selected;return[a.tagClass({$tag:e,$index:t,$selected:n}),{selected:n}]},a.$watch("tags",(function(e){if(e){if(y.items=g.makeObjectArray(e,x.displayProperty),x.useStrings)return;a.tags=y.items}else y.items=[]})),a.$watch("tags.length",(function(){h(),p.$validate()})),d.$observe("disabled",(function(e){a.disabled=e})),a.eventHandlers={input:{keydown:function(e){b.trigger("input-keydown",e)},focus:function(){a.hasFocus||(a.hasFocus=!0,b.trigger("input-focus"))},blur:function(){t((function(){var e=i.prop("activeElement"),t=e===T[0],n=f[0].contains(e);(t||!n)&&(a.hasFocus=!1,b.trigger("input-blur"))}))},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):o.clipboardData.getData("Text")},b.trigger("input-paste",e)}},host:{click:function(){a.disabled||m()}},tag:{click:function(e){b.trigger("tag-clicked",{$tag:e})}}},b.on("tag-added",a.onTagAdded).on("invalid-tag",a.onInvalidTag).on("tag-removed",a.onTagRemoved).on("tag-clicked",a.onTagClicked).on("tag-added",(function(){a.newTag.text("")})).on("tag-added tag-removed",(function(){a.tags=y.getItems(),p.$setDirty(),m()})).on("invalid-tag",(function(){a.newTag.invalid=!0})).on("option-change",(function(e){-1!==w.indexOf(e.name)&&h()})).on("input-change",(function(){y.clearSelection(),a.newTag.invalid=null})).on("input-focus",(function(){f.triggerHandler("focus"),p.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&y.addText(a.newTag.text()),f.triggerHandler("blur"),h()})).on("input-keydown",(function(t){var i,o,f,d,p=t.keyCode,h={};g.isModifierOn(t)||-1===v.indexOf(p)||(h[n]=x.addOnEnter,h[c]=x.addOnComma,h[r]=x.addOnSpace,i=!x.addFromAutocompleteOnly&&h[p],o=(p===e||p===l)&&y.selected,d=p===e&&0===a.newTag.text().length&&x.enableEditingLastTag,f=(p===e||p===u||p===s)&&0===a.newTag.text().length&&!x.enableEditingLastTag,i?y.addText(a.newTag.text()):d?(y.selectPrior(),y.removeSelected().then((function(e){e&&a.newTag.text(e[x.displayProperty])}))):o?y.removeSelected():f&&(p===u||p===e?y.selectPrior():p===s&&y.selectNext()),(i||f||o||d)&&t.preventDefault())})).on("input-paste",(function(e){if(x.addOnPaste){var t=e.getTextData().split(x.pasteSplitPattern);t.length>1&&(t.forEach((function(e){y.addText(e)})),e.preventDefault())}}))}}}]),p.directive("tiTagItem",["tiUtil",function(e){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,n,i,r){var o=r.registerTagItem(),a=o.getOptions();t.$$template=a.template,t.$$removeTagSymbol=a.removeTagSymbol,t.$getDisplayText=function(){return e.safeToString(t.data[a.displayProperty])},t.$removeTag=function(){o.removeTag(t.$index)},t.$watch("$parent.$index",(function(e){t.$index=e}))}}}]),p.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(e,r,u,s,l,c){function f(e,t,n){var i,r,o,a={};return o=function(){return t.tagsInput.keyProperty||t.tagsInput.displayProperty},i=function(e,n){return e.filter((function(e){return!c.findInObjectArray(n,e,o(),(function(e,n){return t.tagsInput.replaceSpacesWithDashes&&(e=c.replaceSpacesWithDashes(e),n=c.replaceSpacesWithDashes(n)),c.defaultComparer(e,n)}))}))},a.reset=function(){r=null,a.items=[],a.visible=!1,a.index=-1,a.selected=null,a.query=null},a.show=function(){t.selectFirstMatch?a.select(0):a.selected=null,a.visible=!0},a.load=c.debounce((function(n,u){a.query=n;var l=s.when(e({$query:n}));r=l,l.then((function(e){l===r&&(e=c.makeObjectArray(e.data||e,o()),e=i(e,u),a.items=e.slice(0,t.maxResultsToShow),a.items.length>0?a.show():a.reset())}))}),t.debounceDelay),a.selectNext=function(){a.select(++a.index)},a.selectPrior=function(){a.select(--a.index)},a.select=function(e){0>e?e=a.items.length-1:e>=a.items.length&&(e=0),a.index=e,a.selected=a.items[e],n.trigger("suggestion-selected",e)},a.reset(),a}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(e,t,n){e.events=c.simplePubSub(),l.load("autoComplete",e,n,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),e.suggestionList=new f(e.source,e.options,e.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return e.options},getQuery:function(){return e.suggestionList.query}}}}],link:function(e,r,u,s){var l,f=[n,t,i,o,a],d=e.suggestionList,p=s.registerAutocomplete(),g=e.options,h=e.events;g.tagsInput=p.getOptions(),l=function(e){return e&&e.length>=g.minLength||!e&&g.loadOnEmpty},e.templateScope=p.getTemplateScope(),e.addSuggestionByIndex=function(t){d.select(t),e.addSuggestion()},e.addSuggestion=function(){var e=!1;return d.selected&&(p.addTag(angular.copy(d.selected)),d.reset(),e=!0),e},e.track=function(e){return e[g.tagsInput.keyProperty||g.tagsInput.displayProperty]},e.getSuggestionClass=function(t,n){var i=t===d.selected;return[e.matchClass({$match:t,$index:n,$selected:i}),{selected:i}]},p.on("tag-added tag-removed invalid-tag input-blur",(function(){d.reset()})).on("input-change",(function(e){l(e)?d.load(e,p.getTags()):d.reset()})).on("input-focus",(function(){var e=p.getCurrentTagText();g.loadOnFocus&&l(e)&&d.load(e,p.getTags())})).on("input-keydown",(function(r){var u=r.keyCode,s=!1;if(!c.isModifierOn(r)&&-1!==f.indexOf(u))return d.visible?u===a?(d.selectNext(),s=!0):u===o?(d.selectPrior(),s=!0):u===i?(d.reset(),s=!0):(u===n||u===t)&&(s=e.addSuggestion()):u===a&&e.options.loadOnDownArrow&&(d.load(p.getCurrentTagText(),p.getTags()),s=!0),s?(r.preventDefault(),r.stopImmediatePropagation(),!1):void 0})),h.on("suggestion-selected",(function(e){!function(e,t){var n=e.find("li").eq(t),i=n.parent(),r=n.prop("offsetTop"),o=n.prop("offsetHeight"),a=i.prop("clientHeight"),u=i.prop("scrollTop");u>r?i.prop("scrollTop",r):r+o>a+u&&i.prop("scrollTop",r+o-a)}(r,e)}))}}}]),p.directive("tiAutocompleteMatch",["$sce","tiUtil",function(e,t){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(n,i,r,o){var a=o.registerAutocompleteMatch(),u=a.getOptions();n.$$template=u.template,n.$index=n.$parent.$index,n.$highlight=function(n){return u.highlightMatchedText&&(n=t.safeHighlight(n,a.getQuery())),e.trustAsHtml(n)},n.$getDisplayText=function(){return t.safeToString(n.data[u.displayProperty||u.tagsInput.displayProperty])}}}}]),p.directive("tiTranscludeAppend",(function(){return function(e,t,n,i,r){r((function(e){t.append(e)}))}})),p.directive("tiAutosize",["tagsInputConfig",function(e){return{restrict:"A",require:"ngModel",link:function(t,n,i,r){var o,a,u=e.getTextAutosizeThreshold();(o=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),n.parent().append(o),a=function(e){var t,r=e;return angular.isString(r)&&0===r.length&&(r=i.placeholder),r&&(o.text(r),o.css("display",""),t=o.prop("offsetWidth"),o.css("display","none")),n.css("width",t?t+u+"px":""),e},r.$parsers.unshift(a),r.$formatters.unshift(a),i.$observe("placeholder",(function(e){r.$modelValue||a(e)}))}}}]),p.directive("tiBindAttrs",(function(){return function(e,t,n){e.$watch(n.tiBindAttrs,(function(e){angular.forEach(e,(function(e,t){n.$set(t,e)}))}),!0)}})),p.provider("tagsInputConfig",(function(){var e={},t={},n=3;this.setDefaults=function(t,n){return e[t]=n,this},this.setActiveInterpolation=function(e,n){return t[e]=n,this},this.setTextAutosizeThreshold=function(e){return n=e,this},this.$get=["$interpolate",function(i){var r={};return r[String]=function(e){return e},r[Number]=function(e){return parseInt(e,10)},r[Boolean]=function(e){return"true"===e.toLowerCase()},r[RegExp]=function(e){return new RegExp(e)},{load:function(n,o,a,u){var s=function(){return!0};o.options={},angular.forEach(u,(function(u,l){var c,f,d,p,g,h;c=u[0],f=u[1],d=u[2]||s,p=r[c],g=function(){var t=e[n]&&e[n][l];return angular.isDefined(t)?t:f},h=function(e){o.options[l]=e&&d(e)?p(e):g()},t[n]&&t[n][l]?a.$observe(l,(function(e){h(e),o.events.trigger("option-change",{name:l,newValue:e})})):h(a[l]&&i(a[l])(o.$parent))}))},getTextAutosizeThreshold:function(){return n}}}]})),p.factory("tiUtil",["$timeout","$q",function(e,t){var n={debounce:function(t,n){var i;return function(){var r=arguments;e.cancel(i),i=e((function(){t.apply(null,r)}),n)}},makeObjectArray:function(e,t){if(!angular.isArray(e)||0===e.length||angular.isObject(e[0]))return e;var n=[];return e.forEach((function(e){var i={};i[t]=e,n.push(i)})),n},findInObjectArray:function(e,t,i,r){var o=null;return r=r||n.defaultComparer,e.some((function(e){return r(e[i],t[i])?(o=e,!0):void 0})),o},defaultComparer:function(e,t){return n.safeToString(e).toLowerCase()===n.safeToString(t).toLowerCase()},safeHighlight:function(e,t){if(e=n.encodeHTML(e),!(t=n.encodeHTML(t)))return e;var i=new RegExp("&[^;]+;|"+function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),"gi");return e.replace(i,(function(e){return e.toLowerCase()===t.toLowerCase()?"<em>"+e+"</em>":e}))},safeToString:function(e){return angular.isUndefined(e)||null==e?"":e.toString().trim()},encodeHTML:function(e){return n.safeToString(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},handleUndefinedResult:function(e,t){return function(){var n=e.apply(null,arguments);return angular.isUndefined(n)?t:n}},replaceSpacesWithDashes:function(e){return n.safeToString(e).replace(/\s/g,"-")},isModifierOn:function(e){return e.shiftKey||e.ctrlKey||e.altKey||e.metaKey},promisifyValue:function(e){return e=!!angular.isUndefined(e)||e,t[e?"when":"reject"]()},simplePubSub:function(){var e={};return{on:function(t,n,i){return t.split(" ").forEach((function(t){e[t]||(e[t]=[]),(i?[].unshift:[].push).call(e[t],n)})),this},trigger:function(t,i){return(e[t]||[]).every((function(e){return n.handleUndefinedResult(e,!0)(i)})),this}}}};return n}]),p.run(["$templateCache",function(e){e.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),e.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),e.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()},807:function(e,t){!function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,u=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(u.push(i.value),u.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function i(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,n){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,n);if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key,"string"),"symbol"===e(o)?o:String(o)),r)}var o}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,r;return n=e,(r=[{key:"registerFor",value:function(e){var n,i,r,o;function a(e,n,i){var r=e[0],a=t({top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[n],3),u=a[0],s=a[1],l=a[2],c=void 0!==i;return o(r)?c?r.scrollTo(e[l].call(e),i):s in r?r[s]:r.document.documentElement[u]:(c&&(r[u]=i),r[u])}function u(e,i,a){var u,s=function(e,i){var a,u,s,l,c,f,d,p,g,h;if(o(e))return{base:a=document.documentElement[{height:"clientHeight",width:"clientWidth"}[i]],padding:0,border:0,margin:0};var m=t({width:[e.offsetWidth,"Left","Right"],height:[e.offsetHeight,"Top","Bottom"]}[i],3);return a=m[0],d=m[1],p=m[2],f=r(e),g=n(e,f["padding"+d])||0,h=n(e,f["padding"+p])||0,u=n(e,f["border"+d+"Width"])||0,s=n(e,f["border"+p+"Width"])||0,l=f["margin"+d],c=f["margin"+p],{base:a,padding:g+h,border:u+s,margin:(n(e,l)||0)+(n(e,c)||0)}}(e,i);return s.base>0?{base:s.base-s.padding-s.border,outer:s.base,outerfull:s.base+s.margin}[a]:(((u=r(e)[i])<0||null===u)&&(u=e.style[i]||0),{base:(u=parseFloat(u)||0)-s.padding-s.border,outer:u,outerfull:u+s.padding+s.border+s.margin}[a])}return i=angular.element.prototype.css,e.prototype.css=function(e,t){var n=this[0];if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style)return i.call(this,e,t)},o=function(e){return e&&e.document&&e.location&&e.alert&&e.setInterval},window.getComputedStyle?(r=function(e){return window.getComputedStyle(e,null)},n=function(e,t){return parseFloat(t)}):(r=function(e){return e.currentStyle},n=function(e,t){var n,i,r,o,a;return new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i").test(t)?(n=(a=e.style).left,o=(r=e.runtimeStyle)&&r.left,r&&(r.left=a.left),a.left=t,i=a.pixelLeft,a.left=n,o&&(r.left=o),i):parseFloat(t)}),angular.forEach({before:function(e){var t,n,i,r,o,a;if(n=this[0],(t=(o=this.parent()).contents())[0]===n)return o.prepend(e);for(i=r=1,a=t.length-1;1<=a?r<=a:r>=a;i=1<=a?++r:--r)if(t[i]===n)return void angular.element(t[i-1]).after(e);throw new Error("invalid DOM structure "+n.outerHTML)},height:function(e){return void 0!==e?(angular.isNumber(e)&&(e+="px"),i.call(this,"height",e)):u(this[0],"height","base")},outerHeight:function(e){return u(this[0],"height",e?"outerfull":"outer")},outerWidth:function(e){return u(this[0],"width",e?"outerfull":"outer")},offset:function(e){var t,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;if(arguments.length){if(void 0===e)return this;throw new Error("offset setter method is not implemented")}if(o)return t=o.documentElement,null!=r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=o.defaultView||o.parentWindow,{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}},scrollTop:function(e){return a(this,"top",e)},scrollLeft:function(e){return a(this,"left",e)}},(function(t,n){if(!e.prototype[n])return e.prototype[n]=t}))}}])&&i(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key,"string"),"symbol"===o(r)?r:String(r)),i)}var r}var u="ng-ui-scroll-hide",s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$animate=t.has&&t.has("$animate")?t.get("$animate"):null,this.isAngularVersionLessThen1_3=1===angular.version.major&&angular.version.minor<3,this.$q=n}var t,n,i;return t=e,i=[{key:"addCSSRules",value:function(){var e,t="."+u,n="display: none",i=document.styleSheets[0];try{e=i.cssRules.length}catch(t){e=0}"insertRule"in i?i.insertRule(t+"{"+n+"}",e):"addRule"in i&&i.addRule(t,n,e)}}],(n=[{key:"hideElement",value:function(e){e.element.addClass(u)}},{key:"showElement",value:function(e){e.element.removeClass(u)}},{key:"insertElement",value:function(e,t){return t.after(e),[]}},{key:"removeElement",value:function(e){return e.element.remove(),e.scope.$destroy(),[]}},{key:"insertElementAnimated",value:function(e,t){if(!this.$animate)return this.insertElement(e,t);if(this.isAngularVersionLessThen1_3){var n=this.$q.defer();return this.$animate.enter(e,null,t,(function(){return n.resolve()})),[n.promise]}return[this.$animate.enter(e,null,t)]}},{key:"removeElementAnimated",value:function(e){if(!this.$animate)return this.removeElement(e);if(this.isAngularVersionLessThen1_3){var t=this.$q.defer();return this.$animate.leave(e.element,(function(){return e.scope.$destroy(),t.resolve()})),[t.promise]}return[this.$animate.leave(e.element).then((function(){return e.scope.$destroy()}))]}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l="prepend",c="append",f="insert",d="remove",p="none";function g(e,t,n){var i=Object.create(Array.prototype);return angular.extend(i,{size:t,reset:function(e){i.remove(0,i.length),i.eof=!1,i.bof=!1,i.first=e,i.next=e,i.minIndex=e,i.maxIndex=e,i.minIndexUser=null,i.maxIndexUser=null},append:function(e){e.forEach((function(e){++i.next,i.insert(c,e)})),i.maxIndex=i.eof?i.next-1:Math.max(i.next-1,i.maxIndex)},prepend:function(e,t){e.reverse().forEach((function(e){t?++i.next:--i.first,i.insert(l,e)})),i.minIndex=i.bof?i.minIndex=i.first:Math.min(i.first,i.minIndex)},insert:function(e,t,n){var r={item:t};if(e%1==0)r.op=f,i.splice(e,0,r),n?i.first--:i.next++;else switch(r.op=e,e){case c:i.push(r);break;case l:i.unshift(r)}},remove:function(t,n){if(angular.isNumber(t)){for(var r=t;r<n;r++)e.removeElement(i[r]);return i.splice(t,n-t)}return i.splice(i.indexOf(t),1),t.shiftTop&&i.first===this.getAbsMinIndex()?this.incrementMinIndex():this.decrementMaxIndex(),t.shiftTop?i.first++:i.next--,i.length||(i.minIndex=Math.min(i.maxIndex,i.minIndex)),e.removeElementAnimated(t)},incrementMinIndex:function(){if(null!==i.minIndexUser){if(i.minIndex>i.minIndexUser)return void i.minIndexUser++;i.minIndex===i.minIndexUser&&i.minIndexUser++}i.minIndex++},decrementMaxIndex:function(){null!==i.maxIndexUser&&i.maxIndex<=i.maxIndexUser&&i.maxIndexUser--,i.maxIndex--},getAbsMinIndex:function(){return null!==i.minIndexUser?Math.min(i.minIndexUser,i.minIndex):i.minIndex},getAbsMaxIndex:function(){return null!==i.maxIndexUser?Math.max(i.maxIndexUser,i.maxIndex):i.maxIndex},effectiveHeight:function(e){if(!e.length)return 0;var t=Number.MAX_VALUE,n=Number.NEGATIVE_INFINITY;return e.forEach((function(e){e.element[0].offsetParent&&(t=Math.min(t,e.element.offset().top),n=Math.max(n,e.element.offset().top+e.element.outerHeight(!0)))})),Math.max(0,n-t)},getItems:function(){return i.filter((function(e){return e.op===p}))},getFirstItem:function(){var e=i.getItems();return e.length?e[0].item:null},getLastItem:function(){var e=i.getItems();return e.length?e[e.length-1].item:null}}),i.reset(n),i}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key,"string"),"symbol"===h(r)?r:String(r)),i)}var r}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var b=function(){function e(){m(this,e)}return y(e,[{key:"add",value:function(e){for(var t=this.length-1;t>=0;t--)if(this[t].index===e.scope.$index)return void(this[t].height=e.element.outerHeight());this.push({index:e.scope.$index,height:e.element.outerHeight()}),this.sort((function(e,t){return e.index<t.index?-1:e.index>t.index?1:0}))}},{key:"remove",value:function(e,t){for(var n=e%1==0?e:e.scope.$index,i=e%1==0?t:e.shiftTop,r=this.length-1;r>=0;r--)if(this[r].index===n){this.splice(r,1);break}if(!i)for(var o=this.length-1;o>=0;o--)this[o].index>n&&this[o].index--}},{key:"clear",value:function(){this.length=0}}]),e}();function x(){var e=[];return e.push.apply(e,arguments),Object.setPrototypeOf(e,x.prototype),e}x.prototype=Object.create(Array.prototype),Object.getOwnPropertyNames(b.prototype).forEach((function(e){return x.prototype[e]=b.prototype[e]}));var T=function(){function e(t){m(this,e),this.element=function(e){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("ui-scroll directive requires an Element node for templating the view");var t;switch(e.tagName.toLowerCase()){case"dl":throw new Error("ui-scroll directive does not support <".concat(e.tagName,"> as a repeating tag: ").concat(e.outerHTML));case"tr":t=angular.element("<table><tr><td><div></div></td></tr></table>").find("tr");break;case"li":t=angular.element("<li></li>");break;default:t=angular.element("<div></div>")}return t}(t),this.cache=new x}return y(e,[{key:"height",value:function(){return this.element.height.apply(this.element,arguments)}}]),e}();function w(e,t,n,i,r,o){var a=null,u=null,s=i&&i.viewport?i.viewport:angular.element(window),l=i&&i.container?i.container:void 0,c=i&&i.scope?i.scope:r;function f(){return s.outerHeight()*o}return s.css({"overflow-anchor":"none","overflow-y":"auto",display:"block"}),angular.extend(s,{getScope:function(){return c},createPaddingElements:function(e){a=new T(e),u=new T(e),n.before(a.element),n.after(u.element),a.height(0),u.height(0)},applyContainerStyle:function(){return!l||(l!==s&&s.css("height",window.getComputedStyle(l[0]).height),s.height()>0)},bottomDataPos:function(){var e=s[0].scrollHeight;return(e=null!=e?e:s[0].document.documentElement.scrollHeight)-u.height()},topDataPos:function(){return a.height()},bottomVisiblePos:function(){return s.scrollTop()+s.outerHeight()},topVisiblePos:function(){return s.scrollTop()},insertElement:function(t,n){return e.insertElement(t,n||a.element)},insertElementAnimated:function(t,n){return e.insertElementAnimated(t,n||a.element)},shouldLoadBottom:function(){return!t.eof&&s.bottomDataPos()<s.bottomVisiblePos()+f()},clipBottom:function(){for(var e=0,n=0,i=0,r=s.bottomDataPos()-s.bottomVisiblePos()-f(),o=t.length-1;o>=0&&!(n+(i=t[o].element.outerHeight(!0))>r);o--)u.cache.add(t[o]),n+=i,e++;e>0&&(t.eof=!1,t.remove(t.length-e,t.length),t.next-=e,s.adjustPaddings())},shouldLoadTop:function(){return!t.bof&&s.topDataPos()>s.topVisiblePos()-f()},clipTop:function(){for(var e=0,n=0,i=0,r=s.topVisiblePos()-s.topDataPos()-f(),o=0;o<t.length&&!(n+(i=t[o].element.outerHeight(!0))>r);o++)a.cache.add(t[o]),n+=i,e++;e>0&&(a.height(a.height()+n),t.bof=!1,t.remove(0,e),t.first+=e)},adjustPaddings:function(){if(t.length){var e=t.reduce((function(e,t){return e+t.element.outerHeight(!0)}),0),n=0,i=0;a.cache.forEach((function(e){e.index<t.first&&(n+=e.height,i++)}));var r=0,o=0;u.cache.forEach((function(e){e.index>=t.next&&(r+=e.height,o++)}));var s=(e+n+r)/(i+o+t.length),l=null!==t.minIndexUser&&t.minIndex>t.minIndexUser,c=null!==t.maxIndexUser&&t.maxIndex<t.maxIndexUser,f=l?(t.minIndex-t.minIndexUser)*s:0,d=c?(t.maxIndexUser-t.maxIndex)*s:0;a.height(n+f),u.height(r+d)}},onAfterMinIndexSet:function(e){if(null!==t.minIndexUser&&t.minIndex>t.minIndexUser){var n=a.height()-e;for(s.scrollTop(s.scrollTop()+n);(n-=s.scrollTop())>0;)u.height(u.height()+n),s.scrollTop(s.scrollTop()+n)}},onAfterPrepend:function(e){if(e.prepended.length){var n=t.effectiveHeight(e.prepended),i=a.height()-n;if(i>=0)a.height(i);else{var r=s.scrollTop(),o=r-i;s.synthetic={previous:r,next:o},a.height(0),s.scrollTop(o)}}},resetTopPadding:function(){a.height(0),a.cache.clear()},resetBottomPadding:function(){u.height(0),u.cache.clear()},removeCacheItem:function(e,t){a.cache.remove(e,t),u.cache.remove(e,t)},removeItem:function(e){return this.removeCacheItem(e),t.remove(e)}}),s}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==$(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key,"string"),"symbol"===$(r)?r:String(r)),i)}var r}var I=function(){function e(t,n,i,r,o,a,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$parse=n,this.$attr=i,this.viewport=r,this.buffer=o,this.doAdjust=a,this.reload=u,this.isLoading=!1,this.disabled=!1;var s=r.getScope();this.startScope=s.$parent?s:t,this.publicContext={},this.assignAdapter(i.adapter),this.generatePublicContext()}var t,n;return t=e,(n=[{key:"assignAdapter",value:function(e){if(e&&(e=e.replace(/^\s+|\s+$/gm,""))){var t;try{this.$parse(e).assign(this.startScope,{}),t=this.$parse(e)(this.startScope)}catch(t){throw t.message="Angular ui-scroll Adapter assignment exception.\n"+"Can't parse \"".concat(e,'" expression.\n')+t.message,t}angular.extend(t,this.publicContext),this.publicContext=t}}},{key:"generatePublicContext",value:function(){for(var e=this,t=["reload","applyUpdates","append","prepend","isBOF","isEOF","isEmpty"],n=t.length-1;n>=0;n--)this.publicContext[t[n]]=this[t[n]].bind(this);for(var i=["isLoading","topVisible","topVisibleElement","topVisibleScope","bottomVisible","bottomVisibleElement","bottomVisibleScope"],r=function(t){var n,r=e.$attr[i[t]];Object.defineProperty(e,i[t],{get:function(){return n},set:function(o){n=o,e.publicContext[i[t]]=o,r&&e.$parse(r).assign(e.startScope,o)}})},o=i.length-1;o>=0;o--)r(o);for(var a=["bufferFirst","bufferLast","bufferLength"],u=function(t){Object.defineProperty(e.publicContext,a[t],{get:function(){return e[a[t]]}})},s=a.length-1;s>=0;s--)u(s);Object.defineProperty(this.publicContext,"disabled",{get:function(){return e.disabled},set:function(t){return(e.disabled=t)?null:e.doAdjust()}})}},{key:"loading",value:function(e){this.isLoading=e}},{key:"isBOF",value:function(){return this.buffer.bof}},{key:"isEOF",value:function(){return this.buffer.eof}},{key:"isEmpty",value:function(){return!this.buffer.length}},{key:"bufferLength",get:function(){return this.buffer.getItems().length}},{key:"bufferFirst",get:function(){return this.buffer.getFirstItem()}},{key:"bufferLast",get:function(){return this.buffer.getLastItem()}},{key:"append",value:function(e){this.buffer.append(e),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"prepend",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.prepend(e,t.immutableTop),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"applyUpdates",value:function(e,t,n){"function"==typeof e?this.applyUpdatesFunc(e,t):this.applyUpdatesIndex(e,t,n),this.doAdjust()}},{key:"applyUpdatesFunc",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.slice(0).forEach((function(i){t.applyUpdate(i,e(i.item,i.scope,i.element),n)}))}},{key:"applyUpdatesIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e%1!=0)throw new Error("applyUpdates - "+e+" is not a valid index (should be an integer)");var i=e-this.buffer.first;i>=0&&i<this.buffer.length?this.applyUpdate(this.buffer[i],t,n):e>=this.buffer.getAbsMinIndex()&&e<=this.buffer.getAbsMaxIndex()&&angular.isArray(t)&&!t.length&&(this.viewport.removeCacheItem(e,!n.immutableTop&&e===this.buffer.minIndex),n.immutableTop||e!==this.buffer.getAbsMinIndex()?this.buffer.decrementMaxIndex():this.buffer.incrementMinIndex())}},{key:"applyUpdate",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(angular.isArray(t)){var r=this.buffer.indexOf(e);t.reverse().some((function(t){return t===e.item}))||(e.op=d,i.immutableTop||t.length||(0===r&&this.buffer.bof||0!==r&&this.buffer[r-1].shiftTop)&&(e.shiftTop=!0)),t.forEach((function(t){t===e.item?r--:n.buffer.insert(r+1,t,!i.immutableTop&&-1===r)}))}}},{key:"calculateProperties",value:function(){for(var e=null,t=0,n=!1,i=!1,r=this.buffer.length,o=0;o<r;o++){var a=this.buffer[o],u=a.element.offset().top;if(e!==u){var s=a.element.outerHeight(!0),l=this.viewport.topDataPos()+t+s;!n&&l>this.viewport.topVisiblePos()&&(n=!0,this.topVisible=a.item,this.topVisibleElement=a.element,this.topVisibleScope=a.scope),!i&&(l>=this.viewport.bottomVisiblePos()||o===r-1&&this.isEOF())&&(i=!0,this.bottomVisible=a.item,this.bottomVisibleElement=a.element,this.bottomVisibleScope=a.scope),t+=s}if(e=u,n&&i)break}}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();angular.module("ui.scroll",[]).constant("JQLiteExtras",r).run(["JQLiteExtras",function(e){var t=angular.element;!(window.jQuery&&t.fn&&t.fn.jquery)&&(new e).registerFor(t),s.addCSSRules()}]).directive("uiScrollViewport",(function(){return{restrict:"A",controller:["$scope","$element",function(e,t){var n=this;return this.container=t,this.viewport=t,this.scope=e,angular.forEach(t.children(),(function(e){"tbody"===e.tagName.toLowerCase()&&(n.viewport=angular.element(e))})),this}]}})).directive("uiScroll",["$log","$injector","$rootScope","$timeout","$interval","$q","$parse",function(e,t,n,i,r,o,a){return{require:["?^uiScrollViewport"],restrict:"A",transclude:"element",priority:1e3,terminal:!0,link:function(e,u,h,m,v){var y=h.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);if(!y)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+h.uiScroll+"'");function b(e,t,n){return n||(e=null===e?t:Math.floor(e)),isNaN(e)?t:e}function x(t,n,i){return b(a(t)(e),n,i)}var T,$,S=null,E=y[1],P=y[2],k=m[0],O=Math.max(3,x(h.bufferSize,10)),A=Math.max(.3,x(h.padding,.5,!0)),C=(T=h.handleInertia,!0,"boolean"!=typeof($=a(T)(e))||$),L=x(h.startIndex,1),j=0,U=[],M=new s(t,o),D=new g(M,O,L),V=new w(M,D,u,k,n,A),H=new I(e,a,h,V,D,Z,(function(){_(),V.resetTopPadding(),V.resetBottomPadding(),arguments.length&&(L=b(arguments[0],1,!1)),D.reset(L),F(S,"minIndex"),F(S,"maxIndex"),Z()}));k&&(k.adapter=H);var B=function(){return"[object Object]"===Object.prototype.toString.call(S)&&"function"==typeof S.get};if(S=a(P)(e),!B()&&(S=t.get(P),!B()))throw new Error(P+" is not a valid datasource");var N=[];function F(e,t){var n;angular.isNumber(e[t])&&(n=e[t],angular.isNumber(n)&&(N=N.filter((function(e){return e.id!==t}))).push({id:t,run:function(){return e[t]=n}}))}function R(e,t,n){var i,r=Object.getOwnPropertyDescriptor(e,t);r&&(r.set||r.get)||(F(e,t),Object.defineProperty(e,t,{set:function(r){if(i=r,!U.length||D.length){D[n]=r;var o=V.topDataPos();V.adjustPaddings(),"minIndex"===t&&V.onAfterMinIndexSet(o)}else F(e,t)},get:function(){return i}}))}R(S,"minIndex","minIndexUser"),R(S,"maxIndex","maxIndexUser");var q=2!==S.get.length?function(e){return S.get(D.next,O,e)}:function(e){S.get({index:D.next,append:D.length?D[D.length-1].item:void 0,count:O},e)},W=2!==S.get.length?function(e){return S.get(D.first-O,O,e)}:function(e){S.get({index:D.first-O,prepend:D.length?D[0].item:void 0,count:O},e)};function z(t){return t&&t!==j||e.$$destroyed}function _(){V.off("resize",ne),V.off("scroll",ne)}function Q(e){return e.element.height()&&e.element[0].offsetParent}function J(e,t){K(e,t,V.insertElement),Q(e)||(e.unregisterVisibilityWatcher=e.scope.$watch((function(){return function(e){Q(e)&&(D.forEach((function(e){"function"==typeof e.unregisterVisibilityWatcher&&(e.unregisterVisibilityWatcher(),delete e.unregisterVisibilityWatcher)})),U.length||i((function(){return Z()})))}(e)}))),M.hideElement(e)}function K(e,t,n){var i=null,r=t>0?D[t-1].element:void 0;if(v((function(t,o){i=n(t,r),e.element=t,e.scope=o,o[E]=e.item})),H.transform){var o=e.scope.uiScrollTdInitializer;o&&o.linking?H.transform(e.scope,e.element):e.scope.uiScrollTdInitializer={onLink:function(){return H.transform(e.scope,e.element)},scope:e.scope}}return i}function X(e,t){t.animated.length?o.all(t.animated).then((function(){V.adjustPaddings(),Z(e)})):V.adjustPaddings()}function Y(e,t){V.shouldLoadBottom()?(!t||D.effectiveHeight(t.inserted)>0)&&1===U.push(!0)&&(H.loading(!0),te(e)):V.shouldLoadTop()&&(!t||D.effectiveHeight(t.prepended)>0||U[0])&&1===U.push(!1)&&(H.loading(!0),te(e))}function G(){var t,i,r,o,a=(t=[],i=[],r=[],o=[],D.forEach((function(e,n){switch(e.op){case l:i.unshift(e);break;case c:J(e,n),e.op=p,o.push(e);break;case f:t=t.concat(K(e,n,V.insertElementAnimated)),e.op=p,o.push(e);break;case d:r.push(e)}})),r.forEach((function(e){return t=t.concat(V.removeItem(e))})),i.length&&i.forEach((function(e){J(e),e.op=p})),D.forEach((function(e,t){return e.scope.$index=D.first+t})),{prepended:i,removed:r,inserted:o,animated:t});return!e.$$phase&&!n.$$phase&&e.$digest(),a.inserted.forEach((function(e){return M.showElement(e)})),a.prepended.forEach((function(e){return M.showElement(e)})),a}function Z(e){e||(U=[],e=++j);var t=G();z(e)||(X(e,t),Y(e),U.length||H.calculateProperties())}function ee(e){var t=G();V.onAfterPrepend(t),z(e)||(X(e,t),N.forEach((function(e){return e.run()})),N=[],Y(e,t),U.shift(),U.length?te(e):(H.loading(!1),V.on("resize",ne),V.on("scroll",ne),H.calculateProperties()))}function te(e){U[0]?D.length&&!V.shouldLoadBottom()?ee(e):q((function(t){z(e)||(t.length<O&&(D.eof=!0),t.length>0&&(V.clipTop(),D.append(t)),ee(e))})):D.length&&!V.shouldLoadTop()?ee(e):W((function(t){z(e)||(t.length<O&&(D.bof=!0),t.length>0&&(D.length&&V.clipBottom(),D.prepend(t)),ee(e))}))}function ne(){C&&function(){if(V.synthetic){var e=V.synthetic.previous,t=V.synthetic.next;if(V.scrollTop()!==t)return requestAnimationFrame((function(){var n=V.scrollTop(),i=e-n;i>0?V.scrollTop(t-i):V.scrollTop(t),V.synthetic=null})),!0;V.synthetic=null}}()||n.$$phase||H.isLoading||H.disabled||(Y(j),U.length?_():(H.calculateProperties(),!e.$$phase&&e.$digest()))}function ie(e){if(!H.disabled){var t=V[0].scrollTop,n=V[0].scrollHeight-V[0].clientHeight;(0===t&&!D.bof||t===n&&!D.eof)&&e.preventDefault()}}v((function(e,t){V.createPaddingElements(e[0]),t.$destroy(),e.remove()})),e.$on("$destroy",(function(){_(),V.off("mousewheel",ie)})),V.on("mousewheel",ie),function(){var e=0;if(V.applyContainerStyle())Z();else var t=r((function(){if(e++,V.applyContainerStyle()&&(r.cancel(t),Z()),50*e>=500)throw r.cancel(t),Error("ui-scroll directive requires a viewport with non-zero height in ".concat(500,"ms"))}),50)}()}}}])}()},808:function(e,t){!function(){"use strict";angular.module("ui.scroll.jqlite",[])}()}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[69,300],{304:function(e,t){angular.module("graphdb.framework.rest.rdfrank.service",[]).factory("RdfRankRestService",n);function n(e){return{getStatus:function(){return e.get("rest/rdfrank/status")},checkRdfRankPluginEnabled:function(){return e.get("rest/rdfrank/plugin-found")},checkFilteringEnabled:function(){return e.get("rest/rdfrank/filtering")},toggleFiltering:function(t){return e.post("rest/rdfrank/filtering?enabled="+t)},filter:function(t){return e.get("rest/rdfrank/filtering/"+t)},updateFilter:function(t,n){return e.put("rest/rdfrank/filtering/"+t,n)},deleteFilter:function(t,n){return e.delete("rest/rdfrank/filtering/"+t,{data:n,headers:{"Content-Type":"application/json;charset=utf-8"}})},includeExplicit:function(){return e.get("rest/rdfrank/include-explicit")},toggleIncludeExplicit:function(t){return e.post("rest/rdfrank/include-explicit?enabled="+t)},includeImplicit:function(){return e.get("rest/rdfrank/include-implicit")},toggleIncludeImplicit:function(t){return e.post("rest/rdfrank/include-implicit?enabled="+t)},compute:function(){return e.post("rest/rdfrank/compute")},computeIncremental:function(){return e.post("rest/rdfrank/compute-incremental")},interrupt:function(){return e.post("rest/rdfrank/interrupt")}}}n.$inject=["$http"]},389:function(e,t,n){"use strict";n.r(t);n(9),n(40),n(44),n(304),n(573);var r=n(24),i=n(0);angular.module("graphdb.framework.rdfrank",["ngRoute","ngTagsInput","graphdb.framework.utils.uriutils","graphdb.framework.rest.rdfrank.service"]).controller("RDFRankCtrl",["$scope","$rootScope","$interval","toastr","$repositories","$licenseService","$timeout","ClassInstanceDetailsService","UriUtils","RDF4JRepositoriesRestService","RdfRankRestService","$translate",function(e,t,n,a,o,c,s,u,l,d,g,p){let f;function m(){f&&n.cancel(f)}e.pluginName="rdfrank",e.setPluginIsActive=function(t){e.pluginIsActive=t};const h=function(){g.getStatus().success((function(t){e.currentRankStatus=t})).error((function(e){a.error(getError(e))}))};e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),g.checkRdfRankPluginEnabled().success((function(t){e.pluginFound=!0===t,e.pluginFound?(d.getNamespaces(o.getActiveRepository()).then(r.mapNamespacesResponse).then(t=>{e.namespaces=t}).catch(e=>{const t=getError(e);a.error(t,p.instant("error.getting.namespaces.for.repo"))}),h(),v(),T()):e.loading=!1})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const v=function(){g.checkFilteringEnabled().success((function(t){e.filteringEnabled=t})).error((function(e){a.error(getError(e))}))},T=function(){Object.values(e.filterLists).forEach((function(e){g.filter(e.predicate).success((function(t){return e.elements=t})).error((function(e){a.error(getError(e))}))})),g.includeExplicit().success((function(t){e.includeExplicit=t})).error((function(e){a.error(getError(e))})),g.includeImplicit().success((function(t){e.includeImplicit=t})).error((function(e){a.error(getError(e))}))};e.rdfStatus={CANCELED:"CANCELED",COMPUTED:"COMPUTED",COMPUTING:"COMPUTING",EMPTY:"EMPTY",ERROR:"ERROR",OUTDATED:"OUTDATED",CONFIG_CHANGED:"CONFIG_CHANGED"},e.filterLists={INCLUDED_PREDICATES:{name:"Included Predicates",predicate:"includedPredicates",placeholderKey:"rdfrank.include.predicates",fieldNameKey:"rdfrank.include.label"},INCLUDED_GRAPHS:{name:"Included Graphs",predicate:"includedGraphs",placeholderKey:"rdfrank.include.graphs",fieldNameKey:"rdfrank.include.label"},EXCLUDED_PREDICATES:{name:"Excluded Predicates",predicate:"excludedPredicates",placeholderKey:"rdfrank.exclude.predicates",fieldNameKey:"rdfrank.exclude.label"},EXCLUDED_GRAPHS:{name:"Excluded Graphs",predicate:"excludedGraphs",placeholderKey:"rdfrank.exclude.graphs",fieldNameKey:"rdfrank.exclude.label"}},e.setLoader=function(t,n){s.cancel(e.loaderTimeout),t?e.loaderTimeout=s((function(){e.loader=t,e.loaderMessage=n}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||p.instant("common.loading")},e.computeRank=function(){e.setLoader(!0,p.instant("rdfrank.full.computation")),g.compute().success((function(){e.currentRankStatus=e.rdfStatus.COMPUTING})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.computeIncrementalRank=function(){e.setLoader(!0,p.instant("rdfrank.incremental.computation")),g.computeIncremental().success((function(){e.currentRankStatus=e.rdfStatus.COMPUTING})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptComputation=function(){e.setLoader(!0,p.instant("index.interrupt")),g.interrupt().success((function(){h()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return o.getDegradedReason()},e.$on("repositoryIsSet",(function(){m(),c.isLicenseValid()&&o.getActiveRepository()&&!o.isActiveRepoOntopType()&&!o.isActiveRepoFedXType()&&(e.checkForPlugin(),y())})),e.toggleFiltering=function(){g.toggleFiltering(!e.filteringEnabled).success((function(){h(),v(),T()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIncludeExplicit=function(){g.toggleIncludeExplicit(!e.includeExplicit).success((function(){h(),T()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIncludeImplicit=function(){g.toggleIncludeImplicit(!e.includeImplicit).success((function(){h(),T()})).error((function(e){a.error(getError(e))})).finally((function(){e.setLoader(!1)}))};e.addToList=function(t,n){let r=n.text.toString();if(r=l.expandPrefix(r,e.namespaces),l.isValidIri(n,r)&&""!==r)!function(e,t){const n={iri:t};g.updateFilter(e.predicate,n).success((function(){h(),T()})).error((function(e){a.error(getError(e)),T()}))}(t,r);else{T();const e=Object(i.decodeHTML)(p.instant("not.valid.iri",{value:n.text.toString()}));a.error(e)}};e.deleteFromList=function(t,n){!function(e,t){const n={iri:t};g.deleteFilter(e.predicate,n).success((function(){h(),T()})).error((function(e){a.error(getError(e))}))}(t,n.text,e.namespaces)};const y=function(){f=n((function(){e.$broadcast("checkIsActive"),e.pluginFound&&h()}),5e3)},x=t.$on("$translateChangeSuccess",()=>{e.filterLists={INCLUDED_PREDICATES:{name:"Included Predicates",predicate:"includedPredicates",placeholderKey:"rdfrank.include.predicates",fieldNameKey:"rdfrank.include.label"},INCLUDED_GRAPHS:{name:"Included Graphs",predicate:"includedGraphs",placeholderKey:"rdfrank.include.graphs",fieldNameKey:"rdfrank.include.label"},EXCLUDED_PREDICATES:{name:"Excluded Predicates",predicate:"excludedPredicates",placeholderKey:"rdfrank.exclude.predicates",fieldNameKey:"rdfrank.exclude.label"},EXCLUDED_GRAPHS:{name:"Excluded Graphs",predicate:"excludedGraphs",placeholderKey:"rdfrank.exclude.graphs",fieldNameKey:"rdfrank.exclude.label"}}});e.$on("$destroy",(function(){x(),m()}));c.isLicenseValid()&&o.getActiveRepository()&&!o.isActiveRepoOntopType()&&!o.isActiveRepoFedXType()&&(e.checkForPlugin(),y())}])},573:function(e,t){
|
|
2
2
|
/*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var e=8,t=9,n=13,r=27,i=32,a=38,o=40,c=37,s=39,u=46,l=188,d=9007199254740991,g=["text","email","url"],p=angular.module("ngTagsInput",[]);p.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(t,r,a,o,p,f){function m(e,t,n,r){var i,a,c,s,u={};return i=function(t){return f.safeToString(t[e.displayProperty])},a=function(t,n){t[e.displayProperty]=n},c=function(t){var r=i(t),a=r&&r.length>=e.minLength&&r.length<=e.maxLength&&e.allowedTagsPattern.test(r)&&!f.findInObjectArray(u.items,t,e.keyProperty||e.displayProperty);return o.when(a&&n({$tag:t})).then(f.promisifyValue)},s=function(e){return o.when(r({$tag:e})).then(f.promisifyValue)},u.items=[],u.addText=function(e){var t={};return a(t,e),u.add(t)},u.add=function(n){var r=i(n);return e.replaceSpacesWithDashes&&(r=f.replaceSpacesWithDashes(r)),a(n,r),c(n).then((function(){u.items.push(n),t.trigger("tag-added",{$tag:n})})).catch((function(){r&&t.trigger("invalid-tag",{$tag:n})}))},u.remove=function(e){var n=u.items[e];return s(n).then((function(){return u.items.splice(e,1),u.clearSelection(),t.trigger("tag-removed",{$tag:n}),n}))},u.select=function(e){0>e?e=u.items.length-1:e>=u.items.length&&(e=0),u.index=e,u.selected=u.items[e]},u.selectPrior=function(){u.select(--u.index)},u.selectNext=function(){u.select(++u.index)},u.removeSelected=function(){return u.remove(u.index)},u.clearSelection=function(){u.selected=null,u.index=-1},u.getItems=function(){return e.useStrings?u.items.map(i):u.items},u.clearSelection(),u}function h(e){return-1!==g.indexOf(e)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(e,t,n){e.events=f.simplePubSub(),p.load("tagsInput",e,t,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",h],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,d],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,d],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),e.tagList=new m(e.options,e.events,f.handleUndefinedResult(e.onTagAdding,!0),f.handleUndefinedResult(e.onTagRemoving,!0)),this.registerAutocomplete=function(){return n.find("input"),{addTag:function(t){return e.tagList.add(t)},getTags:function(){return e.tagList.items},getCurrentTagText:function(){return e.newTag.text()},getOptions:function(){return e.options},getTemplateScope:function(){return e.templateScope},on:function(t,n){return e.events.on(t,n,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return e.options},removeTag:function(t){e.disabled||e.tagList.remove(t)}}}}],link:function(o,d,g,p){var m,h,v=[n,l,i,e,u,c,s],T=o.tagList,y=o.events,x=o.options,$=d.find("input"),k=["minTags","maxTags","allowLeftoverText"];m=function(){p.$setValidity("maxTags",T.items.length<=x.maxTags),p.$setValidity("minTags",T.items.length>=x.minTags),p.$setValidity("leftoverText",!(!o.hasFocus&&!x.allowLeftoverText)||!o.newTag.text())},h=function(){t((function(){$[0].focus()}))},p.$isEmpty=function(e){return!e||!e.length},o.newTag={text:function(e){return angular.isDefined(e)?(o.text=e,void y.trigger("input-change",e)):o.text||""},invalid:null},o.track=function(e){return e[x.keyProperty||x.displayProperty]},o.getTagClass=function(e,t){var n=e===T.selected;return[o.tagClass({$tag:e,$index:t,$selected:n}),{selected:n}]},o.$watch("tags",(function(e){if(e){if(T.items=f.makeObjectArray(e,x.displayProperty),x.useStrings)return;o.tags=T.items}else T.items=[]})),o.$watch("tags.length",(function(){m(),p.$validate()})),g.$observe("disabled",(function(e){o.disabled=e})),o.eventHandlers={input:{keydown:function(e){y.trigger("input-keydown",e)},focus:function(){o.hasFocus||(o.hasFocus=!0,y.trigger("input-focus"))},blur:function(){t((function(){var e=r.prop("activeElement"),t=e===$[0],n=d[0].contains(e);(t||!n)&&(o.hasFocus=!1,y.trigger("input-blur"))}))},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):a.clipboardData.getData("Text")},y.trigger("input-paste",e)}},host:{click:function(){o.disabled||h()}},tag:{click:function(e){y.trigger("tag-clicked",{$tag:e})}}},y.on("tag-added",o.onTagAdded).on("invalid-tag",o.onInvalidTag).on("tag-removed",o.onTagRemoved).on("tag-clicked",o.onTagClicked).on("tag-added",(function(){o.newTag.text("")})).on("tag-added tag-removed",(function(){o.tags=T.getItems(),p.$setDirty(),h()})).on("invalid-tag",(function(){o.newTag.invalid=!0})).on("option-change",(function(e){-1!==k.indexOf(e.name)&&m()})).on("input-change",(function(){T.clearSelection(),o.newTag.invalid=null})).on("input-focus",(function(){d.triggerHandler("focus"),p.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&T.addText(o.newTag.text()),d.triggerHandler("blur"),m()})).on("input-keydown",(function(t){var r,a,d,g,p=t.keyCode,m={};f.isModifierOn(t)||-1===v.indexOf(p)||(m[n]=x.addOnEnter,m[l]=x.addOnComma,m[i]=x.addOnSpace,r=!x.addFromAutocompleteOnly&&m[p],a=(p===e||p===u)&&T.selected,g=p===e&&0===o.newTag.text().length&&x.enableEditingLastTag,d=(p===e||p===c||p===s)&&0===o.newTag.text().length&&!x.enableEditingLastTag,r?T.addText(o.newTag.text()):g?(T.selectPrior(),T.removeSelected().then((function(e){e&&o.newTag.text(e[x.displayProperty])}))):a?T.removeSelected():d&&(p===c||p===e?T.selectPrior():p===s&&T.selectNext()),(r||d||a||g)&&t.preventDefault())})).on("input-paste",(function(e){if(x.addOnPaste){var t=e.getTextData().split(x.pasteSplitPattern);t.length>1&&(t.forEach((function(e){T.addText(e)})),e.preventDefault())}}))}}}]),p.directive("tiTagItem",["tiUtil",function(e){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,n,r,i){var a=i.registerTagItem(),o=a.getOptions();t.$$template=o.template,t.$$removeTagSymbol=o.removeTagSymbol,t.$getDisplayText=function(){return e.safeToString(t.data[o.displayProperty])},t.$removeTag=function(){a.removeTag(t.$index)},t.$watch("$parent.$index",(function(e){t.$index=e}))}}}]),p.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(e,i,c,s,u,l){function d(e,t,n){var r,i,a,o={};return a=function(){return t.tagsInput.keyProperty||t.tagsInput.displayProperty},r=function(e,n){return e.filter((function(e){return!l.findInObjectArray(n,e,a(),(function(e,n){return t.tagsInput.replaceSpacesWithDashes&&(e=l.replaceSpacesWithDashes(e),n=l.replaceSpacesWithDashes(n)),l.defaultComparer(e,n)}))}))},o.reset=function(){i=null,o.items=[],o.visible=!1,o.index=-1,o.selected=null,o.query=null},o.show=function(){t.selectFirstMatch?o.select(0):o.selected=null,o.visible=!0},o.load=l.debounce((function(n,c){o.query=n;var u=s.when(e({$query:n}));i=u,u.then((function(e){u===i&&(e=l.makeObjectArray(e.data||e,a()),e=r(e,c),o.items=e.slice(0,t.maxResultsToShow),o.items.length>0?o.show():o.reset())}))}),t.debounceDelay),o.selectNext=function(){o.select(++o.index)},o.selectPrior=function(){o.select(--o.index)},o.select=function(e){0>e?e=o.items.length-1:e>=o.items.length&&(e=0),o.index=e,o.selected=o.items[e],n.trigger("suggestion-selected",e)},o.reset(),o}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(e,t,n){e.events=l.simplePubSub(),u.load("autoComplete",e,n,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),e.suggestionList=new d(e.source,e.options,e.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return e.options},getQuery:function(){return e.suggestionList.query}}}}],link:function(e,i,c,s){var u,d=[n,t,r,a,o],g=e.suggestionList,p=s.registerAutocomplete(),f=e.options,m=e.events;f.tagsInput=p.getOptions(),u=function(e){return e&&e.length>=f.minLength||!e&&f.loadOnEmpty},e.templateScope=p.getTemplateScope(),e.addSuggestionByIndex=function(t){g.select(t),e.addSuggestion()},e.addSuggestion=function(){var e=!1;return g.selected&&(p.addTag(angular.copy(g.selected)),g.reset(),e=!0),e},e.track=function(e){return e[f.tagsInput.keyProperty||f.tagsInput.displayProperty]},e.getSuggestionClass=function(t,n){var r=t===g.selected;return[e.matchClass({$match:t,$index:n,$selected:r}),{selected:r}]},p.on("tag-added tag-removed invalid-tag input-blur",(function(){g.reset()})).on("input-change",(function(e){u(e)?g.load(e,p.getTags()):g.reset()})).on("input-focus",(function(){var e=p.getCurrentTagText();f.loadOnFocus&&u(e)&&g.load(e,p.getTags())})).on("input-keydown",(function(i){var c=i.keyCode,s=!1;if(!l.isModifierOn(i)&&-1!==d.indexOf(c))return g.visible?c===o?(g.selectNext(),s=!0):c===a?(g.selectPrior(),s=!0):c===r?(g.reset(),s=!0):(c===n||c===t)&&(s=e.addSuggestion()):c===o&&e.options.loadOnDownArrow&&(g.load(p.getCurrentTagText(),p.getTags()),s=!0),s?(i.preventDefault(),i.stopImmediatePropagation(),!1):void 0})),m.on("suggestion-selected",(function(e){!function(e,t){var n=e.find("li").eq(t),r=n.parent(),i=n.prop("offsetTop"),a=n.prop("offsetHeight"),o=r.prop("clientHeight"),c=r.prop("scrollTop");c>i?r.prop("scrollTop",i):i+a>o+c&&r.prop("scrollTop",i+a-o)}(i,e)}))}}}]),p.directive("tiAutocompleteMatch",["$sce","tiUtil",function(e,t){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(n,r,i,a){var o=a.registerAutocompleteMatch(),c=o.getOptions();n.$$template=c.template,n.$index=n.$parent.$index,n.$highlight=function(n){return c.highlightMatchedText&&(n=t.safeHighlight(n,o.getQuery())),e.trustAsHtml(n)},n.$getDisplayText=function(){return t.safeToString(n.data[c.displayProperty||c.tagsInput.displayProperty])}}}}]),p.directive("tiTranscludeAppend",(function(){return function(e,t,n,r,i){i((function(e){t.append(e)}))}})),p.directive("tiAutosize",["tagsInputConfig",function(e){return{restrict:"A",require:"ngModel",link:function(t,n,r,i){var a,o,c=e.getTextAutosizeThreshold();(a=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),n.parent().append(a),o=function(e){var t,i=e;return angular.isString(i)&&0===i.length&&(i=r.placeholder),i&&(a.text(i),a.css("display",""),t=a.prop("offsetWidth"),a.css("display","none")),n.css("width",t?t+c+"px":""),e},i.$parsers.unshift(o),i.$formatters.unshift(o),r.$observe("placeholder",(function(e){i.$modelValue||o(e)}))}}}]),p.directive("tiBindAttrs",(function(){return function(e,t,n){e.$watch(n.tiBindAttrs,(function(e){angular.forEach(e,(function(e,t){n.$set(t,e)}))}),!0)}})),p.provider("tagsInputConfig",(function(){var e={},t={},n=3;this.setDefaults=function(t,n){return e[t]=n,this},this.setActiveInterpolation=function(e,n){return t[e]=n,this},this.setTextAutosizeThreshold=function(e){return n=e,this},this.$get=["$interpolate",function(r){var i={};return i[String]=function(e){return e},i[Number]=function(e){return parseInt(e,10)},i[Boolean]=function(e){return"true"===e.toLowerCase()},i[RegExp]=function(e){return new RegExp(e)},{load:function(n,a,o,c){var s=function(){return!0};a.options={},angular.forEach(c,(function(c,u){var l,d,g,p,f,m;l=c[0],d=c[1],g=c[2]||s,p=i[l],f=function(){var t=e[n]&&e[n][u];return angular.isDefined(t)?t:d},m=function(e){a.options[u]=e&&g(e)?p(e):f()},t[n]&&t[n][u]?o.$observe(u,(function(e){m(e),a.events.trigger("option-change",{name:u,newValue:e})})):m(o[u]&&r(o[u])(a.$parent))}))},getTextAutosizeThreshold:function(){return n}}}]})),p.factory("tiUtil",["$timeout","$q",function(e,t){var n={debounce:function(t,n){var r;return function(){var i=arguments;e.cancel(r),r=e((function(){t.apply(null,i)}),n)}},makeObjectArray:function(e,t){if(!angular.isArray(e)||0===e.length||angular.isObject(e[0]))return e;var n=[];return e.forEach((function(e){var r={};r[t]=e,n.push(r)})),n},findInObjectArray:function(e,t,r,i){var a=null;return i=i||n.defaultComparer,e.some((function(e){return i(e[r],t[r])?(a=e,!0):void 0})),a},defaultComparer:function(e,t){return n.safeToString(e).toLowerCase()===n.safeToString(t).toLowerCase()},safeHighlight:function(e,t){if(e=n.encodeHTML(e),!(t=n.encodeHTML(t)))return e;var r=new RegExp("&[^;]+;|"+function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),"gi");return e.replace(r,(function(e){return e.toLowerCase()===t.toLowerCase()?"<em>"+e+"</em>":e}))},safeToString:function(e){return angular.isUndefined(e)||null==e?"":e.toString().trim()},encodeHTML:function(e){return n.safeToString(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},handleUndefinedResult:function(e,t){return function(){var n=e.apply(null,arguments);return angular.isUndefined(n)?t:n}},replaceSpacesWithDashes:function(e){return n.safeToString(e).replace(/\s/g,"-")},isModifierOn:function(e){return e.shiftKey||e.ctrlKey||e.altKey||e.metaKey},promisifyValue:function(e){return e=!!angular.isUndefined(e)||e,t[e?"when":"reject"]()},simplePubSub:function(){var e={};return{on:function(t,n,r){return t.split(" ").forEach((function(t){e[t]||(e[t]=[]),(r?[].unshift:[].push).call(e[t],n)})),this},trigger:function(t,r){return(e[t]||[]).every((function(e){return n.handleUndefinedResult(e,!0)(r)})),this}}}};return n}]),p.run(["$templateCache",function(e){e.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),e.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),e.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),e.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[7,81,111,112,113,114,115,116,117,118,119,289,293],{114:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",a),a.$inject=["$http"];function a(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/httpConfig",t)},updateClusterConfiguration:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const a=$.param({force:t});return e.delete("rest/cluster/config?"+a)},replaceNodesInCluster:function(t){return e.patch("rest/cluster/httpConfig",t)},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")},addCusterTag:function(t){return e.post("rest/cluster/config/tag",t)},deleteClusterTag:function(t){return e({method:"DELETE",url:"rest/cluster/config/tag",data:{tag:t},headers:{"Content-type":"application/json;charset=utf-8"}})},disableSecondaryMode:function(){return e.delete("rest/cluster/config/secondary-mode")},enableSecondaryMode:function(t){return e.post("rest/cluster/config/secondary-mode",t)}}}},154:function(e,t,a){"use strict";a.r(t),a.d(t,"HeapMemoryChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.hasSelectedSeries()?s.formatBytesValue(e,this.dataHolder,this.selectedSeries):s.formatBytesValue(e,this.dataHolder)},min:0},tooltip:{valueFormatter:e=>s.formatBytesValue(e,null,this.selectedSeries)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.memory.committed"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.memory.used"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.memory.committed"),t.name=this.translateService.instant("resource.memory.used"),this.configureSubtitle()}addNewData(e,t,a){const[r,s]=e,o=this.parseData(a);this.latestData={committed:o.committed,used:o.used,max:o.max},r.data.push({value:[t,o.committed]}),s.data.push({value:[t,o.used]}),this.configureSubtitle()}configureSubtitle(){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.heap.max"),value:s.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.heapMemoryUsage}updateRange(e,t,a){super.updateRange(e,t,a)}}},209:function(e,t,a){"use strict";a.r(t);a(9),a(41),a(43),a(114);var r=a(283),s=a(154),o=a(284),i=a(285),n=a(286),l=a(287),c=a(288),u=a(289),h=a(290),d=a(291);angular.module("graphdb.framework.jmx.resources.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","graphdb.framework.rest.cluster.service"]).controller("ResourcesCtrl",["$scope","$timeout","MonitoringRestService","$translate","$repositories","$q","ClusterRestService","$filter",function(e,t,a,m,p,f,S,g){e.AVAILABLE_TABS=Object.freeze({RESOURCE_MONITOR:"resource",PERFORMANCE_MONITOR:"performance",CLUSTER_HEALTH:"cluster"});const y=window.location.hash.slice(1),v=Object.keys(e.AVAILABLE_TABS).find(t=>e.AVAILABLE_TABS[t]===y);e.activeTab=e.AVAILABLE_TABS[v]||e.AVAILABLE_TABS.RESOURCE_MONITOR,e.resourceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{cpuLoad:new i.CpuLoadChart(m),fileDescriptors:new r.FileDescriptorsChart(m,g),heapMemory:new s.HeapMemoryChart(m),offHeapMemory:new o.NonHeapMemoryChart(m),diskStorage:new n.DiskStorageChart(m)}},e.performanceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{connectionsChart:new u.ConnectionsChart(m),epoolChart:new d.EpoolChart(m),queriesChart:new l.QueriesChart(m)}},e.structuresMonitorData={error:{hasError:!1,message:"",retries:0},charts:{globalCacheChart:new c.GlobalCacheChart(m,g)}},e.clusterHealthData={error:{hasError:!1,message:"",retries:0},charts:{clusterHealthChart:new h.ClusterHealthChart(m)}},e.hasCluster=!1;e.loader=!0,e.switchTab=t=>{e.activeTab=t,window.location.hash=t},e.getActiveRepository=function(){return p.getActiveRepository()};const D=function(e){return a.monitorQueryTransactionStatistics(e).then((function(e){return e.data}))},b=function(e){return a.monitorQuery(e).then((function(e){return e.data}))},C=function(){return a.monitorCluster()},x=e=>{if(e.chartsHolder.error.hasError){if(3===e.chartsHolder.error.retries)return e.poll&&t.cancel(e.poll),Promise.resolve();e.chartsHolder.error.retries++}return e.fetchFn().then((function(t){w(t,e)})).then(()=>{O(e)}).catch(t=>{A(e,t)}).finally(()=>{e.poll&&t.cancel(e.poll),e.poll=t(()=>x(e),2e3)})},w=(e,t,a)=>{const r=e.data;r&&H(r,t,a)},H=(e,t,a)=>{const r=new Date;a?a(r,e):Object.values(t.chartsHolder.charts).forEach(t=>{t.addData(r,e)})},A=(e,t)=>{e.chartsHolder.error.hasError=!!t,e.chartsHolder.error.hasError&&(e.chartsHolder.error.message=getError(t))},O=e=>{e.chartsHolder.error.hasError=!1,e.chartsHolder.error.message=""};e.monitors=[],e.monitors.push({chartsHolder:e.resourceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){return a.monitorResources()},poll:null}),e.monitors.push({chartsHolder:e.structuresMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?a.monitorStructures(t):Promise.resolve({})},poll:null}),e.monitors.push({chartsHolder:e.performanceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?f.all([D(t),b(t)]).then(e=>{const[t,a]=e;return{data:{performanceData:t,activeQueryData:a}}}):Promise.resolve({})},poll:null}),S.getNodeStatus().then(()=>{e.hasCluster=!0;const t={chartsHolder:e.clusterHealthData,fetchFn:C,poll:null};e.monitors.push(t),x(t)}).catch(()=>{e.hasCluster=!1});let R=null;f.all(e.monitors.map(e=>x(e))).finally(()=>{e.loader&&(R&&t.cancel(R),R=t((function(){e.loader=!1}),500))}),e.$on("$destroy",(function(){R&&t.cancel(R);for(const a of e.monitors)a.poll&&t.cancel(a.poll)}))}])},283:function(e,t,a){"use strict";a.r(t),a.d(t,"FileDescriptorsChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},min:0},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.file_descriptors.open"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,color:r.ChartData.COLORS[1],data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.file_descriptors.open"),this.configureSubtitle()}addNewData(e,t,a){this.latestData={maxFileDescriptors:a.maxFileDescriptors,openFileDescriptors:a.openFileDescriptors},this.configureSubtitle(),a.openFileDescriptors&&e[0].data.push({value:[t,a.openFileDescriptors]})}configureSubtitle(){let e;e=this.latestData.openFileDescriptors?[{label:this.translateService.instant("resource.system.file_descriptors.max"),value:this.formatNumber(this.latestData.maxFileDescriptors)}]:[{label:this.translateService.instant("resource.system.file_descriptors.only_unix")}],this.setSubTitle(e)}updateRange(e){super.updateRange(e,2)}}},284:function(e,t,a){"use strict";a.r(t),a.d(t,"NonHeapMemoryChart",(function(){return s}));var r=a(154);class s extends r.HeapMemoryChart{constructor(e){super(e,!1,!1)}configureSubtitle(e){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.non_heap.max"),value:r.HeapMemoryChart.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.nonHeapMemoryUsage}}},285:function(e,t,a){"use strict";a.r(t),a.d(t,"CpuLoadChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>e+"%"},min:0,max:function(e){return Math.round(e.max>50?100:2*e.max)}},tooltip:{valueFormatter:function(e){return e+"%"}}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.cpu_load.label"),type:"line",smoothMonotone:"x",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.cpu_load.label")}addNewData(e,t,a){e[0].data.push({value:[t,this.formatValue(a.cpuLoad)]})}formatValue(e){return+parseFloat(e).toFixed(4)}updateRange(e){}}},286:function(e,t,a){"use strict";a.r(t),a.d(t,"DiskStorageChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!0,!0)}chartSetup(e){const t={height:250,tooltip:{trigger:"axis",axisPointer:{type:"shadow",label:null},valueFormatter:function(e){return(100*e).toFixed(2)+"%"}},xAxis:{type:"value",min:0,max:1,splitNumber:2,axisLabel:{formatter:function(e){return(100*e).toFixed(2)+"%"}}},yAxis:{type:"category",data:[this.translateService.instant("resource.storage.logs"),this.translateService.instant("resource.storage.work"),this.translateService.instant("resource.storage.data")]},legend:{itemStyle:{opacity:1}}};_.merge(e,t)}createDataHolder(){return[this.createDataHolderForItem("resource.storage.used",r.ChartData.COLORS[1]),this.createDataHolderForItem("resource.storage.free",r.ChartData.COLORS[0])]}createDataHolderForItem(e,t){return{name:this.translateService.instant(e),type:"bar",stack:!0,showSymbol:!1,smooth:!0,barCategoryGap:"10%",color:t,itemStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},label:{show:!0,color:"black",opacity:1,formatter:function({value:e}){return(100*e).toFixed(2)+"%"}},emphasis:{itemStyle:{color:t,opacity:1},label:{color:"white"}},data:[]}}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.storage.used"),t.name=this.translateService.instant("resource.storage.free"),this.chartSetup(this.chartOptions),this.configureSubtitle()}addNewData(e,t,a,r){const s=a.storageMemory,[o,i]=e;this.latestData={data:{used:s.dataDirUsed,free:s.dataDirFree},work:{used:s.workDirUsed,free:s.workDirFree},logs:{used:s.logsDirUsed,free:s.logsDirFree}},this.configureSubtitle();const n=s.dataDirUsed+s.dataDirFree,l=s.workDirUsed+s.workDirFree,c=s.logsDirUsed+s.logsDirFree,u=s.dataDirUsed/n,h=s.workDirUsed/l,d=s.logsDirUsed/c,m=s.dataDirFree/n,p=s.workDirFree/l,f=s.logsDirFree/c;o.data.push(d,h,u),i.data.push(f,p,m)}configureSubtitle(){const e=[{label:this.translateService.instant("resource.storage.subtitle.data"),value:[s.formatBytesValue(this.latestData.data.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.data.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.work"),value:[s.formatBytesValue(this.latestData.work.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.work.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.logs"),value:[s.formatBytesValue(this.latestData.logs.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.logs.free,null,this.selectedSeries)]}];this.setSubTitle(e)}}},287:function(e,t,a){"use strict";a.r(t),a.d(t,"QueriesChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.queries.running"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.queries.running"),this.configureSubtitle()}addNewData(e,t,a){const{activeQueryData:r,performanceData:s}=a;this.latestData={slowQueries:s.queries.slow,suboptimal:s.queries.suboptimal,activeQueryData:r,performanceData:s},e[0].data.push({value:[t,r.length]}),this.configureSubtitle()}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}configureSubtitle(){const e=[{label:this.translateService.instant("resource.queries.slow"),value:this.latestData.slowQueries},{label:this.translateService.instant("resource.queries.suboptimal"),value:this.latestData.suboptimal}];this.setSubTitle(e)}}},288:function(e,t,a){"use strict";a.r(t),a.d(t,"GlobalCacheChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},minInterval:1},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resources.global_cache.hits"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resources.global_cache.miss"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resources.global_cache.hits"),t.name=this.translateService.instant("resources.global_cache.miss")}addNewData(e,t,a){const[r,s]=e;r.data.push({value:[t,a.cacheHit]}),s.data.push({value:[t,a.cacheMiss]})}}},289:function(e,t,a){"use strict";a.r(t),a.d(t,"ConnectionsChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.connections.active"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.connections.open"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.connections.active"),t.name=this.translateService.instant("resource.connections.open")}addNewData(e,t,a){const[r,s]=e,{activeTransactions:o,openConnections:i}=a.performanceData;r.data.push({value:[t,o]}),s.data.push({value:[t,i]})}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}}},290:function(e,t,a){"use strict";a.r(t),a.d(t,"ClusterHealthChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!0,!1),this.nodesCount=0}createDataHolder(){const[e,t,a,r]=s.COLORS;return[{name:this.translateService.instant("resources.cluster_health.in_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:e,data:[]},{name:this.translateService.instant("resources.cluster_health.syncing"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:a,data:[]},{name:this.translateService.instant("resources.cluster_health.out_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:t,data:[]},{name:this.translateService.instant("resources.cluster_health.disconnected"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:r,data:[]}]}addNewData(e,t,a){const r=a.nodesStats;this.nodesCount=r.nodesInCluster;const[s,o,i,n]=e;this.latestData={nodesInSync:r.nodesInCluster,nodesOutOfSync:r.nodesOutOfSync,nodesDisconnected:r.nodesDisconnected,nodesSyncing:r.nodesSyncing,term:a.term,failureRecoveriesCount:a.failureRecoveriesCount,failedTransactionsCount:a.failedTransactionsCount},s.data.push({value:[t,r.nodesInSync]}),i.data.push({value:[t,r.nodesOutOfSync]}),n.data.push({value:[t,r.nodesDisconnected]}),o.data.push({value:[t,r.nodesSyncing]}),this.configureSubtitle()}translateLabels(){const[e,t,a,r]=this.dataHolder;e.name=this.translateService.instant("resources.cluster_health.in_sync"),t.name=this.translateService.instant("resources.cluster_health.syncing"),a.name=this.translateService.instant("resources.cluster_health.out_sync"),r.name=this.translateService.instant("resources.cluster_health.disconnected"),this.configureSubtitle()}updateRange(e,t){this.chartOptions.yAxis.max=this.nodesCount,this.chartOptions.yAxis.splitNumber=this.nodesCount}configureSubtitle(){const e=[{label:this.translateService.instant("resource.cluster_health.leader_elections"),value:this.latestData.term},{label:this.translateService.instant("resource.cluster_health.recoveries"),value:this.latestData.failureRecoveriesCount},{label:this.translateService.instant("resource.cluster_health.failed_transactions"),value:this.latestData.failedTransactionsCount}];this.setSubTitle(e)}}},291:function(e,t,a){"use strict";a.r(t),a.d(t,"EpoolChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={grid:{containLabel:!0,left:40},yAxis:[{name:this.translateService.instant("resource.epool.reads"),nameLocation:"middle",type:"value",nameGap:40},{name:this.translateService.instant("resource.epool.writes"),nameLocation:"middle",type:"value",nameGap:40}]};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.epool.reads"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:0,data:[]},{name:this.translateService.instant("resource.epool.writes"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:1,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.epool.reads"),t.name=this.translateService.instant("resource.epool.writes"),this.chartSetup(this.chartOptions)}addNewData(e,t,a,r){const s=a.performanceData,[o,i]=e;let n=0,l=0;const c=s.entityPool.epoolReads,u=s.entityPool.epoolWrites;r||(n=c-this.lastestData.reads,l=u-this.lastestData.writes),this.lastestData={reads:c,writes:u},o.data.push({value:[t,n]}),i.data.push({value:[t,l]})}updateRange(e){e.forEach((e,t)=>{const[a,s]=r.ChartData.getIntegerRangeForValues(e,0,this.selectedSeries);this.chartOptions.yAxis[t].max=a,this.chartOptions.yAxis[t].minInterval=s})}}},87:function(e,t,a){"use strict";a.r(t),a.d(t,"ChartData",(function(){return s}));var r=a(541);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}constructor(e,t,a,r){this.filter=r,this.disableRangeUpdate=t,this.disableOldDataRemoval=a,this.translateService=e,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(e){this.refreshHandlers.push(e)}unregisterRefreshHandler(e){const t=this.refreshHandlers.indexOf(e);t>-1&&this.refreshHandlers.splice(t,1)}initialChartSetup(e=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),e&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(e=!1){e||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(e=>e(this.chartOptions))}setSubTitle(e,t=0){this.chartOptions.title.show=!0;let a="";e.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const o=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==o&&(a+=`{b|${o}}`),s+1<e.length&&(a+=t>0&&(s+1)%t==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(e){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(e,t){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,e,t,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(e=>!0===e)}removeOldData(e,t){this.disableOldDataRemoval||e[0].data.length>t&&e.forEach(e=>e.data.shift())}addNewData(e,t,a,r){}setSelectedSeries(e){this.selectedSeries=e}updateRange(e,t){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(e){return r.b.format(e.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(e,t){const a=e.filter(e=>!t||angular.isUndefined(t[e.name])||!0===t[e.name]).map(e=>s.getMaxValueForDataSeries(e));return Math.max(1,...a)}static getMaxValueForDataSeries(e){return Math.max(...e.data.map(e=>e.value[1]))}static calculateMaxChartValueAndDivisions(e,t,a){let r;r=Array.isArray(e)?s.getMaxValueFromDataHolder(e,a):s.getMaxValueForDataSeries(e);const o=Math.ceil(r*(t||s.DEFAULT_MULTIPLIER))||1;return[o,Math.ceil(o/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(e,t,a){const[r,o]=s.calculateMaxChartValueAndDivisions(e,t,a);return[r,o]}static formatBytesValue(e,t,a){let r=e;t&&(r=s.getMaxValueFromDataHolder(t,a));const o=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(e)/Math.pow(1024,o)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}`}formatNumber(e){if(!angular.isUndefined(e)&&this.filter)return this.filter("currency")(e,"",0)}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[7,83,112,113,114,115,116,117,118,119,120,289,293],{116:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",a),a.$inject=["$http"];function a(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/httpConfig",t)},updateClusterConfiguration:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const a=$.param({force:t});return e.delete("rest/cluster/config?"+a)},replaceNodesInCluster:function(t){return e.patch("rest/cluster/httpConfig",t)},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")},addCusterTag:function(t){return e.post("rest/cluster/config/tag",t)},deleteClusterTag:function(t){return e({method:"DELETE",url:"rest/cluster/config/tag",data:{tag:t},headers:{"Content-type":"application/json;charset=utf-8"}})},disableSecondaryMode:function(){return e.delete("rest/cluster/config/secondary-mode")},enableSecondaryMode:function(t){return e.post("rest/cluster/config/secondary-mode",t)}}}},154:function(e,t,a){"use strict";a.r(t),a.d(t,"HeapMemoryChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.hasSelectedSeries()?s.formatBytesValue(e,this.dataHolder,this.selectedSeries):s.formatBytesValue(e,this.dataHolder)},min:0},tooltip:{valueFormatter:e=>s.formatBytesValue(e,null,this.selectedSeries)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.memory.committed"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.memory.used"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.memory.committed"),t.name=this.translateService.instant("resource.memory.used"),this.configureSubtitle()}addNewData(e,t,a){const[r,s]=e,o=this.parseData(a);this.latestData={committed:o.committed,used:o.used,max:o.max},r.data.push({value:[t,o.committed]}),s.data.push({value:[t,o.used]}),this.configureSubtitle()}configureSubtitle(){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.heap.max"),value:s.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.heapMemoryUsage}updateRange(e,t,a){super.updateRange(e,t,a)}}},209:function(e,t,a){"use strict";a.r(t);a(9),a(41),a(43),a(116);var r=a(283),s=a(154),o=a(284),i=a(285),n=a(286),l=a(287),c=a(288),u=a(289),h=a(290),d=a(291);angular.module("graphdb.framework.jmx.resources.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","graphdb.framework.rest.cluster.service"]).controller("ResourcesCtrl",["$scope","$timeout","MonitoringRestService","$translate","$repositories","$q","ClusterRestService","$filter",function(e,t,a,m,p,f,S,g){e.AVAILABLE_TABS=Object.freeze({RESOURCE_MONITOR:"resource",PERFORMANCE_MONITOR:"performance",CLUSTER_HEALTH:"cluster"});const y=window.location.hash.slice(1),v=Object.keys(e.AVAILABLE_TABS).find(t=>e.AVAILABLE_TABS[t]===y);e.activeTab=e.AVAILABLE_TABS[v]||e.AVAILABLE_TABS.RESOURCE_MONITOR,e.resourceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{cpuLoad:new i.CpuLoadChart(m),fileDescriptors:new r.FileDescriptorsChart(m,g),heapMemory:new s.HeapMemoryChart(m),offHeapMemory:new o.NonHeapMemoryChart(m),diskStorage:new n.DiskStorageChart(m)}},e.performanceMonitorData={error:{hasError:!1,message:"",retries:0},charts:{connectionsChart:new u.ConnectionsChart(m),epoolChart:new d.EpoolChart(m),queriesChart:new l.QueriesChart(m)}},e.structuresMonitorData={error:{hasError:!1,message:"",retries:0},charts:{globalCacheChart:new c.GlobalCacheChart(m,g)}},e.clusterHealthData={error:{hasError:!1,message:"",retries:0},charts:{clusterHealthChart:new h.ClusterHealthChart(m)}},e.hasCluster=!1;e.loader=!0,e.switchTab=t=>{e.activeTab=t,window.location.hash=t},e.getActiveRepository=function(){return p.getActiveRepository()};const D=function(e){return a.monitorQueryTransactionStatistics(e).then((function(e){return e.data}))},b=function(e){return a.monitorQuery(e).then((function(e){return e.data}))},C=function(){return a.monitorCluster()},x=e=>{if(e.chartsHolder.error.hasError){if(3===e.chartsHolder.error.retries)return e.poll&&t.cancel(e.poll),Promise.resolve();e.chartsHolder.error.retries++}return e.fetchFn().then((function(t){w(t,e)})).then(()=>{O(e)}).catch(t=>{A(e,t)}).finally(()=>{e.poll&&t.cancel(e.poll),e.poll=t(()=>x(e),2e3)})},w=(e,t,a)=>{const r=e.data;r&&H(r,t,a)},H=(e,t,a)=>{const r=new Date;a?a(r,e):Object.values(t.chartsHolder.charts).forEach(t=>{t.addData(r,e)})},A=(e,t)=>{e.chartsHolder.error.hasError=!!t,e.chartsHolder.error.hasError&&(e.chartsHolder.error.message=getError(t))},O=e=>{e.chartsHolder.error.hasError=!1,e.chartsHolder.error.message=""};e.monitors=[],e.monitors.push({chartsHolder:e.resourceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){return a.monitorResources()},poll:null}),e.monitors.push({chartsHolder:e.structuresMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?a.monitorStructures(t):Promise.resolve({})},poll:null}),e.monitors.push({chartsHolder:e.performanceMonitorData,error:{hasError:!1,message:"",retries:0},fetchFn:function(){const t=e.getActiveRepository();return t?f.all([D(t),b(t)]).then(e=>{const[t,a]=e;return{data:{performanceData:t,activeQueryData:a}}}):Promise.resolve({})},poll:null}),S.getNodeStatus().then(()=>{e.hasCluster=!0;const t={chartsHolder:e.clusterHealthData,fetchFn:C,poll:null};e.monitors.push(t),x(t)}).catch(()=>{e.hasCluster=!1});let R=null;f.all(e.monitors.map(e=>x(e))).finally(()=>{e.loader&&(R&&t.cancel(R),R=t((function(){e.loader=!1}),500))}),e.$on("$destroy",(function(){R&&t.cancel(R);for(const a of e.monitors)a.poll&&t.cancel(a.poll)}))}])},283:function(e,t,a){"use strict";a.r(t),a.d(t,"FileDescriptorsChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},min:0},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.file_descriptors.open"),type:"line",areaStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},showSymbol:!1,smooth:!0,color:r.ChartData.COLORS[1],data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.file_descriptors.open"),this.configureSubtitle()}addNewData(e,t,a){this.latestData={maxFileDescriptors:a.maxFileDescriptors,openFileDescriptors:a.openFileDescriptors},this.configureSubtitle(),a.openFileDescriptors&&e[0].data.push({value:[t,a.openFileDescriptors]})}configureSubtitle(){let e;e=this.latestData.openFileDescriptors?[{label:this.translateService.instant("resource.system.file_descriptors.max"),value:this.formatNumber(this.latestData.maxFileDescriptors)}]:[{label:this.translateService.instant("resource.system.file_descriptors.only_unix")}],this.setSubTitle(e)}updateRange(e){super.updateRange(e,2)}}},284:function(e,t,a){"use strict";a.r(t),a.d(t,"NonHeapMemoryChart",(function(){return s}));var r=a(154);class s extends r.HeapMemoryChart{constructor(e){super(e,!1,!1)}configureSubtitle(e){if(this.latestData.max>0){const e=[{label:this.translateService.instant("resource.memory.non_heap.max"),value:r.HeapMemoryChart.formatBytesValue(this.latestData.max,null,this.selectedSeries)}];this.setSubTitle(e)}}parseData(e){return e.nonHeapMemoryUsage}}},285:function(e,t,a){"use strict";a.r(t),a.d(t,"CpuLoadChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>e+"%"},min:0,max:function(e){return Math.round(e.max>50?100:2*e.max)}},tooltip:{valueFormatter:function(e){return e+"%"}}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.system.cpu_load.label"),type:"line",smoothMonotone:"x",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.system.cpu_load.label")}addNewData(e,t,a){e[0].data.push({value:[t,this.formatValue(a.cpuLoad)]})}formatValue(e){return+parseFloat(e).toFixed(4)}updateRange(e){}}},286:function(e,t,a){"use strict";a.r(t),a.d(t,"DiskStorageChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!0,!0)}chartSetup(e){const t={height:250,tooltip:{trigger:"axis",axisPointer:{type:"shadow",label:null},valueFormatter:function(e){return(100*e).toFixed(2)+"%"}},xAxis:{type:"value",min:0,max:1,splitNumber:2,axisLabel:{formatter:function(e){return(100*e).toFixed(2)+"%"}}},yAxis:{type:"category",data:[this.translateService.instant("resource.storage.logs"),this.translateService.instant("resource.storage.work"),this.translateService.instant("resource.storage.data")]},legend:{itemStyle:{opacity:1}}};_.merge(e,t)}createDataHolder(){return[this.createDataHolderForItem("resource.storage.used",r.ChartData.COLORS[1]),this.createDataHolderForItem("resource.storage.free",r.ChartData.COLORS[0])]}createDataHolderForItem(e,t){return{name:this.translateService.instant(e),type:"bar",stack:!0,showSymbol:!1,smooth:!0,barCategoryGap:"10%",color:t,itemStyle:{opacity:r.ChartData.AREA_BAR_OPACITY},label:{show:!0,color:"black",opacity:1,formatter:function({value:e}){return(100*e).toFixed(2)+"%"}},emphasis:{itemStyle:{color:t,opacity:1},label:{color:"white"}},data:[]}}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.storage.used"),t.name=this.translateService.instant("resource.storage.free"),this.chartSetup(this.chartOptions),this.configureSubtitle()}addNewData(e,t,a,r){const s=a.storageMemory,[o,i]=e;this.latestData={data:{used:s.dataDirUsed,free:s.dataDirFree},work:{used:s.workDirUsed,free:s.workDirFree},logs:{used:s.logsDirUsed,free:s.logsDirFree}},this.configureSubtitle();const n=s.dataDirUsed+s.dataDirFree,l=s.workDirUsed+s.workDirFree,c=s.logsDirUsed+s.logsDirFree,u=s.dataDirUsed/n,h=s.workDirUsed/l,d=s.logsDirUsed/c,m=s.dataDirFree/n,p=s.workDirFree/l,f=s.logsDirFree/c;o.data.push(d,h,u),i.data.push(f,p,m)}configureSubtitle(){const e=[{label:this.translateService.instant("resource.storage.subtitle.data"),value:[s.formatBytesValue(this.latestData.data.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.data.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.work"),value:[s.formatBytesValue(this.latestData.work.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.work.free,null,this.selectedSeries)]},{label:this.translateService.instant("resource.storage.subtitle.logs"),value:[s.formatBytesValue(this.latestData.logs.used,null,this.selectedSeries),s.formatBytesValue(this.latestData.logs.free,null,this.selectedSeries)]}];this.setSubTitle(e)}}},287:function(e,t,a){"use strict";a.r(t),a.d(t,"QueriesChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.queries.running"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e]=this.dataHolder;e.name=this.translateService.instant("resource.queries.running"),this.configureSubtitle()}addNewData(e,t,a){const{activeQueryData:r,performanceData:s}=a;this.latestData={slowQueries:s.queries.slow,suboptimal:s.queries.suboptimal,activeQueryData:r,performanceData:s},e[0].data.push({value:[t,r.length]}),this.configureSubtitle()}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}configureSubtitle(){const e=[{label:this.translateService.instant("resource.queries.slow"),value:this.latestData.slowQueries},{label:this.translateService.instant("resource.queries.suboptimal"),value:this.latestData.suboptimal}];this.setSubTitle(e)}}},288:function(e,t,a){"use strict";a.r(t),a.d(t,"GlobalCacheChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e,t){super(e,!1,!1,t)}chartSetup(e){const t={yAxis:{axisLabel:{formatter:e=>this.formatNumber(e)},minInterval:1},tooltip:{valueFormatter:e=>this.formatNumber(e)}};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resources.global_cache.hits"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resources.global_cache.miss"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resources.global_cache.hits"),t.name=this.translateService.instant("resources.global_cache.miss")}addNewData(e,t,a){const[r,s]=e;r.data.push({value:[t,a.cacheHit]}),s.data.push({value:[t,a.cacheMiss]})}}},289:function(e,t,a){"use strict";a.r(t),a.d(t,"ConnectionsChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}createDataHolder(){return[{name:this.translateService.instant("resource.connections.active"),type:"line",showSymbol:!1,smooth:!0,data:[]},{name:this.translateService.instant("resource.connections.open"),type:"line",showSymbol:!1,smooth:!0,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.connections.active"),t.name=this.translateService.instant("resource.connections.open")}addNewData(e,t,a){const[r,s]=e,{activeTransactions:o,openConnections:i}=a.performanceData;r.data.push({value:[t,o]}),s.data.push({value:[t,i]})}updateRange(e,t){const[a,s]=r.ChartData.getIntegerRangeForValues(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a,this.chartOptions.yAxis.minInterval=s}}},290:function(e,t,a){"use strict";a.r(t),a.d(t,"ClusterHealthChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!0,!1),this.nodesCount=0}createDataHolder(){const[e,t,a,r]=s.COLORS;return[{name:this.translateService.instant("resources.cluster_health.in_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:e,data:[]},{name:this.translateService.instant("resources.cluster_health.syncing"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:a,data:[]},{name:this.translateService.instant("resources.cluster_health.out_sync"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:t,data:[]},{name:this.translateService.instant("resources.cluster_health.disconnected"),type:"line",stack:"nodes",showSymbol:!1,step:"middle",areaStyle:{},lineStyle:{width:0},color:r,data:[]}]}addNewData(e,t,a){const r=a.nodesStats;this.nodesCount=r.nodesInCluster;const[s,o,i,n]=e;this.latestData={nodesInSync:r.nodesInCluster,nodesOutOfSync:r.nodesOutOfSync,nodesDisconnected:r.nodesDisconnected,nodesSyncing:r.nodesSyncing,term:a.term,failureRecoveriesCount:a.failureRecoveriesCount,failedTransactionsCount:a.failedTransactionsCount},s.data.push({value:[t,r.nodesInSync]}),i.data.push({value:[t,r.nodesOutOfSync]}),n.data.push({value:[t,r.nodesDisconnected]}),o.data.push({value:[t,r.nodesSyncing]}),this.configureSubtitle()}translateLabels(){const[e,t,a,r]=this.dataHolder;e.name=this.translateService.instant("resources.cluster_health.in_sync"),t.name=this.translateService.instant("resources.cluster_health.syncing"),a.name=this.translateService.instant("resources.cluster_health.out_sync"),r.name=this.translateService.instant("resources.cluster_health.disconnected"),this.configureSubtitle()}updateRange(e,t){this.chartOptions.yAxis.max=this.nodesCount,this.chartOptions.yAxis.splitNumber=this.nodesCount}configureSubtitle(){const e=[{label:this.translateService.instant("resource.cluster_health.leader_elections"),value:this.latestData.term},{label:this.translateService.instant("resource.cluster_health.recoveries"),value:this.latestData.failureRecoveriesCount},{label:this.translateService.instant("resource.cluster_health.failed_transactions"),value:this.latestData.failedTransactionsCount}];this.setSubTitle(e)}}},291:function(e,t,a){"use strict";a.r(t),a.d(t,"EpoolChart",(function(){return s}));var r=a(87);class s extends r.ChartData{constructor(e){super(e,!1,!1)}chartSetup(e){const t={grid:{containLabel:!0,left:40},yAxis:[{name:this.translateService.instant("resource.epool.reads"),nameLocation:"middle",type:"value",nameGap:40},{name:this.translateService.instant("resource.epool.writes"),nameLocation:"middle",type:"value",nameGap:40}]};_.merge(e,t)}createDataHolder(){return[{name:this.translateService.instant("resource.epool.reads"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:0,data:[]},{name:this.translateService.instant("resource.epool.writes"),type:"line",showSymbol:!1,smooth:!0,yAxisIndex:1,data:[]}]}translateLabels(){const[e,t]=this.dataHolder;e.name=this.translateService.instant("resource.epool.reads"),t.name=this.translateService.instant("resource.epool.writes"),this.chartSetup(this.chartOptions)}addNewData(e,t,a,r){const s=a.performanceData,[o,i]=e;let n=0,l=0;const c=s.entityPool.epoolReads,u=s.entityPool.epoolWrites;r||(n=c-this.lastestData.reads,l=u-this.lastestData.writes),this.lastestData={reads:c,writes:u},o.data.push({value:[t,n]}),i.data.push({value:[t,l]})}updateRange(e){e.forEach((e,t)=>{const[a,s]=r.ChartData.getIntegerRangeForValues(e,0,this.selectedSeries);this.chartOptions.yAxis[t].max=a,this.chartOptions.yAxis[t].minInterval=s})}}},87:function(e,t,a){"use strict";a.r(t),a.d(t,"ChartData",(function(){return s}));var r=a(541);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}constructor(e,t,a,r){this.filter=r,this.disableRangeUpdate=t,this.disableOldDataRemoval=a,this.translateService=e,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(e){this.refreshHandlers.push(e)}unregisterRefreshHandler(e){const t=this.refreshHandlers.indexOf(e);t>-1&&this.refreshHandlers.splice(t,1)}initialChartSetup(e=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),e&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(e=!1){e||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(e=>e(this.chartOptions))}setSubTitle(e,t=0){this.chartOptions.title.show=!0;let a="";e.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const o=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==o&&(a+=`{b|${o}}`),s+1<e.length&&(a+=t>0&&(s+1)%t==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(e){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(e,t){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,e,t,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(e=>!0===e)}removeOldData(e,t){this.disableOldDataRemoval||e[0].data.length>t&&e.forEach(e=>e.data.shift())}addNewData(e,t,a,r){}setSelectedSeries(e){this.selectedSeries=e}updateRange(e,t){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(e,t,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(e){return r.b.format(e.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(e,t){const a=e.filter(e=>!t||angular.isUndefined(t[e.name])||!0===t[e.name]).map(e=>s.getMaxValueForDataSeries(e));return Math.max(1,...a)}static getMaxValueForDataSeries(e){return Math.max(...e.data.map(e=>e.value[1]))}static calculateMaxChartValueAndDivisions(e,t,a){let r;r=Array.isArray(e)?s.getMaxValueFromDataHolder(e,a):s.getMaxValueForDataSeries(e);const o=Math.ceil(r*(t||s.DEFAULT_MULTIPLIER))||1;return[o,Math.ceil(o/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(e,t,a){const[r,o]=s.calculateMaxChartValueAndDivisions(e,t,a);return[r,o]}static formatBytesValue(e,t,a){let r=e;t&&(r=s.getMaxValueFromDataHolder(t,a));const o=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(e)/Math.pow(1024,o)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}`}formatNumber(e){if(!angular.isUndefined(e)&&this.filter)return this.filter("currency")(e,"",0)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[70,94,330],{103:function(e,t,o){"use strict";o.r(t),o.d(t,"UrlUtils",(function(){return i}));const n=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,r=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class i{static isValidUrl(e){return n.test(e)||r.test(e)}static doesNotContain(e,t){return!new RegExp(t).test(e)}static doesNotUseProtocol(e,t){return!new RegExp("^("+t.join("|")+")://","i").test(e)}}},109:function(e,t,o){"use strict";o.r(t);var n=o(103);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,o,r){r.$validators.validUrl=function(e,t){if(r.$isEmpty(t))return"false"!==o.allowEmpty;if(!n.UrlUtils.isValidUrl(t))return!1;if(o.exclude&&!n.UrlUtils.doesNotContain(t,o.exclude))return!1;if(o.excludeProtocol){const e=o.excludeProtocol.split(",");if(!n.UrlUtils.doesNotUseProtocol(t,e))return!1}return!0}}}}))},216:function(e,t,o){"use strict";o.r(t);o(26);var n=o(24),r=o(0);o(109);function i(e,t,o,i,c,a,s,l,u,d,f,p){let g;function m(){g&&t.cancel(g)}e.pluginName="autocomplete",e.setPluginIsActive=function(t){e.pluginIsActive=t};const b=function(){d.checkAutocompleteStatus().then(t=>{e.autocompleteEnabled=t,p.setAutocompleteEnabled(t)}).catch(e=>{o.error(getError(e))})},h=function(){d.refreshIndexIRIs().success((function(t){e.shouldIndexIRIs=t})).error((function(e){o.error(getError(e))}))},L=function(){d.refreshIndexStatus().success((function(t){e.indexStatus=t})).error((function(e){o.error(getError(e))}))},I=function(){d.refreshLabelConfig().success((function(t){e.labelConfig=t})).error((function(e){o.error(getError(e))}))},v=function(e,t){const o=u.expandPrefix(e.labelIri.toString(),t);return!(!u.isValidIri(e,o)||""===o)&&(e.labelIri=o,!0)};function x(e){const t=Object(r.decodeHTML)(f.instant("not.valid.iri",{value:e.toString()}));o.error(t)}function $(t){t.then(()=>{I(),L()}).catch(e=>{o.error(getError(e))}).finally(()=>{e.setLoader(!1)})}e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),d.checkForPlugin().success((function(t){e.pluginFound=!0===t,e.pluginFound?(R(),b(),h(),L(),I()):(e.autocompleteEnabled=!1,e.loading=!1)})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const E=function(){g=t((function(){e.$broadcast("checkIsActive"),e.autocompleteEnabled&&L()}),5e3)};e.$on("$destroy",(function(){m()}));e.setLoader=function(t,o){s.cancel(e.loaderTimeout),t?e.loaderTimeout=s((function(){e.loader=t,e.loaderMessage=o}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||f.instant("common.loading")},e.toggleAutocomplete=function(){const t=!e.autocompleteEnabled;e.setLoader(!0,t?f.instant("autocomplete.enabling"):f.instant("autocomplete.disabling")),d.toggleAutocomplete(t).success((function(){b(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIndexIRIs=function(){e.setLoader(!0,f.instant("autocomplete.index.iri")),d.toggleIndexIRIs(!e.shouldIndexIRIs).success((function(){h(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.buildIndex=function(){e.setLoader(!0,f.instant("autocomplete.index.build")),d.buildIndex().success((function(){e.indexStatus="BUILDING"})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptIndexing=function(){e.setLoader(!0,f.instant("index.interrupt")),d.interruptIndexing().success((function(){L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return i.getDegradedReason()},e.addLabel=function(){e.editLabel({labelIri:"",languages:""},!0)},e.editLabel=function(t,o){const n=o?t=>function(t){if(e.setLoader(!0,f.instant("autocomplete.update")),v(t,e.namespaces)){$(d.addLabelConfig(t))}else x(t.labelIri),e.setLoader(!1)}(t.updated):t=>function(t,o){if(e.setLoader(!0,f.instant("autocomplete.update")),v(t,e.namespaces)){$(d.editLabelConfig(t,o))}else x(t.labelIri),e.setLoader(!1)}(t.updated,t.original);a.open({templateUrl:"js/angular/autocomplete/templates/modal/add-label.html",controller:"AddLabelCtrl",resolve:{data:function(){return{label:t,isNew:o}}}}).result.then(n)},e.removeLabel=function(t){!function(t){e.setLoader(!0,f.instant("autocomplete.update")),d.removeLabelConfig(t).success((function(){I(),L()})).error((function(e){o.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(t)},e.$on("repositoryIsSet",(function(){m(),c.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType()&&(e.checkForPlugin(),E())}));const R=()=>{l.getNamespaces(i.getActiveRepository()).then(n.mapNamespacesResponse).then(t=>{e.namespaces=t}).catch(e=>{const t=getError(e);o.error(t,f.instant("error.getting.namespaces.for.repo"))})};c.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType()&&(e.checkForPlugin(),E())}function c(e,t,o,n){e.label=_.cloneDeep(n.label),e.originalLabel=_.cloneDeep(n.label),e.isNew=n.isNew,e.ok=function(){e.form.$valid&&t.close({original:e.originalLabel,updated:e.label})},e.cancel=function(){t.dismiss("cancel")},e.setTemplate=function(t){e.label.labelIri=t,o((function(){$("#wb-autocomplete-languages").focus()}),0)}}angular.module("graphdb.framework.autocomplete.controllers",["toastr","graphdb.framework.rest.autocomplete.service","graphdb.framework.core.directives.validate-url"]).controller("AutocompleteCtrl",i).controller("AddLabelCtrl",c),i.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$uibModal","$timeout","RDF4JRepositoriesRestService","UriUtils","AutocompleteService","$translate","WorkbenchContextService"],c.$inject=["$scope","$uibModalInstance","$timeout","data"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[71,146,168],{120:function(e,a){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",["$translate","$rootScope","$compile",function(e,a,i){return{link:function(e,t){const n=()=>{const a=i('<uib-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" first-text="{{\'paginator.first.page.label\' | translate}}" last-text="{{\'paginator.last.page.label\' | translate}}"></uib-pagination>')(e);t.html(a)};n();const s=a.$on("$translateChangeSuccess",n);e.$on("$destroy",s)}}}])},177:function(e,a,i){"use strict";i.r(a),i.d(a,"GuideLevel",(function(){return t}));const t=Object.freeze({BEGINNER:0,INTERMEDIATE:1,ADVANCED:2})},265:function(e,a,i){"use strict";i.r(a);i(51),i(120);var t=i(2),n=i(177);function s(e,a,i,s,r,o,g){e.guides=[],e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.translationSubscription=void 0,e.startGuide=e=>{i.startGuide(e)},e.changePagination=()=>{angular.isDefined(e.guides)&&(e.displayedGuides=e.guides.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(a){e.page=1,e.pageSize=a||e.pageSizeOptions[0],e.changePagination()};const d=()=>i.getGuides().then(a=>{e.guides=s("orderBy")(a,"guideOrder"),l(),e.matchedElements=e.guides,e.changePagination()}),l=()=>{e.guides.forEach(e=>{switch(e.guideLevel){case void 0:case n.GuideLevel.BEGINNER:e.guideLevelLabel="view.guides.level.beginner";break;case n.GuideLevel.INTERMEDIATE:e.guideLevelLabel="view.guides.level.intermediate";break;default:e.guideLevelLabel="view.guides.level.advanced"}})},u=()=>{e.guides.forEach(e=>{e.translatedGuideName=t.GuideUtils.translateLocalMessage(r,o,e.guideName),e.translatedGuideDescription=t.GuideUtils.translateLocalMessage(r,o,e.guideDescription)})},c=[];c.push(a.$on("$translateChangeSuccess",u)),c.push(e.$on("$destroy",()=>{c.forEach(e=>e())})),d().then(u)}angular.module("graphdb.framework.guides.controllers",["ui.bootstrap","graphdb.framework.guides.services","graphdb.framework.core.directives.paginations"]).controller("GuidesCtrl",s),s.$inject=["$scope","$rootScope","GuidesService","$filter","$translate","$interpolate","toastr"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[72,94,330],{103:function(t,o,e){"use strict";e.r(o),e.d(o,"UrlUtils",(function(){return n}));const i=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,r=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class n{static isValidUrl(t){return i.test(t)||r.test(t)}static doesNotContain(t,o){return!new RegExp(o).test(t)}static doesNotUseProtocol(t,o){return!new RegExp("^("+o.join("|")+")://","i").test(t)}}},109:function(t,o,e){"use strict";e.r(o);var i=e(103);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",(function(){return{restrict:"A",require:"ngModel",link:function(t,o,e,r){r.$validators.validUrl=function(t,o){if(r.$isEmpty(o))return"false"!==e.allowEmpty;if(!i.UrlUtils.isValidUrl(o))return!1;if(e.exclude&&!i.UrlUtils.doesNotContain(o,e.exclude))return!1;if(e.excludeProtocol){const t=e.excludeProtocol.split(",");if(!i.UrlUtils.doesNotUseProtocol(o,t))return!1}return!0}}}}))},212:function(t,o,e){"use strict";e.r(o);var i=e(28);e(109);function r(t,o,e,r){t.RemoteLocationType=i.RemoteLocationType,t.RemoteLocationAuthType=i.RemoteLocationAuthType,t.isEdit=!!r.remoteLocation,t.remoteLocation=r.remoteLocation?new i.RemoteLocationModel({...r.remoteLocation}):new i.RemoteLocationModel,t.docBase="https://graphdb.ontotext.com/documentation/"+e.productShortVersion,t.ok=()=>{t.remoteLocationForm.$pristine||t.remoteLocationForm.$invalid||o.close(t.remoteLocation)},t.cancel=()=>{o.dismiss("cancel")},t.onLocationTypeChanged=()=>{[i.RemoteLocationType.ONTOPIC,i.RemoteLocationType.SPARQL].includes(t.remoteLocation.locationType)?t.remoteLocation.authType=i.RemoteLocationAuthType.BASIC:t.remoteLocation.authType=i.RemoteLocationAuthType.NONE}}angular.module("graphdb.framework.repositories.controllers.manage-remote-location-dialog",["graphdb.framework.core.directives.validate-url"]).controller("ManageRemoteLocationDialogController",r),r.$inject=["$scope","$uibModalInstance","productInfo","data"]}}]);
|