graphdb-workbench 2.4.1-TR1 → 2.4.1-TR3
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/{0.7daec4382561aa8681d5.bundle.js → 0.8a2ce9646b78087ee8d5.bundle.js} +2 -2
- package/dist/{1.88f6574fe2fcb82bf775.bundle.js → 1.307e6748342e15538f78.bundle.js} +1 -1
- package/dist/{10.25c3009270232c3ad844.bundle.js → 10.87d69dcbb678eb017d9f.bundle.js} +1 -1
- package/dist/{100.63b83a1aaec9dec2a159.bundle.js → 100.1d955d05c2b126f9864d.bundle.js} +1 -1
- package/dist/{101.04c16567a76c2d46e334.bundle.js → 101.0bb6e53298a278f00fa2.bundle.js} +1 -1
- package/dist/{102.2859258827e790c5fe06.bundle.js → 102.d97d1f597aa1f5fe8a84.bundle.js} +1 -1
- package/dist/{103.8d9dfc8dbeceed83ea4d.bundle.js → 103.ff30a5a1fda8bab8cfe9.bundle.js} +1 -1
- package/dist/{104.6b5154dbe7983078d26a.bundle.js → 104.53563d67730df28d2e77.bundle.js} +1 -1
- package/dist/{105.2a66bd0e522508ebd271.bundle.js → 105.ebc3fdf28cb773554460.bundle.js} +1 -1
- package/dist/{106.27c9e4f19d1f4638da85.bundle.js → 106.b05d55bc263ff0e2567d.bundle.js} +1 -1
- package/dist/{107.1cafdb62789a6d01efe3.bundle.js → 107.70dda8914a8aff1551df.bundle.js} +1 -1
- package/dist/{108.83bb7ce803f462882200.bundle.js → 108.d94d772e6dd0625999b4.bundle.js} +1 -1
- package/dist/{109.058abd1bafecf89da08f.bundle.js → 109.4c1c05058c0432fcfbf4.bundle.js} +1 -1
- package/dist/{11.04c9a9818ee92fbde029.bundle.js → 11.6eed30e27d3e87797f46.bundle.js} +1 -1
- package/dist/{110.63c5d2fc22ca73bc2161.bundle.js → 110.9fd8458398c332601b77.bundle.js} +1 -1
- package/dist/{111.57dcb90ea5fe513d6161.bundle.js → 111.5078636e1b82935a545a.bundle.js} +1 -1
- package/dist/{112.9bd920a0a14fde24231a.bundle.js → 112.96dcfe33b064076ac1be.bundle.js} +1 -1
- package/dist/{113.fe6efdeb16cea90aef64.bundle.js → 113.48a6c80675afe8267a64.bundle.js} +1 -1
- package/dist/{114.3a6135cc10951d23cb56.bundle.js → 114.d577fb9878db595454b9.bundle.js} +1 -1
- package/dist/115.278def3ba989bbfe9ff4.bundle.js +1 -0
- package/dist/116.d90649c4c649e647d7a2.bundle.js +1 -0
- package/dist/{117.45f91d2cf367836dadae.bundle.js → 117.467e62548d2cfc97dc4e.bundle.js} +1 -1
- package/dist/{118.aa4d1a68202c7681e169.bundle.js → 118.0aec8deaa819988fca29.bundle.js} +1 -1
- package/dist/{119.6eba5cf04079e83072ee.bundle.js → 119.c674c2b0aa6c5ee48ad1.bundle.js} +1 -1
- package/dist/{12.1b9d61202dccebfbec56.bundle.js → 12.684e3924524ec083514c.bundle.js} +4 -4
- package/dist/{120.0c5bcf54ab7e6114cded.bundle.js → 120.a2448289b4b4e15c5599.bundle.js} +1 -1
- package/dist/{121.eb2e07b504cbc0c0e151.bundle.js → 121.1337e56ef13853bb4d3f.bundle.js} +1 -1
- package/dist/{122.13211f5eed5e4bf17a48.bundle.js → 122.e9ed2fec5b91dc03ab8f.bundle.js} +1 -1
- package/dist/{123.8dbec2943eab449ea638.bundle.js → 123.de697a3f49fe40251c44.bundle.js} +1 -1
- package/dist/{124.7ce2385e2ce2ac41a255.bundle.js → 124.4eba62fcc75057b1c2cd.bundle.js} +1 -1
- package/dist/{125.2c1cfa4f1508591c2db9.bundle.js → 125.6222bdc96a658ac9213a.bundle.js} +1 -1
- package/dist/{126.1e81957d72de76d2a7b5.bundle.js → 126.7c1df25008b8ed08ff11.bundle.js} +1 -1
- package/dist/{127.9a1e0e14854bba15d762.bundle.js → 127.5047733607194ae1a9cc.bundle.js} +1 -1
- package/dist/{128.4eb95500c74ddcbc0ec1.bundle.js → 128.e30b33b7db3e9d4c0807.bundle.js} +1 -1
- package/dist/{129.905991d7d0b2c8cdddac.bundle.js → 129.1a17d5bd3eb86bf2c340.bundle.js} +1 -1
- package/dist/{13.1541df7afa089836059a.bundle.js → 13.1914ded040724e7084a3.bundle.js} +1 -1
- package/dist/{130.8d0c570a8363e55b4892.bundle.js → 130.03898700075c053f1da0.bundle.js} +1 -1
- package/dist/{131.80cb5a2bd108a4f0c74c.bundle.js → 131.5aaf572eec986ec511e2.bundle.js} +1 -1
- package/dist/{132.d3ba757be1f57238c518.bundle.js → 132.bc39877b95fd7beba2a0.bundle.js} +1 -1
- package/dist/{133.c9432441d39dbdf45a46.bundle.js → 133.5c94ce3b0d29e2b6bf81.bundle.js} +1 -1
- package/dist/{134.64ab677e16aa2b0c78b1.bundle.js → 134.b6e0a5b639bd74a9bf33.bundle.js} +1 -1
- package/dist/{135.e7ef2dedc3321ef31558.bundle.js → 135.1f22537c07a23801b0c2.bundle.js} +1 -1
- package/dist/{136.22f6c4a19299925123a0.bundle.js → 136.1dae14fd2886c20f7c26.bundle.js} +1 -1
- package/dist/{137.802084605202b8b7aef1.bundle.js → 137.3d5a974735fb47aa1d79.bundle.js} +1 -1
- package/dist/{138.1eae7a838df0b1e52ff4.bundle.js → 138.dab019c29bc5eba28cd0.bundle.js} +1 -1
- package/dist/{139.21dbd727f5f9bbadc865.bundle.js → 139.f2f1dc4f6f79f7424bcd.bundle.js} +1 -1
- package/dist/{14.e986fa1acaba4c87d970.bundle.js → 14.1d5ac7dcef27b9afa3b1.bundle.js} +1 -1
- package/dist/{140.e35e4a6421c31a6eb0d2.bundle.js → 140.81f624f6236989915ef9.bundle.js} +1 -1
- package/dist/{141.d48e599aa8dec29049e5.bundle.js → 141.20ad74ad83f165d5cb61.bundle.js} +1 -1
- package/dist/{142.d5af4ebdde0264efdbe0.bundle.js → 142.55f33d8cf0e735f0469c.bundle.js} +1 -1
- package/dist/{143.4a600ce8f1b38bc3c484.bundle.js → 143.5c160cfd9771df4684ba.bundle.js} +1 -1
- package/dist/{144.d2120bcd066b96e7ee58.bundle.js → 144.abdb4b7d99aa88e11e4c.bundle.js} +1 -1
- package/dist/{145.2ca8245e03e22c0fd9ed.bundle.js → 145.97fadd2dd3aba8e5da23.bundle.js} +1 -1
- package/dist/{146.a2f5b077f3eec4961a4b.bundle.js → 146.87958778020f11da609e.bundle.js} +1 -1
- package/dist/{147.c08eab536793c5ab07fc.bundle.js → 147.f2e561500c77abfc45c1.bundle.js} +1 -1
- package/dist/{148.a55927446e6b202926f1.bundle.js → 148.395ab2825c81f4fb38d5.bundle.js} +1 -1
- package/dist/{149.0f1210813636e6d0e48c.bundle.js → 149.56f682c28cec694efee1.bundle.js} +1 -1
- package/dist/{15.5edf745b4d8ae2318d66.bundle.js → 15.7f44e2d9c5fa8ddec358.bundle.js} +1 -1
- package/dist/{150.f3a633da2c7c2b9cd7c4.bundle.js → 150.22e2b067f545e64dd485.bundle.js} +1 -1
- package/dist/{151.474f1a6c85c10e352bc4.bundle.js → 151.a2a2037e3a004c4fa641.bundle.js} +1 -1
- package/dist/{152.1ef6bdbc8329b2a8d288.bundle.js → 152.dfc9f74cbf64ccf0ea49.bundle.js} +1 -1
- package/dist/{153.f710bf5c73f7d736a4b1.bundle.js → 153.e797ad0c7e150c84f0d8.bundle.js} +1 -1
- package/dist/{154.384bdfe1f4b3fce850b0.bundle.js → 154.91111db7b52bbdfcc183.bundle.js} +1 -1
- package/dist/{155.46f2a94df187ed492591.bundle.js → 155.20fa01821db5148427f2.bundle.js} +1 -1
- package/dist/{159.b791a62882176dc9a9b3.bundle.js → 159.9577c774cf79013ad6c2.bundle.js} +1 -1
- package/dist/{16.0e5e4d2f18942dc48a28.bundle.js → 16.cc9d3a90ac69d93da51a.bundle.js} +1 -1
- package/dist/{160.847d226a7c31b8dd3dba.bundle.js → 160.167e1fbef805b2af0682.bundle.js} +1 -1
- package/dist/{161.b255fab3ed77f7ac2230.bundle.js → 161.1f0e297091910853ffca.bundle.js} +1 -1
- package/dist/{162.532b65eb7575ded1f259.bundle.js → 162.95bf5e11490cb06f098b.bundle.js} +1 -1
- package/dist/163.0fb1f67ddcc7e065e52f.bundle.js +1 -0
- package/dist/164.dae97bcb647a99ec9b9d.bundle.js +1 -0
- package/dist/{165.83034f9c4e5a749e4123.bundle.js → 165.0e6d22f7b067f146992b.bundle.js} +1 -1
- package/dist/{166.b5734b2ae2128dc1f352.bundle.js → 166.f782a91912c5270aa790.bundle.js} +1 -1
- package/dist/{167.39609d5258c038019b9e.bundle.js → 167.b41022f1342505667e3b.bundle.js} +1 -1
- package/dist/{168.34a1790ea589d9926a97.bundle.js → 168.604316ed153524b052f3.bundle.js} +1 -1
- package/dist/{169.45b7052421531eceff65.bundle.js → 169.ae3ad7effef98b52e2d1.bundle.js} +1 -1
- package/dist/{17.223a2df2661b9c83eb6a.bundle.js → 17.8ad0f827f24eaa9b9235.bundle.js} +1 -1
- package/dist/{170.d5527024ac9107b542c3.bundle.js → 170.d3353f96b0bfc33175f4.bundle.js} +1 -1
- package/dist/{171.c0e7ce3fd59ef1bfc4f5.bundle.js → 171.d4e42adb13537e847ff0.bundle.js} +1 -1
- package/dist/{172.17dfb02daf0edd4dcfda.bundle.js → 172.f3db13f6a03c55f90160.bundle.js} +1 -1
- package/dist/{173.5e3fea538a2a2d5b5c0c.bundle.js → 173.ae711cba7e2c97fc73b5.bundle.js} +1 -1
- package/dist/{174.f8d097e76ea3f4363aa8.bundle.js → 174.b7ee6807e89a48c2a3fa.bundle.js} +1 -1
- package/dist/{175.1b84ab33587a120edf96.bundle.js → 175.f5ebcaf8e16fdfb515e2.bundle.js} +1 -1
- package/dist/{176.8c5f2eac9630f47dcfe6.bundle.js → 176.b42e87b0a480cb123000.bundle.js} +1 -1
- package/dist/{177.b4e1effc89e36a54d383.bundle.js → 177.dbaee0a7e49c31c80499.bundle.js} +1 -1
- package/dist/{178.5878cdc649570bd1584c.bundle.js → 178.6c9658eb1819b03fc6a3.bundle.js} +1 -1
- package/dist/{179.e3d0eb54e065b5d3a9b3.bundle.js → 179.485675f301804b2813c5.bundle.js} +1 -1
- package/dist/{18.23ba31d274425c4b3a45.bundle.js → 18.3848b0ae0c5a64b97244.bundle.js} +2 -2
- package/dist/{180.253197fc8d3c22a436eb.bundle.js → 180.3b38de15bc031d2b8f19.bundle.js} +1 -1
- package/dist/{181.6647e03a6aef077b32de.bundle.js → 181.5444eb4d48a6fc35718c.bundle.js} +1 -1
- package/dist/{182.a1fda6fcbab204e52e0c.bundle.js → 182.f28b62d80d9407e6b4f9.bundle.js} +1 -1
- package/dist/{183.18cb5ff4f822a8fed662.bundle.js → 183.a3a44afb0cd9dd52c87c.bundle.js} +1 -1
- package/dist/{184.f12257544b5398d3f2a3.bundle.js → 184.6abe5f451fb29c1e3a38.bundle.js} +1 -1
- package/dist/{185.14c3f0198be367d63776.bundle.js → 185.bfc5a7adba6373ef44d4.bundle.js} +1 -1
- package/dist/{186.0202fbf77a009c0044d1.bundle.js → 186.099e4c95a734e9f63ca4.bundle.js} +1 -1
- package/dist/{187.391e7d134c74be03ba3f.bundle.js → 187.a206a2dcf4e239da40d4.bundle.js} +1 -1
- package/dist/{188.ac13c63e6f27a377ba89.bundle.js → 188.4d4acf513bd189d12864.bundle.js} +1 -1
- package/dist/{189.dddf3f9a7ebe12c03816.bundle.js → 189.9144f1cf1d05118f6609.bundle.js} +1 -1
- package/dist/{19.0f28578d049f2cb29b82.bundle.js → 19.6852479fbabf869e8a34.bundle.js} +2 -2
- package/dist/{190.d7ad07ba4f1352960a8c.bundle.js → 190.93b55ad878d31e3a8a2a.bundle.js} +1 -1
- package/dist/{191.5d9d4325ae7b9ee2a4a9.bundle.js → 191.8c6c8350386fbd0dcd29.bundle.js} +1 -1
- package/dist/{192.633b1aba2828a7f05a5e.bundle.js → 192.8e5ebb875be32eb7b10c.bundle.js} +1 -1
- package/dist/{193.1fbde1bb67cbf14b1790.bundle.js → 193.0dfcfc1502000419984d.bundle.js} +1 -1
- package/dist/{194.409535e01db5b95f7902.bundle.js → 194.020806d6a750f32da571.bundle.js} +1 -1
- package/dist/{195.225e32febad8b009632d.bundle.js → 195.42bc3bc47d16a8986102.bundle.js} +1 -1
- package/dist/{196.6bbcfa8da98327b65eb1.bundle.js → 196.a89d3cc96dbc17612807.bundle.js} +1 -1
- package/dist/{197.541dd252fe17ef0e0f77.bundle.js → 197.56140e8c74f403c502fc.bundle.js} +1 -1
- package/dist/{198.63399ef675dbcd2056b7.bundle.js → 198.27d99bd1d52cdc67f8da.bundle.js} +1 -1
- package/dist/{199.282d9b54b913bfc128d3.bundle.js → 199.d67eb5c3c551be737327.bundle.js} +1 -1
- package/dist/{2.d7c3345b65673e79b8c5.bundle.js → 2.d513e38bb30bcc94b0b8.bundle.js} +3 -3
- package/dist/{20.635488a03f910fa4518b.bundle.js → 20.ea7a9e37933784499808.bundle.js} +1 -1
- package/dist/{200.76fd30afe28687f92b15.bundle.js → 200.95c99f2cbcc8567cfafb.bundle.js} +1 -1
- package/dist/{201.889e42d915554f3cd902.bundle.js → 201.b3f612dca72d097ddbbb.bundle.js} +1 -1
- package/dist/{202.05304444fcad7ed7158e.bundle.js → 202.7eac5c94dfe42ec52f8d.bundle.js} +1 -1
- package/dist/{203.81ba13895d041a1a4300.bundle.js → 203.1e581561902792ec691f.bundle.js} +1 -1
- package/dist/{204.1f6da63d62a8a330ca43.bundle.js → 204.b72540b4d3ceb0ac4f32.bundle.js} +1 -1
- package/dist/{205.f57f57ac33eaff53b51d.bundle.js → 205.93926b6252ecdd8c9fd3.bundle.js} +1 -1
- package/dist/{206.294496c4ba1c972bfad7.bundle.js → 206.e0210f4eb7c671c2b35c.bundle.js} +1 -1
- package/dist/{207.898fb8ad46af1a86525d.bundle.js → 207.8389e4e07b35e7bc0c76.bundle.js} +1 -1
- package/dist/{208.51b02bb87aae392135d2.bundle.js → 208.3aeedd28a9bb6b36c571.bundle.js} +1 -1
- package/dist/{209.a51458ccf909fbbc9b1f.bundle.js → 209.23d2270d49f851b3cf22.bundle.js} +1 -1
- package/dist/{21.9bbe46c05fe4a34a9cf8.bundle.js → 21.28e4367a15081fa5509e.bundle.js} +1 -1
- package/dist/{210.337c0b7764194dc8cb4e.bundle.js → 210.b78e4b9f60d4de111d82.bundle.js} +1 -1
- package/dist/211.06a38ffb491ba96d64c0.bundle.js +1 -0
- package/dist/212.6f681b92651c586e7b28.bundle.js +1 -0
- package/dist/{22.0ae31e473d0af170b177.bundle.js → 22.95bde4da51ed9cc67c2c.bundle.js} +2 -2
- package/dist/23.e54645da219284390374.bundle.js +1 -0
- package/dist/{24.8d3f4b05a5101a6a685b.bundle.js → 24.ff95d974197c38fdf6de.bundle.js} +1 -1
- package/dist/{25.66a3fdd74ea1150aeee6.bundle.js → 25.075024f4d2dbb1ffc2d8.bundle.js} +1 -1
- package/dist/{26.7aa870b10a9dc89ae74e.bundle.js → 26.a0254b14fd5b89382ecd.bundle.js} +1 -1
- package/dist/{27.60396d05fddda4894ce3.bundle.js → 27.7aab590febc0b18c99ea.bundle.js} +1 -1
- package/dist/{28.aebd82e778f3fcd55219.bundle.js → 28.26b027df1246476fb97e.bundle.js} +1 -1
- package/dist/{29.26ba5c5ae01345659970.bundle.js → 29.830ad0e2c46541581ec9.bundle.js} +1 -1
- package/dist/{3.f2e3c8a056a0e0f1068c.bundle.js → 3.df62d907d77392bdf941.bundle.js} +1 -1
- package/dist/{30.d5980b4d20fa2b95e443.bundle.js → 30.94037e5f764e24e2e414.bundle.js} +1 -1
- package/dist/{31.9a07cc30c05a1a698b98.bundle.js → 31.20b44039f4a26f4b8b8f.bundle.js} +1 -1
- package/dist/{32.f88a50038df0d43ccfc4.bundle.js → 32.40e988f74c315a0e8ac5.bundle.js} +1 -1
- package/dist/{33.9bbbf2f2e3a5ae17e656.bundle.js → 33.ef84d171e89aae3fda11.bundle.js} +1 -1
- package/dist/{34.3046d2d28129a67d4483.bundle.js → 34.04e9922baabd006f0b6a.bundle.js} +1 -1
- package/dist/{35.b61a55b560d729870619.bundle.js → 35.a875748384ad3c8a44ef.bundle.js} +1 -1
- package/dist/36.3c55e8a9c2160b6885c8.bundle.js +1 -0
- package/dist/{37.ac5b9eaa607c43ec69df.bundle.js → 37.96039a4ad1c088b016d0.bundle.js} +1 -1
- package/dist/{38.b776c45fe26516ca8160.bundle.js → 38.c69f9d8967f405c3bd43.bundle.js} +1 -1
- package/dist/4.e786ee254f00109e6e92.bundle.js +1 -0
- package/dist/{40.2c1f1cc8c521b8209885.bundle.js → 40.1fe72814f99ffeb51fd0.bundle.js} +1 -1
- package/dist/{41.ca5e37c70938b397f260.bundle.js → 41.33bd300e0214b2e9d86f.bundle.js} +1 -1
- package/dist/{42.b6c558e4b660bdb0be4d.bundle.js → 42.5eb5c97ec7533b587e5b.bundle.js} +1 -1
- package/dist/{43.42c27c3277a302252fc5.bundle.js → 43.0837b1e9a428e4dde8a2.bundle.js} +1 -1
- package/dist/{44.96d4cf9f701897a90fce.bundle.js → 44.726c8daab9870e19a9a4.bundle.js} +1 -1
- package/dist/{45.2c4bc26cf5fbe9b84cb6.bundle.js → 45.c748eed08dd120f34e7a.bundle.js} +1 -1
- package/dist/{46.d63a366dbcb649ed1fbb.bundle.js → 46.7394224fd7bde0e83c59.bundle.js} +1 -1
- package/dist/{47.0ecc5620f91346c3e7d4.bundle.js → 47.d4a63c708fcc3aa5f9e7.bundle.js} +1 -1
- package/dist/{48.f8b0ea5f9306e24ac2d0.bundle.js → 48.1e7be0e4fe6693a64811.bundle.js} +1 -1
- package/dist/{49.3da99bdb2271cf2adc7b.bundle.js → 49.f7c442dec730bf71188a.bundle.js} +1 -1
- package/dist/{5.95798814242e9fc02db4.bundle.js → 5.1f97ab7c93d1d6bbbaaf.bundle.js} +1 -1
- package/dist/{50.6695e410303c03ad694c.bundle.js → 50.1a859f31c02968721863.bundle.js} +1 -1
- package/dist/{51.95f30e28e67312c9df42.bundle.js → 51.b2417e306086dd6f9c58.bundle.js} +1 -1
- package/dist/{52.b0f496f823a213178075.bundle.js → 52.09d4428375d1538b883d.bundle.js} +1 -1
- package/dist/{53.716d3c94c3d0959a26a8.bundle.js → 53.71ed9791d3fd7019334b.bundle.js} +1 -1
- package/dist/{54.44b8cf059fe5ba4bf144.bundle.js → 54.aaaa5baf70c0b701938c.bundle.js} +1 -1
- package/dist/{55.891486b3fa68d44f3a52.bundle.js → 55.32cdab6677fb19b90cce.bundle.js} +1 -1
- package/dist/{56.3548e08f4add9390e771.bundle.js → 56.254bfcb8d814d3e3759b.bundle.js} +1 -1
- package/dist/{57.9f0dbb2e3b44c19c8dcd.bundle.js → 57.0b4eaa43acf093de9ec5.bundle.js} +1 -1
- package/dist/{58.a76e6e35994e2cb1a7f6.bundle.js → 58.f85af8f862e02471553a.bundle.js} +1 -1
- package/dist/{59.6dfdee0f9651ff9aa2f6.bundle.js → 59.95cd5c267f4b6d4dcaed.bundle.js} +1 -1
- package/dist/{6.8ec0502f2e6517640ba2.bundle.js → 6.a57818789247c2f1ef4b.bundle.js} +1 -1
- package/dist/{60.2b410d552e467b555529.bundle.js → 60.6164ef0489a252a415a4.bundle.js} +1 -1
- package/dist/{61.03a75a3d8faf4c165a0c.bundle.js → 61.f46e0fcc52884ef5be07.bundle.js} +1 -1
- package/dist/{62.86ba4d7804758d2e3f48.bundle.js → 62.189767fdd1fb0395b009.bundle.js} +1 -1
- package/dist/{63.5e2ca7ce2ea95b397fe7.bundle.js → 63.ecc6c0f67c579d13ee67.bundle.js} +1 -1
- package/dist/{64.6a8854031771d4d4ef74.bundle.js → 64.eb6e6040937f208bdb43.bundle.js} +1 -1
- package/dist/{65.9e598abd11534c42a0c1.bundle.js → 65.7554f0d43835dc6ea555.bundle.js} +1 -1
- package/dist/{66.7b18071c05eb5efb213b.bundle.js → 66.b7aa9c231089ed35bd28.bundle.js} +1 -1
- package/dist/{67.fa36cb1b8e55e91d8850.bundle.js → 67.1188a6e4a5f5447a8b62.bundle.js} +1 -1
- package/dist/{68.1d425ce7da7058254c2f.bundle.js → 68.8b0088e4baff9545383c.bundle.js} +1 -1
- package/dist/{69.7816b63a19bf02451f5d.bundle.js → 69.ccb1145496017634c4d2.bundle.js} +1 -1
- package/dist/{7.35fd0cc54af4ae648ead.bundle.js → 7.1c0bde1ff36bec0cab62.bundle.js} +2 -2
- package/dist/{70.fcca4105919427b384ee.bundle.js → 70.9b1d6b92a7be3d8a1433.bundle.js} +1 -1
- package/dist/{71.1d860b69a990d36ece53.bundle.js → 71.990da7d0131774540d94.bundle.js} +1 -1
- package/dist/{72.c82f209992278009e1a3.bundle.js → 72.4a57d178044fe2c11b72.bundle.js} +1 -1
- package/dist/{73.fe7ca97e0d6f3e83d9af.bundle.js → 73.d485b901f51bb892883e.bundle.js} +1 -1
- package/dist/{74.02eb1c81c5a7b39d63be.bundle.js → 74.c0b3c6941c176e0aebcc.bundle.js} +1 -1
- package/dist/{75.13e0f311c6c98067c4f8.bundle.js → 75.27b46b06d2be61863ef3.bundle.js} +1 -1
- package/dist/{76.44bdcc2130c6a744bc55.bundle.js → 76.f8a3ef565854da38ea9e.bundle.js} +1 -1
- package/dist/{77.0373cd7f1c2851df3908.bundle.js → 77.55c0024f4f2e60b87e30.bundle.js} +1 -1
- package/dist/{79.cb33ee2df704588c0dee.bundle.js → 79.2d02d1f12feaf1bc654c.bundle.js} +1 -1
- package/dist/{8.2b1b357b8afba4bd5dda.bundle.js → 8.5b0bbad215fce77138ff.bundle.js} +1 -1
- package/dist/{80.28723cd3d93bd3fe3c1b.bundle.js → 80.a4376c99a06dddcdb6d4.bundle.js} +1 -1
- package/dist/81.6f01e116a287be03e0c8.bundle.js +1 -0
- package/dist/{82.63053f57c54f3870c6b4.bundle.js → 82.6b63305bab4b778375aa.bundle.js} +1 -1
- package/dist/{83.a6c2ad332de0ee224136.bundle.js → 83.5838bc112ddd23c54bdf.bundle.js} +1 -1
- package/dist/{84.160b1ea5b257276fe22f.bundle.js → 84.783d54197f0f84301924.bundle.js} +1 -1
- package/dist/{85.32462b06fa1284fc2a87.bundle.js → 85.1994df654ef9bc6d52e2.bundle.js} +1 -1
- package/dist/{86.399f5cbb00afc5ccccd7.bundle.js → 86.15d8d134c41d9eedb5f7.bundle.js} +1 -1
- package/dist/{87.1a8b0b4fd818a413de82.bundle.js → 87.41f83e9f577d7793f934.bundle.js} +1 -1
- package/dist/{88.738b3a2efa5ba9bfef71.bundle.js → 88.d8bda5d7848ae703a232.bundle.js} +1 -1
- package/dist/{89.ecce6e48f1d5921ad7b9.bundle.js → 89.69a97ef6ec74d79a7793.bundle.js} +1 -1
- package/dist/{9.1e2a1467755135bb1717.bundle.js → 9.fb1b2ce8103077876f1a.bundle.js} +1 -1
- package/dist/{90.052a76395eb9473edb9e.bundle.js → 90.18bbf27296113fc1cbb6.bundle.js} +1 -1
- package/dist/{91.a6eb1cd89547ccc2da08.bundle.js → 91.9a1da3ee81fee797b8c7.bundle.js} +1 -1
- package/dist/{92.a76fcac9855d6ea43acc.bundle.js → 92.4514c3a90b050bbd1129.bundle.js} +1 -1
- package/dist/{93.a66b80c93662e56ccc97.bundle.js → 93.e9359d8547790d707791.bundle.js} +1 -1
- package/dist/94.8c85dda9eef7f694b6d1.bundle.js +1 -0
- package/dist/{95.2c6ad9bc82627035b7ed.bundle.js → 95.bc10c26610fc2465037f.bundle.js} +1 -1
- package/dist/{96.0c1b0454a0595ac0b888.bundle.js → 96.dcb020a5702c939c0a09.bundle.js} +1 -1
- package/dist/{97.f0e6133cd5a664499c6f.bundle.js → 97.25396f327398863000ba.bundle.js} +1 -1
- package/dist/{98.1886caa9872ba5f2eb07.bundle.js → 98.781947753583522ed496.bundle.js} +1 -1
- package/dist/{99.42f11427ea2c99e9173b.bundle.js → 99.bbfe048c33a2650a6237.bundle.js} +1 -1
- package/dist/{bundle.46911255e3d16f33633d.bundle.js → bundle.986982107cd13ca86335.bundle.js} +9 -9
- package/dist/css/clustermanagement.css +4 -0
- package/dist/css/repositories.css +5 -0
- package/dist/i18n/locale-en.json +1 -0
- package/dist/i18n/locale-fr.json +1 -0
- package/dist/index.html +3 -3
- package/dist/js/angular/clustermanagement/templates/modal/add-nodes-dialog.html +12 -5
- package/dist/js/angular/clustermanagement/templates/modal/cluster-create-dialog.html +9 -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/security/templates/user.html +4 -1
- package/dist/license-checker.json +2 -16
- package/dist/{main.dc50b704432268af5a47.bundle.js → main.4e93e1e66611ac456dcb.bundle.js} +1 -1
- package/dist/pages/aclmanagement.html +1 -1
- 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 +4 -4
- 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 +11 -11
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +1 -1
- package/dist/pages/jdbc-create.html +5 -5
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +2 -2
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -3
- package/dist/pages/repository.html +5 -4
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-template-create.html +5 -5
- package/dist/pages/sparql.html +3 -3
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger/index.html +27 -27
- package/dist/vendor.0ae6fb8c7aea6c6f7c6f.bundle.js +27 -0
- package/package.json +1 -4
- package/dist/115.a39103a5752b1dee21dd.bundle.js +0 -1
- package/dist/116.b3acff9003106b7f9b62.bundle.js +0 -1
- package/dist/163.18ce4731466e3c04fe13.bundle.js +0 -1
- package/dist/164.f26289867aedbaf63da2.bundle.js +0 -1
- package/dist/211.1f858cfbe1e9267dd629.bundle.js +0 -1
- package/dist/212.1c0e881dff8f75170f2a.bundle.js +0 -1
- package/dist/23.278dbb3fdef6b228e7a3.bundle.js +0 -1
- package/dist/36.8fb93862c497f344662c.bundle.js +0 -1
- package/dist/4.870de73e2e763f35280a.bundle.js +0 -1
- package/dist/81.c14757a485d616ca95ba.bundle.js +0 -1
- package/dist/94.e61e957dc3eeda570bfa.bundle.js +0 -1
- package/dist/css/lib/bootstrap-switch/bootstrap-switch.min.css +0 -10
- package/dist/vendor.c22e3aa91c9d63aeef57.bundle.js +0 -35
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{134:function(t,e,n){"use strict";n.r(e);n(6),n(26);const r="UPLOADING",i="PENDING",s="ERROR",a="DONE",o="NONE",l=angular.module("graphdb.framework.impex.import.controllers",["ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.utils.uriutils","graphdb.framework.guides.services"]);l.controller("CommonCtrl",["$scope","$http","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","$translate","LicenseRestService","GuidesService","ModalService",function(t,e,n,r,i,o,l,c,u,p,f,m,d){t.files=[],t.fileChecked={},t.checkAll=!1,t.popoverTemplateUrl="settingsPopoverTemplate.html",t.fileQuery="",t.getAppData=function(){f.getInfo().success((function(e){t.appData={},t.appData.properties={};for(let n=0;n<e.length;n++)t.appData.properties[e[n].key]={source:e[n].source,value:e[n].value};t.maxUploadFileSizeMB=t.appData.properties["graphdb.workbench.maxUploadSize"].value/1048576})).error((function(t){const e=getError(t);n.error(e,p.instant("common.error"))}))},t.getAppData(),t.fileFormats=["ttl","ttls","rdf","rj","n3","nt","nq","trig","trigs","trix","brf","owl","jsonld","xml","rdfs","ndjsonld","ndjson","jsonl"];{const e=_.map(t.fileFormats,(function(t){return"."+t+".gz"})),n=_.map(t.fileFormats,(function(t){return"."+t}));t.fileFormatsExtended=_.reduce(_.union(e,n,[".zip"]),(function(t,e){return t+", "+e})),t.fileFormatsHuman=_.reduce(n,(function(t,e){return t+" "+e}))+p.instant("import.gz.zip"),t.textFileFormatsHuman=_.reduce(_.filter(n,(function(t){return".brf"!==t})),(function(t,e){return t+" "+e}))}t.updateListHttp=function(r){e({method:"GET",url:t.getBaseUrl()}).success((function(e){0===t.files.length||r?(t.files=e,_.forEach(t.files,(function(e){e.type||(e.type=t.defaultType)})),t.rebatch()):t.files.forEach((function(n){const r=_.find(e,_.matches({name:n.name}));n.status&&r&&_.assign(n,r),n.type||(n.type=t.defaultType)})),r&&"user"===t.viewType&&(t.files=_.filter(t.files,(function(t){return void 0!==t.status}))),t.showClearStatuses=_.filter(t.files,(function(t){return t.status===a||t.status===s})).length>0,t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"),t.loader=!1})).error((function(e){n.warning(p.instant("import.error.could.not.get.files",{data:getError(e)})),t.loader=!1}))},t.$watch((function(){return $(t.tabId).is(":visible")}),(function(){$(t.tabId).is(":visible")&&(t.updateListHttp(!1),u.hash(t.viewType))})),t.updateList=function(e){t.canWriteActiveRepo()&&$(t.tabId).is(":visible")&&t.updateListHttp(e)},t.init=function(){t.setRestricted(),t.isRestricted||(t.updateList(!0),t.getSettings())},t.$on("repositoryIsSet",t.init),t.pullList=function(){const e=r((function(){t.updating||t.updateList(!1)}),4e3);t.$on("$destroy",(function(){r.cancel(e)}))},t.getVisibleFiles=function(){return l("filter")(t.files,{name:t.fileQuery,type:t.getTypeFilter()})},t.getTypeFilter=function(){return"server"!==t.viewType||"file"!==t.showItems&&"directory"!==t.showItems?"":t.showItems},t.selectAllFiles=function(){t.getVisibleFiles().forEach((function(e){t.fileChecked[e.name]=t.checkAll&&t.importable(e)}))},t.getSettingsFor=function(e,n){return n||_.isEmpty(e)||_.isEmpty(t.savedSettings[e])?angular.copy(t.defaultSettings):t.savedSettings[e]},t.setSettingsFor=function(e,n){t.settingsFor=e,t.settings=t.getSettingsFor(e,n);const r={templateUrl:"js/angular/import/templates/settingsModal.html",controller:"SettingsModalCtrl",resolve:{settings:function(){return angular.copy(t.settings)},hasParserSettings:t.isLocalLocation,defaultSettings:function(){return t.defaultSettings},isMultiple:function(){return!e}},size:"lg"};m.isActive()&&(r.backdrop="static",r.keyboard=!1);o.open(r).result.then((function(e){t.settings=e,""===t.settingsFor?t.importSelected():t.importFile(t.settingsFor,!0)}),(function(e){t.settings=e}))},t.updateImport=function(e,n){t.settingsFor=e,t.settings=t.getSettingsFor(e,n),t.importFile(e,!1)},t.stopImport=function(r){e({method:"DELETE",url:t.getBaseUrl(),params:{name:r.name,type:r.type}}).success((function(){t.updateList()})).error((function(t){n.warning(p.instant("import.error.could.not.stop",{data:getError(t)}))}))},t.importable=function(){return!0},t.hasImportable=function(){return _.filter(t.files,(function(e){return t.importable(e)})).length>0},t.showTable=function(){const e=t.files.length>0&&("user"===t.viewType||"server"===t.viewType);return t.checkAll&&t.switchBatch(!0),e},t.switchBatch=function(e){e?t.selectAllFiles():t.checkAll&&(t.checkAll=!1),t.batch=_.map(_.filter(t.files,(function(e){return t.fileChecked[e.name]&&t.importable(e)})),"name").length>0},t.rebatch=function(){const e={};t.batch=!1,_.each(t.files,(function(n){e[n.name]=t.fileChecked[n.name],t.batch|=t.fileChecked[n.name]})),t.batch||(t.checkAll=!1),t.fileChecked=e},t.getSelectedFiles=function(){return _.map(_.filter(t.getVisibleFiles(),(function(e){return t.fileChecked[e.name]&&t.importable(e)})),"name")},t.importSelected=function(e){const n=t.getSelectedFiles(),r=function(){const i=n.shift();i&&(e&&(t.settings=t.getSettingsFor(i)),t.importFile(i,!0,r))};r()};const g=function(r,i){e({method:"DELETE",url:t.getBaseUrl()+"/status",params:{remove:i},data:r,headers:{"Content-type":"application/json;charset=utf-8"}}).success((function(){t.updateList(!0)})).error((function(t){n.warning(p.instant("import.error.could.not.clear",{data:getError(t)}))}))};t.resetStatus=function(t){g(t,!1)},t.resetStatusSelected=function(){t.resetStatus(t.getSelectedFiles())},t.removeEntry=function(t=[]){d.openConfirmation(p.instant("common.confirm"),p.instant("import.remove.confirm.msg",{name:t.join(", ")}),()=>{g(t,!0)})},t.removeEntrySelected=function(){t.removeEntry(t.getSelectedFiles())},t.isLocalLocation=function(){const t=i.getActiveLocation();return t&&t.local},t.filterSettings=function(e){let n=_.omitBy(t.savedSettings[e],_.isNull);return n=_.omit(n,["repoLocationHash","status","message","name","data","type","format","fileNames","$$hashKey"]),_.map(_.keys(n),(function(t){return[t,n[t]]}))},t.getSettings=function(){t.canWriteActiveRepo()&&e({method:"GET",url:"rest/repositories/"+i.getActiveRepository()+"/import/settings/default"}).success((function(e){t.defaultSettings=e})).error((function(t){n.warning(p.instant("import.error.default.settings",{data:getError(t)}))}))},t.getBaseUrl=function(){return"rest/repositories/"+i.getActiveRepository()+"/import/"+t.viewUrl},t.pritifySettings=function(t){return JSON.stringify(t,null," ")},t.toTitleCase=function(t){return t?_.upperFirst(t.toLowerCase()):t}}]),l.controller("ImportCtrl",["$scope","$http","toastr","$controller","$translate",function(t,e,n,r,i){t.loader=!0,angular.extend(this,r("CommonCtrl",{$scope:t})),t.viewUrl="server",t.defaultType="server",t.tabId="#import-server",t.showItems="all",t.pullList();const s=function(r,s){t.canWriteActiveRepo()&&e({method:"POST",url:t.getBaseUrl(),data:{importSettings:s?null:t.settings,fileNames:r}}).success((function(){t.updateList(),t.batch=!1,t.fileChecked={}})).error((function(t){n.error(i.instant("import.could.not.send.file",{data:getError(t)}))}))};t.importSelected=function(e){const n=t.getSelectedFiles();s(n,e)},t.importFile=function(t){s([t])},t.init()}]),l.controller("UploadCtrl",["$scope","Upload","$http","toastr","$controller","$uibModal","$translate",function(t,e,n,a,l,c,u){t.loader=!0,angular.extend(this,l("CommonCtrl",{$scope:t})),t.viewUrl="upload",t.defaultType="file",t.tabId="#import-user",t.pullList(),t.currentFiles=[],t.importable=function(){return!0},t.fileSelected=function(t,e,n,r,i){i.length>0&&i.forEach((function(t){a.warning(u.instant("import.large.file",{name:t.name,size:Math.floor(t.size/1048576)}))}))},t.$watchCollection("currentFiles",(function(){t.currentFiles&&t.currentFiles.forEach((function(e){if("bz2"===e.name.substr(e.name.lastIndexOf(".")+1)){const n=t.currentFiles.indexOf(e);n>-1&&t.currentFiles.splice(n,1),a.error(u.instant("import.could.not.upload",{name:e.name}))}})),t.files=_.uniqBy(_.union(_.map(t.currentFiles,(function(t){return{name:t.name,type:"file",file:t}})),t.files),(function(t){return t.name})),t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"),_.each(t.currentFiles,(function(e){t.updateImport(e.name)}))})),t.importFile=function(o,l,c){const p=_.findIndex(t.files,{name:o});if(p<0)a.warning(u.instant("import.no.such.file",{name:o}));else{const o=t.files[p];if("text"===o.type)t.settings.name=o.name,t.settings.type=o.type,t.settings.data=o.data,t.settings.format=o.format,o.status=i,n({method:"POST",url:t.getBaseUrl()+(l?"":"/update")+"/text",data:t.settings}).success((function(){t.updateList()})).error((function(t){a.error(u.instant("import.could.not.send.data",{data:getError(t)})),o.status=s,o.message=getError(t)})).finally(c||function(){});else if("url"===o.type)t.settings.name=o.name,t.settings.type=o.type,t.settings.data=o.data,t.settings.format=o.format,o.status=i,n({method:"POST",url:t.getBaseUrl()+(l?"":"/update")+"/url",data:t.settings}).success((function(){t.updateList()})).error((function(t){a.error(u.instant("import.could.not.send.url",{data:getError(t)}))})).finally(c||function(){});else{let n;t.settings.name=o.name,n=o.file?{file:o.file,importSettings:e.jsonBlob(t.settings)}:{importSettings:e.jsonBlob(t.settings)},e.upload({url:t.getBaseUrl()+(l?"":"/update")+"/file",data:n}).progress((function(t){if(o.file?(o.file=null,o.status=r):o.status!==r&&(o.status=i),o.status===r){const e=parseInt(100*t.loaded/t.total);o.message=e+"% uploaded"}})).success((function(){t.updateList()})).error((function(t){a.error(u.instant("import.could.not.upload.file",{data:getError(t)})),o.status=s,o.message=getError(t)})).finally(c||function(){})}}},t.updateTextImport=function(e){t.updating=!0,n({method:"POST",url:t.getBaseUrl()+"/update/text",data:e}).success((function(t){})).error((function(t){a.error(u.instant("import.could.not.update.text",{data:getError(t)}))})).finally((function(){t.updating=!1}))},t.pastedDataIdx=1;const p=function(){const t=new Date;return t.getFullYear()+"-"+_.padStart(t.getMonth()+1,2,"0")+"-"+_.padStart(t.getDate(),2,"0")+" "+_.padStart(t.getHours(),2,"0")+":"+_.padStart(t.getMinutes(),2,"0")+":"+_.padStart(t.getSeconds(),2,"0")+"."+_.padStart(t.getMilliseconds(),3,"0")};t.pasteData=function(e){e&&e.data;c.open({templateUrl:"js/angular/import/templates/textSnippet.html",controller:"TextCtrl",resolve:{text:function(){return e?e.data:""},format:function(){return e?e.format:"text/turtle"}}}).result.then((function(n){e?(e.data===n.text&&e.format===n.format||e.status===o||(e.status=o,e.message=u.instant("import.text.snippet.not.imported")),e.data=n.text,e.format=n.format,t.updateTextImport(e)):(e={type:"text",name:"Text snippet "+p(),format:n.format,data:n.text},t.files.unshift(e),t.updateImport(e.name)),n.startImport&&t.setSettingsFor(e.name)}))},t.rdfDataFromURL=function(){c.open({templateUrl:"js/angular/import/templates/urlImport.html",controller:"UrlCtrl",scope:t}).result.then((function(e){const n=_.find(t.files,{type:"url",name:e.url});n?n.format=e.format:t.files.unshift({type:"url",name:e.url,format:e.format,data:e.url}),t.updateImport(e.url,!0),e.startImport&&t.setSettingsFor(e.url,!0)}))},t.init()}]),l.controller("UrlCtrl",["$scope","$uibModalInstance","toastr",function(t,e){t.importFormat={name:"Auto",type:""},t.startImport=!0,t.cancel=function(){e.dismiss()},t.ok=function(){e.close({url:t.dataUrl,format:t.importFormat.type,startImport:t.startImport})}}]),l.controller("TextCtrl",["$scope","$uibModalInstance","text","format",function(t,e,n,r){t.importFormats=[{name:"RDF/JSON",type:"application/rdf+json"},{name:"JSON-LD",type:"application/ld+json"},{name:"NDJSON-LD",type:"application/x-ld+ndjson"},{name:"RDF/XML",type:"application/rdf+xml"},{name:"N3",type:"text/rdf+n3"},{name:"N-Triples",type:"text/plain"},{name:"N-Quads",type:"text/x-nquads"},{name:"Turtle",type:"text/turtle"},{name:"Turtle*",type:"application/x-turtlestar"},{name:"TriX",type:"application/trix"},{name:"TriG",type:"application/x-trig"},{name:"TriG*",type:"application/x-trigstar"}],t.rdfText=n,t.importFormat=_.find(t.importFormats,{type:r}),t.startImport=!0,t.setFormat=function(e){t.importFormat=e},t.cancel=function(){e.dismiss()},t.ok=function(){e.close({text:t.rdfText,format:t.importFormat.type,startImport:t.startImport})}}]),l.controller("TabCtrl",["$scope","$location",function(t,e){t.viewType=e.hash(),"user"!==t.viewType&&"server"!==t.viewType&&(t.viewType="user"),t.isCollapsed=!1,"user"===t.viewType?t.templateUrl="js/angular/import/templates/uploadInfo.html":t.templateUrl="js/angular/import/templates/importInfo.html",t.changeHelpTemplate=function(e){t.templateUrl="js/angular/import/templates/"+e},t.commonUrl="js/angular/import/templates/commonInfo.html"}]),l.controller("SettingsModalCtrl",["$scope","$uibModalInstance","toastr","UriUtils","settings","hasParserSettings","defaultSettings","isMultiple","$translate",function(t,e,n,r,i,s,a,o,l){t.hasError=function(t,e){return _.find(t,(function(t){return e===t.$name}))},t.settings=i,t.hasParserSettings=s,t.settings.context?"default"===t.settings.context?(t.target="default",t.settings.context=""):t.target="named":t.target="data",t.isMultiple=o,t.enableReplace=!(!t.settings.replaceGraphs||!t.settings.replaceGraphs.length);const c=function(){"default"===t.target?t.settings.context="default":"data"===t.target&&(t.settings.context=""),t.enableReplace?"default"!==t.target&&"named"!==t.target||(t.settings.replaceGraphs=[t.settings.context]):t.settings.replaceGraphs=[]};t.ok=function(){t.settingsForm.replaceGraph.$setValidity("replaceGraph",!0),t.settingsForm.$valid&&(c(),e.close(t.settings))},t.cancel=function(){c(),e.dismiss(t.settings)},t.reset=function(){t.settings=angular.copy(a),t.target="data"},t.addReplaceGraph=function(e){let i=!0;"default"!==e&&(i=r.isValidIri(e)),t.settingsForm.replaceGraph.$setTouched(),t.settingsForm.replaceGraph.$setValidity("replaceGraph",i),t.settingsForm.replaceGraph.$valid&&(t.settings.replaceGraphs=t.settings.replaceGraphs||[],-1===_.indexOf(t.settings.replaceGraphs,e)?(t.replaceGraph="",t.settings.replaceGraphs.push(e)):n.warning(l.instant("import.graph.already.in.list")))},t.checkEnterReplaceGraph=function(e,n){13===e.keyCode&&(e.preventDefault(),t.addReplaceGraph(n))},t.showAdvancedSettings=!1,t.switchParserSettings=function(){t.showAdvancedSettings=!t.showAdvancedSettings}}])}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{133:function(t,e,n){"use strict";n.r(e);n(6),n(26);const r="UPLOADING",i="PENDING",s="ERROR",a="DONE",o="NONE",l=angular.module("graphdb.framework.impex.import.controllers",["ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.utils.uriutils","graphdb.framework.guides.services"]);l.controller("CommonCtrl",["$scope","$http","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","$translate","LicenseRestService","GuidesService","ModalService",function(t,e,n,r,i,o,l,c,u,p,f,m,d){t.files=[],t.fileChecked={},t.checkAll=!1,t.popoverTemplateUrl="settingsPopoverTemplate.html",t.fileQuery="",t.getAppData=function(){f.getInfo().success((function(e){t.appData={},t.appData.properties={};for(let n=0;n<e.length;n++)t.appData.properties[e[n].key]={source:e[n].source,value:e[n].value};t.maxUploadFileSizeMB=t.appData.properties["graphdb.workbench.maxUploadSize"].value/1048576})).error((function(t){const e=getError(t);n.error(e,p.instant("common.error"))}))},t.getAppData(),t.fileFormats=["ttl","ttls","rdf","rj","n3","nt","nq","trig","trigs","trix","brf","owl","jsonld","xml","rdfs","ndjsonld","ndjson","jsonl"];{const e=_.map(t.fileFormats,(function(t){return"."+t+".gz"})),n=_.map(t.fileFormats,(function(t){return"."+t}));t.fileFormatsExtended=_.reduce(_.union(e,n,[".zip"]),(function(t,e){return t+", "+e})),t.fileFormatsHuman=_.reduce(n,(function(t,e){return t+" "+e}))+p.instant("import.gz.zip"),t.textFileFormatsHuman=_.reduce(_.filter(n,(function(t){return".brf"!==t})),(function(t,e){return t+" "+e}))}t.updateListHttp=function(r){e({method:"GET",url:t.getBaseUrl()}).success((function(e){0===t.files.length||r?(t.files=e,_.forEach(t.files,(function(e){e.type||(e.type=t.defaultType)})),t.rebatch()):t.files.forEach((function(n){const r=_.find(e,_.matches({name:n.name}));n.status&&r&&_.assign(n,r),n.type||(n.type=t.defaultType)})),r&&"user"===t.viewType&&(t.files=_.filter(t.files,(function(t){return void 0!==t.status}))),t.showClearStatuses=_.filter(t.files,(function(t){return t.status===a||t.status===s})).length>0,t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"),t.loader=!1})).error((function(e){n.warning(p.instant("import.error.could.not.get.files",{data:getError(e)})),t.loader=!1}))},t.$watch((function(){return $(t.tabId).is(":visible")}),(function(){$(t.tabId).is(":visible")&&(t.updateListHttp(!1),u.hash(t.viewType))})),t.updateList=function(e){t.canWriteActiveRepo()&&$(t.tabId).is(":visible")&&t.updateListHttp(e)},t.init=function(){t.setRestricted(),t.isRestricted||(t.updateList(!0),t.getSettings())},t.$on("repositoryIsSet",t.init),t.pullList=function(){const e=r((function(){t.updating||t.updateList(!1)}),4e3);t.$on("$destroy",(function(){r.cancel(e)}))},t.getVisibleFiles=function(){return l("filter")(t.files,{name:t.fileQuery,type:t.getTypeFilter()})},t.getTypeFilter=function(){return"server"!==t.viewType||"file"!==t.showItems&&"directory"!==t.showItems?"":t.showItems},t.selectAllFiles=function(){t.getVisibleFiles().forEach((function(e){t.fileChecked[e.name]=t.checkAll&&t.importable(e)}))},t.getSettingsFor=function(e,n){return n||_.isEmpty(e)||_.isEmpty(t.savedSettings[e])?angular.copy(t.defaultSettings):t.savedSettings[e]},t.setSettingsFor=function(e,n){t.settingsFor=e,t.settings=t.getSettingsFor(e,n);const r={templateUrl:"js/angular/import/templates/settingsModal.html",controller:"SettingsModalCtrl",resolve:{settings:function(){return angular.copy(t.settings)},hasParserSettings:t.isLocalLocation,defaultSettings:function(){return t.defaultSettings},isMultiple:function(){return!e}},size:"lg"};m.isActive()&&(r.backdrop="static",r.keyboard=!1);o.open(r).result.then((function(e){t.settings=e,""===t.settingsFor?t.importSelected():t.importFile(t.settingsFor,!0)}),(function(e){t.settings=e}))},t.updateImport=function(e,n){t.settingsFor=e,t.settings=t.getSettingsFor(e,n),t.importFile(e,!1)},t.stopImport=function(r){e({method:"DELETE",url:t.getBaseUrl(),params:{name:r.name,type:r.type}}).success((function(){t.updateList()})).error((function(t){n.warning(p.instant("import.error.could.not.stop",{data:getError(t)}))}))},t.importable=function(){return!0},t.hasImportable=function(){return _.filter(t.files,(function(e){return t.importable(e)})).length>0},t.showTable=function(){const e=t.files.length>0&&("user"===t.viewType||"server"===t.viewType);return t.checkAll&&t.switchBatch(!0),e},t.switchBatch=function(e){e?t.selectAllFiles():t.checkAll&&(t.checkAll=!1),t.batch=_.map(_.filter(t.files,(function(e){return t.fileChecked[e.name]&&t.importable(e)})),"name").length>0},t.rebatch=function(){const e={};t.batch=!1,_.each(t.files,(function(n){e[n.name]=t.fileChecked[n.name],t.batch|=t.fileChecked[n.name]})),t.batch||(t.checkAll=!1),t.fileChecked=e},t.getSelectedFiles=function(){return _.map(_.filter(t.getVisibleFiles(),(function(e){return t.fileChecked[e.name]&&t.importable(e)})),"name")},t.importSelected=function(e){const n=t.getSelectedFiles(),r=function(){const i=n.shift();i&&(e&&(t.settings=t.getSettingsFor(i)),t.importFile(i,!0,r))};r()};const g=function(r,i){e({method:"DELETE",url:t.getBaseUrl()+"/status",params:{remove:i},data:r,headers:{"Content-type":"application/json;charset=utf-8"}}).success((function(){t.updateList(!0)})).error((function(t){n.warning(p.instant("import.error.could.not.clear",{data:getError(t)}))}))};t.resetStatus=function(t){g(t,!1)},t.resetStatusSelected=function(){t.resetStatus(t.getSelectedFiles())},t.removeEntry=function(t=[]){d.openConfirmation(p.instant("common.confirm"),p.instant("import.remove.confirm.msg",{name:t.join(", ")}),()=>{g(t,!0)})},t.removeEntrySelected=function(){t.removeEntry(t.getSelectedFiles())},t.isLocalLocation=function(){const t=i.getActiveLocation();return t&&t.local},t.filterSettings=function(e){let n=_.omitBy(t.savedSettings[e],_.isNull);return n=_.omit(n,["repoLocationHash","status","message","name","data","type","format","fileNames","$$hashKey"]),_.map(_.keys(n),(function(t){return[t,n[t]]}))},t.getSettings=function(){t.canWriteActiveRepo()&&e({method:"GET",url:"rest/repositories/"+i.getActiveRepository()+"/import/settings/default"}).success((function(e){t.defaultSettings=e})).error((function(t){n.warning(p.instant("import.error.default.settings",{data:getError(t)}))}))},t.getBaseUrl=function(){return"rest/repositories/"+i.getActiveRepository()+"/import/"+t.viewUrl},t.pritifySettings=function(t){return JSON.stringify(t,null," ")},t.toTitleCase=function(t){return t?_.upperFirst(t.toLowerCase()):t}}]),l.controller("ImportCtrl",["$scope","$http","toastr","$controller","$translate",function(t,e,n,r,i){t.loader=!0,angular.extend(this,r("CommonCtrl",{$scope:t})),t.viewUrl="server",t.defaultType="server",t.tabId="#import-server",t.showItems="all",t.pullList();const s=function(r,s){t.canWriteActiveRepo()&&e({method:"POST",url:t.getBaseUrl(),data:{importSettings:s?null:t.settings,fileNames:r}}).success((function(){t.updateList(),t.batch=!1,t.fileChecked={}})).error((function(t){n.error(i.instant("import.could.not.send.file",{data:getError(t)}))}))};t.importSelected=function(e){const n=t.getSelectedFiles();s(n,e)},t.importFile=function(t){s([t])},t.init()}]),l.controller("UploadCtrl",["$scope","Upload","$http","toastr","$controller","$uibModal","$translate",function(t,e,n,a,l,c,u){t.loader=!0,angular.extend(this,l("CommonCtrl",{$scope:t})),t.viewUrl="upload",t.defaultType="file",t.tabId="#import-user",t.pullList(),t.currentFiles=[],t.importable=function(){return!0},t.fileSelected=function(t,e,n,r,i){i.length>0&&i.forEach((function(t){a.warning(u.instant("import.large.file",{name:t.name,size:Math.floor(t.size/1048576)}))}))},t.$watchCollection("currentFiles",(function(){t.currentFiles&&t.currentFiles.forEach((function(e){if("bz2"===e.name.substr(e.name.lastIndexOf(".")+1)){const n=t.currentFiles.indexOf(e);n>-1&&t.currentFiles.splice(n,1),a.error(u.instant("import.could.not.upload",{name:e.name}))}})),t.files=_.uniqBy(_.union(_.map(t.currentFiles,(function(t){return{name:t.name,type:"file",file:t}})),t.files),(function(t){return t.name})),t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"),_.each(t.currentFiles,(function(e){t.updateImport(e.name)}))})),t.importFile=function(o,l,c){const p=_.findIndex(t.files,{name:o});if(p<0)a.warning(u.instant("import.no.such.file",{name:o}));else{const o=t.files[p];if("text"===o.type)t.settings.name=o.name,t.settings.type=o.type,t.settings.data=o.data,t.settings.format=o.format,o.status=i,n({method:"POST",url:t.getBaseUrl()+(l?"":"/update")+"/text",data:t.settings}).success((function(){t.updateList()})).error((function(t){a.error(u.instant("import.could.not.send.data",{data:getError(t)})),o.status=s,o.message=getError(t)})).finally(c||function(){});else if("url"===o.type)t.settings.name=o.name,t.settings.type=o.type,t.settings.data=o.data,t.settings.format=o.format,o.status=i,n({method:"POST",url:t.getBaseUrl()+(l?"":"/update")+"/url",data:t.settings}).success((function(){t.updateList()})).error((function(t){a.error(u.instant("import.could.not.send.url",{data:getError(t)}))})).finally(c||function(){});else{let n;t.settings.name=o.name,n=o.file?{file:o.file,importSettings:e.jsonBlob(t.settings)}:{importSettings:e.jsonBlob(t.settings)},e.upload({url:t.getBaseUrl()+(l?"":"/update")+"/file",data:n}).progress((function(t){if(o.file?(o.file=null,o.status=r):o.status!==r&&(o.status=i),o.status===r){const e=parseInt(100*t.loaded/t.total);o.message=e+"% uploaded"}})).success((function(){t.updateList()})).error((function(t){a.error(u.instant("import.could.not.upload.file",{data:getError(t)})),o.status=s,o.message=getError(t)})).finally(c||function(){})}}},t.updateTextImport=function(e){t.updating=!0,n({method:"POST",url:t.getBaseUrl()+"/update/text",data:e}).success((function(t){})).error((function(t){a.error(u.instant("import.could.not.update.text",{data:getError(t)}))})).finally((function(){t.updating=!1}))},t.pastedDataIdx=1;const p=function(){const t=new Date;return t.getFullYear()+"-"+_.padStart(t.getMonth()+1,2,"0")+"-"+_.padStart(t.getDate(),2,"0")+" "+_.padStart(t.getHours(),2,"0")+":"+_.padStart(t.getMinutes(),2,"0")+":"+_.padStart(t.getSeconds(),2,"0")+"."+_.padStart(t.getMilliseconds(),3,"0")};t.pasteData=function(e){e&&e.data;c.open({templateUrl:"js/angular/import/templates/textSnippet.html",controller:"TextCtrl",resolve:{text:function(){return e?e.data:""},format:function(){return e?e.format:"text/turtle"}}}).result.then((function(n){e?(e.data===n.text&&e.format===n.format||e.status===o||(e.status=o,e.message=u.instant("import.text.snippet.not.imported")),e.data=n.text,e.format=n.format,t.updateTextImport(e)):(e={type:"text",name:"Text snippet "+p(),format:n.format,data:n.text},t.files.unshift(e),t.updateImport(e.name)),n.startImport&&t.setSettingsFor(e.name)}))},t.rdfDataFromURL=function(){c.open({templateUrl:"js/angular/import/templates/urlImport.html",controller:"UrlCtrl",scope:t}).result.then((function(e){const n=_.find(t.files,{type:"url",name:e.url});n?n.format=e.format:t.files.unshift({type:"url",name:e.url,format:e.format,data:e.url}),t.updateImport(e.url,!0),e.startImport&&t.setSettingsFor(e.url,!0)}))},t.init()}]),l.controller("UrlCtrl",["$scope","$uibModalInstance","toastr",function(t,e){t.importFormat={name:"Auto",type:""},t.startImport=!0,t.cancel=function(){e.dismiss()},t.ok=function(){e.close({url:t.dataUrl,format:t.importFormat.type,startImport:t.startImport})}}]),l.controller("TextCtrl",["$scope","$uibModalInstance","text","format",function(t,e,n,r){t.importFormats=[{name:"RDF/JSON",type:"application/rdf+json"},{name:"JSON-LD",type:"application/ld+json"},{name:"NDJSON-LD",type:"application/x-ld+ndjson"},{name:"RDF/XML",type:"application/rdf+xml"},{name:"N3",type:"text/rdf+n3"},{name:"N-Triples",type:"text/plain"},{name:"N-Quads",type:"text/x-nquads"},{name:"Turtle",type:"text/turtle"},{name:"Turtle*",type:"application/x-turtlestar"},{name:"TriX",type:"application/trix"},{name:"TriG",type:"application/x-trig"},{name:"TriG*",type:"application/x-trigstar"}],t.rdfText=n,t.importFormat=_.find(t.importFormats,{type:r}),t.startImport=!0,t.setFormat=function(e){t.importFormat=e},t.cancel=function(){e.dismiss()},t.ok=function(){e.close({text:t.rdfText,format:t.importFormat.type,startImport:t.startImport})}}]),l.controller("TabCtrl",["$scope","$location",function(t,e){t.viewType=e.hash(),"user"!==t.viewType&&"server"!==t.viewType&&(t.viewType="user"),t.isCollapsed=!1,"user"===t.viewType?t.templateUrl="js/angular/import/templates/uploadInfo.html":t.templateUrl="js/angular/import/templates/importInfo.html",t.changeHelpTemplate=function(e){t.templateUrl="js/angular/import/templates/"+e},t.commonUrl="js/angular/import/templates/commonInfo.html"}]),l.controller("SettingsModalCtrl",["$scope","$uibModalInstance","toastr","UriUtils","settings","hasParserSettings","defaultSettings","isMultiple","$translate",function(t,e,n,r,i,s,a,o,l){t.hasError=function(t,e){return _.find(t,(function(t){return e===t.$name}))},t.settings=i,t.hasParserSettings=s,t.settings.context?"default"===t.settings.context?(t.target="default",t.settings.context=""):t.target="named":t.target="data",t.isMultiple=o,t.enableReplace=!(!t.settings.replaceGraphs||!t.settings.replaceGraphs.length);const c=function(){"default"===t.target?t.settings.context="default":"data"===t.target&&(t.settings.context=""),t.enableReplace?"default"!==t.target&&"named"!==t.target||(t.settings.replaceGraphs=[t.settings.context]):t.settings.replaceGraphs=[]};t.ok=function(){t.settingsForm.replaceGraph.$setValidity("replaceGraph",!0),t.settingsForm.$valid&&(c(),e.close(t.settings))},t.cancel=function(){c(),e.dismiss(t.settings)},t.reset=function(){t.settings=angular.copy(a),t.target="data"},t.addReplaceGraph=function(e){let i=!0;"default"!==e&&(i=r.isValidIri(e)),t.settingsForm.replaceGraph.$setTouched(),t.settingsForm.replaceGraph.$setValidity("replaceGraph",i),t.settingsForm.replaceGraph.$valid&&(t.settings.replaceGraphs=t.settings.replaceGraphs||[],-1===_.indexOf(t.settings.replaceGraphs,e)?(t.replaceGraph="",t.settings.replaceGraphs.push(e)):n.warning(l.instant("import.graph.already.in.list")))},t.checkEnterReplaceGraph=function(e,n){13===e.keyCode&&(e.preventDefault(),t.addReplaceGraph(n))},t.showAdvancedSettings=!1,t.switchParserSettings=function(){t.showAdvancedSettings=!t.showAdvancedSettings}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{159:function(e,t){PluginRegistry.add("guide.step",[{guideBlockName:"execute-sparql-query",getSteps:(e,t)=>{const r=t.GuideUtils,n=t.toastr,o=t.$translate,i=t.$interpolate,l=t.$location,s=t.$route;e.mainAction="execute-sparql-query";const u=document.createElement("code"),c=document.createElement("button");c.className="btn btn-sm btn-secondary",c.innerText=o.instant("guide.step_plugin.execute-sparql-query.copy-to-editor.button"),c.setAttribute("ng-click","copyQuery()");const a=[{guideBlockName:"click-main-menu",options:angular.extend({},{menu:"sparql",showIntro:!0},e)}],p={"-1":'PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nselect * where { \n\t?s ?p ?o .\n?o rdf:type ""\n} limit 100 '};let d=!1;return e.queries.forEach((m,h)=>{const q=m.query;p[h]=q,u.innerText=q,e.queryAsHtmlCodeElement='<div class="shepherd-code">'+u.outerHTML+c.outerHTML+"</div>";const g=r.getSparqlEditorSelector();a.push({guideBlockName:"input-element",options:angular.extend({},{content:"guide.step_plugin.execute-sparql-query.query-editor.content",url:"/sparql",elementSelector:g,beforeShowPromise:()=>new Promise((function(e,n){r.deferredShow(10)().then(()=>{r.waitFor(g,3).then(()=>e()).catch(e=>{t.toastr.error(t.$translate.instant("guide.unexpected.error.message")),n(e)})})})),onNextValidate:()=>{const t=r.removeWhiteSpaces(window.editor.getValue());if(t!==r.removeWhiteSpaces(q)){if("select*where{?s?p?o.}limit100"!==t&&!d)return r.noNextErrorToast(n,o,i,"guide.step_plugin.execute-sparql-query.query-not-same.error",e),!1;window.editor.setValue(q)}return d=!0,!0},initPreviousStep:()=>new Promise((e,t)=>{if(0===h)window.editor.setValue("select * where { \n\t?s ?p ?o .\n} limit 100 \n"),e();else{const n="/sparql"!==l.url();r.executeSparqlQuery(l,s,q,n).then(()=>e()).catch(e=>t(e))}}),scrollToHandler:r.scrollToTop,extraContent:m.queryExtraContent,onScope:e=>{e.copyQuery=()=>{window.editor.setValue(q)}}},e)}),a.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.execute-sparql-query.run-sparql-query.content",url:"/sparql",elementSelector:r.getGuideElementSelector("runSparqlQuery"),onNextClick:e=>r.clickOnGuideElement("runSparqlQuery")().then(()=>e.next()),scrollToHandler:r.scrollToTop,canBePaused:!1,initPreviousStep:(e,t)=>new Promise((n,o)=>{const i=e.ShepherdService.getPreviousStepFromHistory(t);i.options.initPreviousStep(e,i.options.id).then(()=>{e.ShepherdService.getCurrentStepId()===t?n():r.clickOnGuideElement("runSparqlQuery")().then(()=>n()).catch(e=>o(e))}).catch(e=>o(e))})},e)}),a.push({guideBlockName:"read-only-element",options:angular.extend({},{content:"guide.step_plugin.execute-sparql-query.result-explain.content",url:"/sparql",placement:"top",elementSelector:r.getSparqlResultsSelector(),fileName:e.fileName,scrollToHandler:r.scrollToTop,extraContent:m.resultExtraContent,canBePaused:!1,initPreviousStep:(e,t)=>new Promise((n,o)=>{if("/sparql"!==l.url())r.executeSparqlQuery(l,s,q,!0).then(()=>n()).catch(e=>o(e));else{const r=e.ShepherdService.getPreviousStepFromHistory(t);r.options.initPreviousStep(e,r.options.id).then(()=>{window.editor.setValue(q),n()}).catch(e=>o(e))}})},e)})}),a}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{160:function(e,t){PluginRegistry.add("guide.step",[{guideBlockName:"import-rdf-file",getSteps:(e,t)=>{const i=t.GuideUtils,n=t.toastr,o=t.$translate,l=t.$interpolate;e.mainAction="import-file";const r=[{guideBlockName:"click-main-menu",options:angular.extend({},{menu:"import",showIntro:!0},e)}];e.resourcePath&&r.push({guideBlockName:"download-guide-resource",options:angular.extend({},{title:""},e)});const u=i.getGuideElementSelector("import-settings-import-button");return r.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.import_rdf_file.content",url:"/import",elementSelector:i.getGuideElementSelector("uploadRdfFileButton"),advanceOn:void 0,show:t=>()=>{$("#ngf-wb-import-uploadFile").on("change.importRdfFile",(function(){i.waitFor(i.getGuideElementSelector("import-file-"+e.resourceFile),2).then(()=>t.next())}))},hide:()=>()=>{$("#ngf-wb-import-uploadFile").off("change.importRdfFile")},onNextValidate:()=>!!$(i.getGuideElementSelector("import-file-"+e.resourceFile)).length||(i.noNextErrorToast(n,o,l,"guide.step_plugin.import_rdf_file.file-must-be-uploaded",e),!1)},e)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.import_rdf_file.import-file.button.content",elementSelector:i.getGuideElementSelector("import-file-"+e.resourceFile),url:"/import",placement:"left",onNextClick:()=>i.clickOnGuideElement("import-file-"+e.resourceFile)()},e)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.import_rdf_file.import-settings.import.button.content",elementSelector:u,placement:"top",onPreviousClick:()=>new Promise((function(e){i.clickOnGuideElement("import-settings-cancel-button")().then(()=>e())})),beforeShowPromise:()=>new Promise((function(e,i){t.GuideUtils.deferredShow(300)().then(()=>{t.GuideUtils.waitFor(u,3).then(()=>{e()}).catch(e=>{t.toastr.error(t.$translate.instant("guide.unexpected.error.message")),i(e)})})})),onNextClick:()=>i.clickOnGuideElement("import-settings-import-button")(),canBePaused:!1},e)},{guideBlockName:"read-only-element",options:angular.extend({},{content:"guide.step_plugin.import_status_info.content",url:"/import",elementSelector:i.getGuideElementSelector("import-status-info"),onPreviousClick:()=>new Promise((function(t){i.clickOnGuideElement("import-file-"+e.resourceFile)().then(()=>t())}))},e)}),r}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{161:function(e,t){PluginRegistry.add("guide.step",[{guideBlockName:"click-main-menu",getSteps:(e,t)=>{const i=t.GuideUtils,n=[];let l,o,s,a,u,r;switch(e.menu){case"repositories":l="menu-setup",o="menu.setup.label",s="sub-menu-repositories",a="menu.repositories.label",u="menu.repositories.label",r="view.repositories.helpInfo";break;case"import":l="menu-import",o="common.import",u="common.import",r="view.import.helpInfo";break;case"autocomplete":l="menu-setup",o="menu.setup.label",s="sub-menu-autocomplete",a="menu.autocomplete.label",u="view.autocomplete.title",r="view.autocomplete.helpInfo";break;case"visual-graph":l="menu-explore",o="menu.explore.label",s="sub-menu-visual-graph",a="visual.graph.label",u="visual.graph.label",r="view.visual.graph.helpInfo";break;case"sparql":l="menu-sparql",o="menu.sparql.label",u="view.sparql.title",r="view.sparql.helpInfo";break;case"class-hierarchy":l="menu-explore",o="menu.explore.label",s="menu-class-hierarchy",a="menu.class.hierarchy.label",u="view.class.hierarchy.title",r="view.class.hierarchy.helpInfo"}const c=s?" div":" a";return e.viewName=u,e.showIntro&&e.mainAction&&n.push({guideBlockName:"info-message",options:angular.extend({},{content:"guide.step-intro."+e.mainAction,extraContent:r,extraContentClass:"alert alert-help text-left",skipPoint:!0},e)}),n.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step-menu.click-menu",menuLabelKey:o,elementSelector:i.getGuideElementSelector(l),showOn:()=>(s&&i.isGuideElementVisible(s)&&i.clickOnGuideElement(l,c)(),!0),onNextClick:e=>i.clickOnGuideElement(l,c)().then(()=>{s||e.next()}),initPreviousStep:(e,t)=>new Promise((i,n)=>{const l=e.ShepherdService.getPreviousStepFromHistory(t);l?l.options.initPreviousStep(e,l.options.id).then(()=>i()).catch(e=>n(e)):i()})},e)}),s&&n.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step-menu.click-menu",menuLabelKey:a,elementSelector:i.getGuideElementSelector(s),placement:"right",canBePaused:!1,showOn:()=>(i.isGuideElementVisible(s)||i.clickOnGuideElement(l," div")(),!0),onNextClick:e=>i.clickOnGuideElement(s," a")().then(()=>e.next()),initPreviousStep:(e,t)=>new Promise((i,n)=>{const l=e.ShepherdService.getPreviousStepFromHistory(t);l?l.options.initPreviousStep(e,l.options.id).then(()=>i()).catch(e=>n(e)):i()})},e)}),n}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{162:function(e,t){const o=(e,t)=>e.$repositories.getRepositories().find(e=>e.id===t.repositoryId)?t.repositoryId:t.repositoryIdBase,i=(e,t)=>e.GuideUtils.getGuideElementSelector(`repository-${o(e,t)}-button`);PluginRegistry.add("guide.step",[{guideBlockName:"select-repository-dropdown",getSteps:(e,t)=>{const n=t.GuideUtils;return e.mainAction="select-repository",e.getRepositoryId=()=>o(t,e),[{guideBlockName:"clickable-element",options:angular.extend({},{skipPoint:!0,content:"guide.step_plugin.choose-repository.content",elementSelector:n.getGuideElementSelector("repositoriesGroupButton"),onNextClick:e=>n.clickOnGuideElement("repositoriesGroupButton")().then(()=>e.next())},e)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.select-repository.content",elementSelector:()=>i(t,e),advanceOn:void 0,beforeShowPromise:()=>new Promise((function(o,n){t.GuideUtils.waitFor(i(t,e),1).then(()=>o()).catch(e=>{t.toastr.error(t.$translate.instant("guide.unexpected.error.message")),n(e)})})),show:o=>()=>{$("#repositorySelectDropdown").addClass("autoCloseOff"),$(i(t,e)).on("mouseup.selectRepositoryButtonClick",(function(){o.next()}))},onNextClick:o=>{$(i(t,e)).off("mouseup.selectRepositoryButtonClick"),$("#repositorySelectDropdown").removeClass("autoCloseOff"),n.clickOnElement(i(t,e))().then(()=>o.next())},hide:()=>()=>{$("#repositorySelectDropdown").removeClass("autoCloseOff"),$(i(t,e)).off("mouseup.selectRepositoryButtonClick")},canBePaused:!1},e)}]}},{guideBlockName:"select-repository-plug",getSteps:(e,t)=>{const o=t.GuideUtils;return[{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.select-repository-plug.content",elementSelector:o.getGuideElementSelector(`repository-${e.repositoryId}-plug`),onNextClick:o.getGuideElementSelector(`repository-${e.repositoryId}-plug`)},e)}]}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{163:function(e,t){PluginRegistry.add("guide.step",[{guideBlockName:"table-graph-explore",getSteps:(e,t)=>{const r=t.GuideUtils,l=t.$location,o=t.$route;e.mainAction="table-graph";const n=[{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step-intro.table-graph",scrollToHandler:r.scrollToTop,elementSelector:r.getSparqlResultsSelectorForIri(e.iri),onNextClick:(e,t)=>{r.waitFor(t.elementSelector,3).then(()=>$(t.elementSelector).trigger("click")).then(()=>e.next())},initPreviousStep:(e,t)=>new Promise((r,l)=>{if(e.ShepherdService.getCurrentStepId()===t)r();else{const o=e.ShepherdService.getPreviousStepFromHistory(t);o.options.initPreviousStep(e,o.options.id).then(()=>{r()}).catch(e=>{l(e)})}})},e)},{guideBlockName:"read-only-element",options:angular.extend({},{content:"guide.step_plugin.table-graph-overview",scrollToHandler:r.scrollToTop,elementSelector:r.getSparqlResultsSelector()+" tbody",placement:"top",initPreviousStep:(t,n)=>new Promise((i,a)=>{if(t.ShepherdService.getCurrentStepId()===n)r.defaultInitPreviousStep(t,n).then(()=>i()).catch(e=>a(e));else{const t=`/resource?uri=${e.iri}&role=subject`;t!==decodeURIComponent(l.url())?(l.url(t),o.reload(),r.waitFor(r.getSparqlResultsSelector(" tbody")).then(()=>i()).catch(e=>a(e))):i()}})},e)}];return angular.isArray(e.subSteps)&&e.subSteps.forEach(t=>{switch(t.type){case"link":n.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.table-graph-link",elementSelector:r.getSparqlResultsSelectorForIri(t.iri),onNextClick:(e,t)=>{r.waitFor(t.elementSelector,3).then(()=>$(t.elementSelector).trigger("click")).then(()=>e.next())},initPreviousStep:(n,i)=>new Promise((a,c)=>{const s=`/resource?uri=${t.iri}&role=subject`,u=`/resource?uri=${e.iri}&role=subject`,p=decodeURIComponent(l.url()),d=n.ShepherdService.getCurrentStepId();d===i&&u===p?a():d!==i&&s===p?r.defaultInitPreviousStep(n,i).then(()=>a()).catch(e=>c(e)):(l.url(s),o.reload(),r.waitFor(r.getSparqlResultsSelector(" tbody")).then(()=>a()).catch(e=>c(e)))})},angular.extend({},e,t))});break;case"role":n.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.table-graph-role",elementSelector:r.getGuideElementSelector("role-"+t.role),onNextClick:(e,t)=>{r.waitFor(t.elementSelector,3).then(()=>$(t.elementSelector).trigger("click")).then(()=>e.next())},initPreviousStep:(e,n)=>new Promise((i,a)=>{if(e.ShepherdService.getCurrentStepId()===n)i();else{const c=e.ShepherdService.getPreviousStepFromHistory(n);c.options.initPreviousStep(e,c.options.id).then(()=>{let e=l.url();e=e.substring(0,e.indexOf("role=")+5),e+=t.role,l.url(e),o.reload(),r.waitFor(r.getSparqlResultsSelector(" tbody")).then(()=>i()).catch(e=>a(e))}).catch(e=>{a(e)})}})},angular.extend({},e,t))});break;case"visual":n.push({guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.table-graph-visual",elementSelector:r.getGuideElementSelector("explore-visual"),onNextClick:(e,t)=>{r.waitFor(t.elementSelector,3).then(()=>$(t.elementSelector).trigger("click"))},initPreviousStep:(e,t)=>new Promise((l,o)=>{e.ShepherdService.getCurrentStepId()===t?l():r.defaultInitPreviousStep(e,t).then(()=>l()).catch(e=>o(e))})},angular.extend({},e,t))}),n.push({guideBlockName:"read-only-element",options:angular.extend({},{content:"guide.step_plugin.visual_graph_intro.content",extraContent:t.extraContentVisualIntro,url:"/graphs-visualizations",elementSelector:".graph-visualization",placement:"left",canBePaused:!1,forceReload:!0,onNextClick:e=>{window.history.back(),e.next()}},angular.extend({},e,t))});break;case"row":n.push({guideBlockName:"read-only-element",options:angular.extend({},{elementSelector:r.getSparqlResultsSelectorForRow(t.row)},angular.extend({},e,t))});break;case"table":n.push({guideBlockName:"read-only-element",options:angular.extend({},{elementSelector:r.getSparqlResultsSelector()+" tbody"},angular.extend({},e,t))})}}),n}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{164:function(e,t){const i=()=>()=>{$(".node-wrapper").addClass("disable-visual-graph-node")},n=()=>()=>{$(".node-wrapper").removeClass("disable-visual-graph-node")};PluginRegistry.add("guide.step",[{guideBlockName:"visual-graph",getSteps:(e,t)=>{const i=t.GuideUtils,n=t.$location,o=t.$route;return e.mainAction="visual-graph",[{guideBlockName:"click-main-menu",options:angular.extend({},{menu:"visual-graph",showIntro:!0},e)},{guideBlockName:"input-element",options:angular.extend({},{content:"guide.step_plugin.visual_graph_input_IRI.content",forceReload:!0,url:"/graphs-visualizations",elementSelector:i.getGuideElementSelector("graphVisualisationSearchInputNotConfigured"," input"),onNextValidate:e=>i.validateTextInput(e.elementSelector,e.easyGraphInputText)},e)},{guideBlockName:"clickable-element",options:angular.extend({},{content:"guide.step_plugin.visual_graph_show_autocomplete.content",url:"/graphs-visualizations",elementSelector:i.getGuideElementSelector("autocomplete-"+e.iri),onNextClick:(e,t)=>i.waitFor(t.elementSelector,3).then(()=>$(t.elementSelector).trigger("click")),canBePaused:!1,forceReload:!0},e)},{guideBlockName:"read-only-element",options:angular.extend({},{content:"guide.step_plugin.visual_graph_intro.content",url:"/graphs-visualizations",elementSelector:".graph-visualization",placement:"left",onPreviousClick:()=>new Promise((function(t,a){n.url("/graphs-visualizations"),o.reload();const r=i.getGuideElementSelector("graphVisualisationSearchInputNotConfigured"," input");i.waitFor(r,3).then(()=>{i.validateTextInput(r,e.easyGraphInputText),t()}).catch(e=>a(e))})),initPreviousStep:()=>new Promise((function(t,a){const r="/graphs-visualizations?uri="+e.iri;r!==decodeURIComponent(n.url())?(n.url(r),o.reload(),i.waitFor(`.node-wrapper[id^="${e.iri}"] circle`,3).then(()=>t()).catch(e=>a(e))):t()})),canBePaused:!1,forceReload:!0},e)}]}},{guideBlockName:"visual-graph-expand",getSteps:(e,t)=>{const i=t.GuideUtils,n=t.$rootScope,o=t.$route,a=`.node-wrapper[id^="${e.iri}"] circle`;return[{guideBlockName:"clickable-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-expand.title",content:"guide.step_plugin.visual-graph-expand.content",url:"/graphs-visualizations",canBePaused:!1,elementSelector:a,advanceOn:void 0,onNextClick:e=>{i.graphVizExpandNode(a),e.getCurrentStep().hide(),i.awaitAlphaDropD3(null,n)().then(()=>{e.next()})},show:e=>()=>{$(a).on("dblclick.onNodeDbClicked",(e=>()=>{i.graphVizExpandNode(a),e.getCurrentStep().hide(),i.awaitAlphaDropD3(null,n)().then(()=>{e.next()})})(e))},hide:()=>()=>{$(a).off("dblclick.onNodeDbClicked")},beforeShowPromise:()=>new Promise((function(e,t){o.reload(),i.deferredShow(50)().then(()=>{i.awaitAlphaDropD3(a,n)().then(()=>e()).catch(e=>t(e))})})),initPreviousStep:(e,t)=>new Promise((function(o,r){const l=e.ShepherdService.getPreviousStepFromHistory(t);l.options.initPreviousStep(e,l.id).then(()=>{e.ShepherdService.getCurrentStepId()===t?o():(i.graphVizExpandNode(a),i.deferredShow(50)().then(()=>{i.awaitAlphaDropD3(null,n)().then(()=>o()).catch(e=>r(e))}))}).catch(e=>r(e))}))},e)}]}},{guideBlockName:"visual-graph-properties",getSteps:(e,t)=>{const i=t.GuideUtils,n=t.$rootScope,o=`.node-wrapper[id^="${e.iri}"] circle`;let a,r;const l=[{guideBlockName:"clickable-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-properties.title",content:"guide.step_plugin.visual-graph-properties.content",url:"/graphs-visualizations",elementSelector:o,canBePaused:!1,advanceOn:void 0,show:e=>()=>{$(o).on("click.onNodeClicked",((e,t)=>n=>{r?n.timeStamp-a<400&&(e.$timeout.cancel(r),r=null):(a=n.timeStamp,r=e.$timeout((function(){i.graphVizShowNodeInfo(o),r=null,t.next()}),500))})(t,e))},hide:()=>()=>{$(o).off("click.onNodeClicked")},onNextClick:(e,t)=>{i.graphVizShowNodeInfo(t.elementSelector),e.next()},beforeShowPromise:i.awaitAlphaDropD3(o,n)},e)},{guideBlockName:"read-only-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-properties-side-panel.title",content:"guide.step_plugin.visual-graph-properties-side-panel.content",url:"/graphs-visualizations",elementSelector:".rdf-side-panel-content",canBePaused:!1,placement:"left",beforeShowPromise:i.deferredShow(500),onPreviousClick:()=>new Promise((function(e){i.waitFor(p,3).then(()=>{$(p).trigger("click"),e()}).catch(()=>e())}))},e)}];angular.isArray(e.focusProperties)&&e.focusProperties.forEach(t=>{angular.isObject(t)||(t={property:t});const n="types"===t.property?"-types":"-property",o=t.skipGenericMessage&&t.message?null:"guide.step_plugin.visual-graph-properties-focus"+n+".content";l.push({guideBlockName:"read-only-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-properties-focus"+n+".title",content:o,url:"/graphs-visualizations",canBePaused:!1,placement:"left",elementSelector:i.getGuideElementSelector("graph-visualization-node-info-"+t.property),focusProperty:t.property,extraContent:t.message},e)})});const p=i.getGuideElementSelector("close-info-panel");return l.push({guideBlockName:"clickable-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-properties-side-panel-close.title",content:"guide.step_plugin.visual-graph-properties-side-panel-close.content",url:"/graphs-visualizations",canBePaused:!1,placement:"left",elementSelector:p,advanceOn:{selector:p,event:"click"},beforeShowPromise:()=>new Promise((function(e){i.graphVizShowNodeInfo(o),i.deferredShow(500)().then(()=>e())})),onNextClick:()=>i.waitFor(p,3).then(()=>$(p).trigger("click"))},e)}),l}},{guideBlockName:"visual-graph-link-focus",getSteps:(e,t)=>{const o=t.GuideUtils,a=t.$rootScope,r=`.link-wrapper[id^="${e.fromIri}>${e.toIri}"]`;return[{guideBlockName:"read-only-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-link-focus.title",content:"guide.step_plugin.visual-graph-link-focus.content",url:"/graphs-visualizations",canBePaused:!1,extraPadding:40,elementSelector:r,show:i,hide:n,beforeShowPromise:o.awaitAlphaDropD3(r,a)},e)}]}},{guideBlockName:"visual-graph-node-focus",getSteps:(e,t)=>{const o=t.GuideUtils,a=t.$rootScope,r=`.node-wrapper[id^="${e.iri}"] circle`;return[{guideBlockName:"read-only-element",options:angular.extend({},{title:"guide.step_plugin.visual-graph-node-focus.title",content:"guide.step_plugin.visual-graph-node-focus.content",url:"/graphs-visualizations",canBePaused:!1,extraPadding:10,elementSelector:r,show:i,hide:n,beforeShowPromise:o.awaitAlphaDropD3(r,a),initPreviousStep:(e,t)=>new Promise((i,n)=>{if(o.isVisible(r))i();else{const o=e.ShepherdService.getPreviousStepFromHistory(t);o.options.initPreviousStep(e,o.id).then(()=>i()).catch(e=>n(e))}})},e)}]}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{165:function(e,t){PluginRegistry.add("guide.step",[{guideBlockName:"welcome",getSteps:(e,t)=>{const n=t.GuideUtils,i=t.$translate,o=t.$interpolate;return[{guideBlockName:"info-message",options:{title:"guide.step_plugin.welcome.title",content:"guide.step_plugin.welcome.content",infoIconHint:n.translateLocalMessage(i,o,"guide.step_plugin.welcome.info-icon-hint",e),mouseIconHint:n.translateLocalMessage(i,o,"guide.step_plugin.welcome.mouse-icon-hint",e),inputIconHint:n.translateLocalMessage(i,o,"guide.step_plugin.welcome.input-icon-hint",e)}},{guideBlockName:"info-message",options:{title:"guide.step_plugin.welcome.title",content:"guide.step_plugin.welcome-what.content"}}]}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{166:function(e,t){const i={title:"",content:"",elementSelector:void 0,placement:"bottom",url:void 0,type:"read-only-element",maxWaitTime:3,canBePaused:!0,onNextClick:void 0,onNextValidate:void 0,onPreviousClick:void 0,skipPoint:!1},n=(e,t,i)=>()=>e.GuideUtils.waitFor(t,i).catch(t=>{throw e.toastr.error(e.$translate.instant("guide.unexpected.error.message")),t});PluginRegistry.add("guide.step",[{guideBlockName:"clickable-element",getStep:(e,t)=>{const o=angular.extend({},i,{advanceOn:{selector:e.elementSelector,event:"click"},initPreviousStep:t.GuideUtils.defaultInitPreviousStep},e,{type:"clickable"});return o.beforeShowPromise||(o.beforeShowPromise=n(t,o.elementSelector,o.maxWaitTime)),o}},{guideBlockName:"read-only-element",getStep:(e,t)=>{const o=angular.extend({},i,{initPreviousStep:t.GuideUtils.defaultInitPreviousStep},e,{type:"readonly"});return o.beforeShowPromise||(o.beforeShowPromise=n(t,o.elementSelector,o.maxWaitTime)),o}},{guideBlockName:"input-element",getStep:(e,t)=>{const o=angular.extend({},i,{initPreviousStep:t.GuideUtils.defaultInitPreviousStep},e,{type:"input"});return o.beforeShowPromise||(o.beforeShowPromise=n(t,o.elementSelector,o.maxWaitTime)),o}},{guideBlockName:"info-message",getStep:(e,t)=>angular.extend({},i,{initPreviousStep:t.GuideUtils.defaultInitPreviousStep},e,{type:"readonly"})},{guideBlockName:"guide-end",getStep:(e,t)=>angular.extend({},i,{initPreviousStep:t.GuideUtils.defaultInitPreviousStep},e,{type:"readonly",title:"guide.step_plugin.guide-ended.title",content:"guide.step_plugin.guide-ended.content",show:e=>()=>{e.options.confirmCancel=!1},hide:e=>()=>{e.options.confirmCancel=!0}})}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{116:function(t,e,i){"use strict";i.r(e);i(6),i(26);const r=angular.module("graphdb.framework.impex.import.directives",["graphdb.framework.utils.uriutils"]);r.directive("validateUri",["UriUtils",function(t){return{restrict:"A",require:"ngModel",link:function(e,i,r,a){a.$parsers.unshift((function(i){let r=!0;return"named"===e.target&&(r=t.isValidIri(i)),a.$setValidity("validateUri",r),i}))}}}]),r.directive("filesTable",(function(){return{restrict:"A",templateUrl:"js/angular/import/templates/filesTable.html"}})),r.directive("filesOntoLoader",(function(){return{link:function(t,e,i){t.$watch("file.status",(function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+i.size+'" height="'+i.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.4.1-TR3">{{\'common.loading\' | translate}}</object>')}))}}}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[109],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[109],{168:function(o,e){PluginRegistry.add("route",{url:"/import",module:"graphdb.framework.impex.import",path:"import/app",chunk:"import",controller:"CommonCtrl",templateUrl:"pages/import.html",title:"common.import",reloadOnSearch:!1,helpInfo:"view.import.helpInfo"}),PluginRegistry.add("main.menu",{items:[{label:"Import",labelKey:"common.import",href:"import",order:0,role:"IS_AUTHENTICATED_FULLY",icon:"icon-import",guideSelector:"menu-import"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{135:function(e,r,t){"use strict";t.r(r);t(6),t(24),t(36),t(37);var s=t(3);const n=function(e){return e.location?`${e.id}@${e.location}`:e.id},o=angular.module("graphdb.framework.security.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.jwtauth","graphdb.framework.core.services.openIDService","graphdb.framework.rest.security.service","toastr","ngTagsInput"]),i=function(e){let r=s.UserType.USER;const t={READ_REPO:{},WRITE_REPO:{}},n={},o=[];for(let i=0;i<e.length;i++){const a=e[i];if(a===s.UserRole.ROLE_ADMIN)r=s.UserType.ADMIN;else if(a===s.UserRole.ROLE_REPO_MANAGER)r!==s.UserType.ADMIN&&(r=s.UserType.REPO_MANAGER);else if(a===s.UserRole.ROLE_USER)r=s.UserType.USER;else if(0===a.indexOf("READ_REPO_")||0===a.indexOf("WRITE_REPO_")){const e=a.indexOf("_",a.indexOf("_")+1),r=a.substr(0,e),s=a.substr(e+1);t[r][s]=!0,n[s]=n[s]||{},"READ_REPO"===r?n[s].read=!0:"WRITE_REPO"===r&&(n[s].write=!0)}else 0===a.indexOf("CUSTOM_")&&o.push(a.substr("CUSTOM_".length))}return{userType:r,userTypeDescription:s.UserUtils.getUserRoleName(r),grantedAuthorities:t,repositories:n,customRoles:o}};o.controller("LoginCtrl",["$scope","$http","toastr","$jwtAuth","$openIDAuth","$location","$rootScope","$translate",function(e,r,t,s,n,o,i,a){e.username="",e.password="",s.reinitializeSecurity(),e.loginWithOpenID=function(){s.loginOpenID()},o.search().noaccess?t.error(a.instant("security.no.rights.config.error"),a.instant("security.login.error")):o.search().expired&&t.error(a.instant("security.auth.token.expired"),a.instant("security.login.error")),e.isGDBLoginEnabled=function(){return s.passwordLoginEnabled},e.isOpenIDEnabled=function(){return s.openIDEnabled},e.login=function(){return r({method:"POST",url:"rest/login",data:{username:e.username,password:e.password}}).success((function(e,r,t){s.authenticate(e,t("Authorization")).then(()=>{i.returnToUrl?o.url(i.returnToUrl):o.path("/")})})).error((function(r,s){if(401===s)t.error(a.instant("security.wrong.credentials"),a.instant("common.error")),e.wrongCredentials=!0,e.username="",e.password="";else{const e=getError(r);t.error(e,s)}}))}}]),o.controller("UsersCtrl",["$scope","$uibModal","toastr","$window","$jwtAuth","$timeout","ModalService","SecurityRestService","$translate",function(e,r,t,s,o,a,u,c,p){e.loader=!0,e.securityEnabled=function(){return o.isSecurityEnabled()},e.hasExternalAuth=function(){return o.hasExternalAuth()},e.getAuthImplementation=function(){return o.getAuthImplementation()},e.freeAccessEnabled=function(){return o.isFreeAccessEnabled()},e.getUsers=function(){c.getUsers().success((function(r){e.users=r;for(let r=0;r<e.users.length;r++){const t=i(e.users[r].grantedAuthorities);e.users[r].userType=t.userType,e.users[r].userTypeDescription=t.userTypeDescription,e.users[r].repositories=t.repositories,e.users[r].customRoles=t.customRoles}e.loader=!1})).error((function(r){const s=getError(r);t.error(s,p.instant("common.error")),e.loader=!1}))},e.getUsers(),e.$on("repositoryIsSet",(function(){e.getUsers()})),e.toggleSecurity=function(){if(o.toggleSecurity(!o.isSecurityEnabled()),o.isSecurityEnabled()){const r=a((function(){s.location.reload()}),500);e.$on("$destroy",(function(){a.cancel(r)}))}},e.toggleFreeAccess=function(t){!o.isFreeAccessEnabled()||o.isFreeAccessEnabled()&&t?c.getFreeAccess().then((function(s){let i=s.data.authorities,a=s.data.appSettings||{DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0};r.open({templateUrl:"js/angular/security/templates/modal/default-authorities.html",controller:"DefaultAuthoritiesCtrl",resolve:{data:function(){return{defaultAuthorities:function(){const r={READ_REPO:{},WRITE_REPO:{}},t=_.mapKeys(e.getRepositories(),(function(e){return n(e)}));return _.each(i,(function(e){0===e.indexOf("WRITE_REPO_")?t.hasOwnProperty(e.substr(11))&&(r.WRITE_REPO[e.substr(11)]=!0):0===e.indexOf("READ_REPO_")&&t.hasOwnProperty(e.substr(10))&&(r.READ_REPO[e.substr(10)]=!0)})),r},appSettings:a}}}}).result.then((function(e){i=e.authorities,a=e.appSettings,o.toggleFreeAccess(t||!o.isFreeAccessEnabled(),i,a,t)}))})):o.toggleFreeAccess(!o.isFreeAccessEnabled(),[])},e.editFreeAccess=function(){e.toggleFreeAccess(!0)},e.removeUser=function(r){u.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("security.confirm.delete.user",{name:r}),warning:!0}).result.then((function(){e.loader=!0,c.deleteUser(r).success((function(){e.getUsers()})).error((function(r){const s=getError(r);t.error(s,p.instant("common.error")),e.loader=!1}))}))},e.encodeURIComponent=function(e){return encodeURIComponent(e)}}]),o.controller("DefaultAuthoritiesCtrl",["$scope","$http","$uibModalInstance","data","$rootScope",function(e,r,t,s,o){e.grantedAuthorities=s.defaultAuthorities(),e.appSettings=s.appSettings,e.hasActiveLocation=function(){return!_.isEmpty(o.globalLocation)},e.getRepositories=function(){return o.globalRepositories},e.ok=function(){const r=[];e.repositoryCheckError=!0;for(const t in e.grantedAuthorities.WRITE_REPO)e.grantedAuthorities.WRITE_REPO[t]&&(r.push("WRITE_REPO_"+t),r.push("READ_REPO_"+t),e.repositoryCheckError=!1);for(const t in e.grantedAuthorities.READ_REPO)e.grantedAuthorities.READ_REPO[t]&&-1===r.indexOf("READ_REPO_"+t)&&(r.push("READ_REPO_"+t),e.repositoryCheckError=!1);e.repositoryCheckError||t.close({authorities:r,appSettings:e.appSettings})},e.cancel=function(){t.dismiss("cancel")},e.createUniqueKey=function(e){return n(e)}}]),o.controller("CommonUserCtrl",["$rootScope","$scope","$http","toastr","$window","$timeout","$location","$jwtAuth","$translate","passwordPlaceholder",function(e,r,t,o,i,a,u,c,p,d){e.$on("$translateChangeSuccess",(function(){r.passwordPlaceholder=p.instant(d)})),r.isAdmin=function(){return c.hasRole(s.UserRole.ROLE_ADMIN)},r.hasExternalAuth=function(){return c.hasExternalAuth()},r.hasEditRestrictions=function(){return r.user&&r.user.username===s.UserType.ADMIN},r.isOverrideAuth=function(){return c.isDefaultAuthEnabled()},r.setGrantedAuthorities=function(){!function(e){function r(){for(let r=0;r<arguments.length;r++){const t=arguments[r];_.indexOf(e.user.grantedAuthorities,t)<0&&e.user.grantedAuthorities.push(t)}}if(e.user.grantedAuthorities=[],e.repositoryCheckError=!0,e.userType===s.UserType.ADMIN)e.repositoryCheckError=!1,r(s.UserRole.ROLE_ADMIN);else if(e.userType===s.UserType.REPO_MANAGER)e.repositoryCheckError=!1,r(s.UserRole.ROLE_REPO_MANAGER);else{r(s.UserRole.ROLE_USER);for(const t in e.grantedAuthorities.WRITE_REPO)e.grantedAuthorities.WRITE_REPO[t]&&(e.repositoryCheckError=!1,r("WRITE_REPO_"+t,"READ_REPO_"+t));for(const t in e.grantedAuthorities.READ_REPO)e.grantedAuthorities.READ_REPO[t]&&(e.repositoryCheckError=!1,r("READ_REPO_"+t))}e.customRoles&&e.customRoles.forEach(e=>r("CUSTOM_"+e))}(r)},r.$watch("userType",(function(){r.isUser()||(r.customRoles="")})),r.isUser=function(){return r.userType===s.UserType.USER},r.hasReadPermission=function(e){const t=n(e);return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&(r.grantedAuthorities.READ_REPO["*"]||r.grantedAuthorities.WRITE_REPO["*"])||r.grantedAuthorities.READ_REPO[t]||r.grantedAuthorities.WRITE_REPO[t]},r.hasWritePermission=function(e){const t=n(e);return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&r.grantedAuthorities.WRITE_REPO["*"]||r.grantedAuthorities.WRITE_REPO[t]},r.readCheckDisabled=function(e){return r.hasWritePermission(e)||"SYSTEM"!==e.id&&"*"!==e&&r.grantedAuthorities.READ_REPO["*"]||r.hasEditRestrictions()},r.writeCheckDisabled=function(e){return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&"*"!==e&&r.grantedAuthorities.WRITE_REPO["*"]||r.hasEditRestrictions()},r.createUniqueKey=function(e){return n(e)},r.userType=s.UserType.USER,r.grantedAuthorities={READ_REPO:{},WRITE_REPO:{}},r.validatePassword=function(){return r.noPassword?(r.passwordError="",r.confirmPasswordError="",!0):r.user.password!==r.user.confirmpassword?(r.user.password?(r.passwordError="",r.confirmPasswordError=p.instant("security.confirm.password")):(r.passwordError=p.instant("security.enter.password"),r.confirmPasswordError=""),!1):(r.passwordError="",r.confirmPasswordError="",!0)},r.isLocalAuthentication=function(){return"Local"===c.getAuthImplementation()},r.updateUser=function(){if(!r.validateForm())return!1;r.isLocalAuthentication()&&r.setGrantedAuthorities(),r.repositoryCheckError||r.updateUserHttp()},r.setNoPassword=function(){r.noPassword&&(r.user.password="",r.user.confirmpassword="",r.passwordError="",r.confirmPasswordError="")},r.shouldDisableSameAs=function(){const e=$("#sameAsCheck");return r.user&&!r.user.appSettings.DEFAULT_INFERENCE&&e.prop("checked")&&(e.prop("checked",!1),r.user.appSettings.DEFAULT_SAMEAS=!1),r.user&&!r.user.appSettings.DEFAULT_INFERENCE},r.addCustomRole=function(e){return e.text=e.text.toUpperCase(),e}}]),o.controller("AddUserCtrl",["$scope","$http","toastr","$window","$timeout","$location","$jwtAuth","$controller","SecurityRestService","ModalService","$translate",function(e,r,t,n,o,i,a,u,c,p,d){angular.extend(this,u("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.password.placeholder"})),e.mode="add",e.saveButtonText=d.instant("common.create.btn"),e.goBack=function(){const r=o((function(){n.history.back()}),100);e.$on("$destroy",(function(){o.cancel(r)}))},e.pageTitle=d.instant("view.create.user.title"),e.passwordPlaceholder=d.instant("security.password.placeholder"),e.user={username:"",password:"",confirmpassword:"",grantedAuthorities:[],appSettings:{DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0}},e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?p.openSimpleModal({title:d.instant("security.create.admin"),message:d.instant("security.admin.login.warning"),warning:!0}).result.then((function(){e.createUser()})):e.createUser()},e.createUserHttp=function(){e.loader=!0,c.createUser({username:e.user.username,pass:e.user.password,appSettings:e.user.appSettings,grantedAuthorities:e.user.grantedAuthorities}).success((function(){t.success(d.instant("security.user.created",{name:e.user.username}));const r=o((function(){e.loader=!1,n.history.back()}),2e3);e.$on("$destroy",(function(){o.cancel(r)}))})).error((function(r){const s=getError(r);e.loader=!1,t.error(s,d.instant("common.error"))}))},e.createUser=function(){e.validateForm()&&(e.setGrantedAuthorities(),e.repositoryCheckError||e.createUserHttp())},e.validateForm=function(){let r=!0;return e.user.username?e.usernameError="":(e.usernameError=d.instant("security.enter.username"),r=!1),e.noPassword?(e.passwordError="",e.confirmPasswordError=""):(e.user.password?e.passwordError="":(e.passwordError=d.instant("security.enter.password"),r=!1),e.user.confirmpassword&&e.user.password===e.user.confirmpassword?e.confirmPasswordError="":(e.confirmPasswordError=d.instant("security.confirm.password"),r=!1)),r}}]),o.controller("EditUserCtrl",["$scope","$http","toastr","$window","$routeParams","$timeout","$location","$jwtAuth","$controller","SecurityRestService","ModalService","$translate",function(e,r,t,n,o,a,u,c,p,d,l,E){angular.extend(this,p("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.new.password"})),e.mode="edit",e.saveButtonText=E.instant("common.save.btn"),e.goBack=function(){const r=a((function(){n.history.back()}),100);e.$on("$destroy",(function(){a.cancel(r)}))},e.params=o,e.pageTitle=E.instant("view.edit.user.title",{userId:e.params.userId}),e.passwordPlaceholder=E.instant("security.new.password"),e.userType=s.UserType.USER;const g={DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0};c.hasRole(s.UserRole.ROLE_ADMIN)||u.url("settings"),e.getUserData=function(){d.getUser(e.params.userId).success((function(r){e.userData=r,e.user={username:e.userData.username},e.user.password="",e.user.confirmpassword="",e.user.external=e.userData.external,e.user.appSettings=r.appSettings||g,e.userType=s.UserType.USER;const t=i(r.grantedAuthorities);e.userType=t.userType,e.grantedAuthorities=t.grantedAuthorities,e.customRoles=t.customRoles})).error((function(e){const r=getError(e);t.error(r,E.instant("common.error"))}))},e.getUserData(),e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?l.openSimpleModal({title:E.instant("security.save.admin.settings"),message:E.instant("security.admin.pass.unset"),warning:!0}).result.then((function(){e.updateUser()})):e.updateUser()},e.updateUserHttp=function(){e.loader=!0,d.updateUser({username:e.user.username,pass:e.noPassword?"":e.user.password||void 0,appSettings:e.user.appSettings,grantedAuthorities:e.user.grantedAuthorities}).success((function(){t.success(E.instant("security.user.updated",{name:e.user.username}));const r=a((function(){e.loader=!1,n.history.back()}),2e3);e.$on("$destroy",(function(){a.cancel(r)})),c.getPrincipal().then(r=>{e.user.username===r.username&&(r.appSettings=e.user.appSettings)})})).error((function(r){const s=getError(r);e.loader=!1,t.error(s,E.instant("common.error"))}))},e.validateForm=function(){return e.validatePassword()}}]),o.controller("RolesMappingController",["$scope","toastr","SecurityRestService","$translate",function(e,r,t,s){e.debugMapping=function(e,r){const s=r.split(":");t.getRolesMapping({role:e,method:s[1],mapping:s[0]})};e.$on("repositoryIsSet",(function(){t.getRoles().success((function(r){e.roleMappings=r,e.roles=_.keys(e.roleMappings),e.mappings=_.keys(e.roleMappings[e.roles[0]]);const t=_.map(e.roles,(function(r){return[r,_.filter(e.roleMappings[r]).length]}));e.roles=_.reverse(_.map(_.orderBy(t,(function(e){return e[1]})),(function(e){return e[0]})))})).error((function(t){const n=getError(t);e.loader=!1,r.error(n,s.instant("common.error"))}))}))}]),o.controller("ChangeUserPasswordSettingsCtrl",["$scope","toastr","$window","$timeout","$jwtAuth","$rootScope","$controller","SecurityRestService","ModalService","$translate","ThemeService","WorkbenchSettingsStorageService","$q",function(e,r,t,n,o,a,u,c,p,d,l,E,g){angular.extend(this,u("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.new.password"})),e.themes=l.getThemes(),e.mode="settings",e.showWorkbenchSettings=!0,e.workbenchSettings=E.getWorkbenchSettings(),e.saveButtonText=d.instant("common.save.btn"),e.pageTitle=d.instant("view.settings.title"),e.passwordPlaceholder=d.instant("security.new.password"),e.grantedAuthorities={READ_REPO:{},WRITE_REPO:{}},e.loader=!1,e.selectedTheme=l.getTheme(),e.hasEditRestrictions=function(){return!0},e.isUser=function(){return e.userType===s.UserType.USER},e.goBack=function(){const r=n((function(){t.history.back()}),100);e.$on("$destroy",(function(){n.cancel(r)}))},e.getPrincipal=function(){return o.getPrincipal().then(r=>{e.currentUserData=angular.copy(r)})},e.getPrincipal().then(()=>{e.redirectAdmin(),h(e)}),e.updateCurrentUserData=function(){g.when(o.getPrincipal()).then(r=>_.assign(r,e.userData))},e.redirectAdmin=function(){e.currentUserData||a.redirectToLogin()};const h=function(r){r.userData=angular.copy(r.currentUserData),r.user={username:r.userData.username},r.user.password="",r.user.confirmpassword="",r.user.external=r.userData.external,r.user.appSettings=r.userData.appSettings,void 0===r.user.appSettings.DEFAULT_VIS_GRAPH_SCHEMA&&(r.user.appSettings.DEFAULT_VIS_GRAPH_SCHEMA=!0);const t=i(r.userData.authorities);e.userType=t.userType,e.grantedAuthorities=t.grantedAuthorities,e.customRoles=t.customRoles};e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?p.openSimpleModal({title:d.instant("security.save.admin.settings"),message:d.instant("security.admin.pass.unset"),warning:!0}).result.then((function(){e.updateUser()})):e.updateUser()},e.updateUserHttp=function(){e.loader=!0,c.updateUserData({username:e.user.username,pass:e.noPassword?"":e.user.password||void 0,appSettings:e.user.appSettings}).success((function(){e.updateCurrentUserData(),r.success(d.instant("security.user.updated",{name:e.user.username}));const s=n((function(){e.loader=!1,t.history.back()}),2e3);E.saveWorkbenchSettings(e.workbenchSettings),e.$on("$destroy",(function(){n.cancel(s)}))})).error((function(t){const s=getError(t);e.loader=!1,r.error(s,d.instant("common.error"))}))},e.updateUser=function(){if(!e.validateForm())return!1;e.updateUserHttp()},e.validateForm=function(){return e.validatePassword()},e.setThemeMode=function(){l.toggleThemeMode(e.workbenchSettings.mode)},e.setTheme=r=>{e.selectedTheme=r,e.workbenchSettings.theme=r.name,l.applyTheme(r.name)},e.$on("$destroy",(function(){const e=E.getWorkbenchSettings();l.toggleThemeMode(e.mode)}));e.workbenchSettings||(e.workbenchSettings={theme:"light"}),e.setThemeMode()}]),o.controller("DeleteUserCtrl",["$scope","$uibModalInstance","username",function(e,r,t){e.username=t,e.ok=function(){r.close()},e.cancel=function(){r.dismiss("cancel")}}])}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{134:function(e,r,t){"use strict";t.r(r);t(6),t(24),t(36),t(37);var s=t(4);const n=function(e){return e.location?`${e.id}@${e.location}`:e.id},o=angular.module("graphdb.framework.security.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.jwtauth","graphdb.framework.core.services.openIDService","graphdb.framework.rest.security.service","toastr","ngTagsInput"]),i=function(e){let r=s.UserType.USER;const t={READ_REPO:{},WRITE_REPO:{}},n={},o=[];for(let i=0;i<e.length;i++){const a=e[i];if(a===s.UserRole.ROLE_ADMIN)r=s.UserType.ADMIN;else if(a===s.UserRole.ROLE_REPO_MANAGER)r!==s.UserType.ADMIN&&(r=s.UserType.REPO_MANAGER);else if(a===s.UserRole.ROLE_USER)r=s.UserType.USER;else if(0===a.indexOf("READ_REPO_")||0===a.indexOf("WRITE_REPO_")){const e=a.indexOf("_",a.indexOf("_")+1),r=a.substr(0,e),s=a.substr(e+1);t[r][s]=!0,n[s]=n[s]||{},"READ_REPO"===r?n[s].read=!0:"WRITE_REPO"===r&&(n[s].write=!0)}else 0===a.indexOf("CUSTOM_")&&o.push(a.substr("CUSTOM_".length))}return{userType:r,userTypeDescription:s.UserUtils.getUserRoleName(r),grantedAuthorities:t,repositories:n,customRoles:o}};o.controller("LoginCtrl",["$scope","$http","toastr","$jwtAuth","$openIDAuth","$location","$rootScope","$translate",function(e,r,t,s,n,o,i,a){e.username="",e.password="",s.reinitializeSecurity(),e.loginWithOpenID=function(){s.loginOpenID()},o.search().noaccess?t.error(a.instant("security.no.rights.config.error"),a.instant("security.login.error")):o.search().expired&&t.error(a.instant("security.auth.token.expired"),a.instant("security.login.error")),e.isGDBLoginEnabled=function(){return s.passwordLoginEnabled},e.isOpenIDEnabled=function(){return s.openIDEnabled},e.login=function(){return r({method:"POST",url:"rest/login",data:{username:e.username,password:e.password}}).success((function(e,r,t){s.authenticate(e,t("Authorization")).then(()=>{i.returnToUrl?o.url(i.returnToUrl):o.path("/")})})).error((function(r,s){if(401===s)t.error(a.instant("security.wrong.credentials"),a.instant("common.error")),e.wrongCredentials=!0,e.username="",e.password="";else{const e=getError(r);t.error(e,s)}}))}}]),o.controller("UsersCtrl",["$scope","$uibModal","toastr","$window","$jwtAuth","$timeout","ModalService","SecurityRestService","$translate",function(e,r,t,s,o,a,u,c,p){e.loader=!0,e.securityEnabled=function(){return o.isSecurityEnabled()},e.hasExternalAuth=function(){return o.hasExternalAuth()},e.getAuthImplementation=function(){return o.getAuthImplementation()},e.freeAccessEnabled=function(){return o.isFreeAccessEnabled()},e.getUsers=function(){c.getUsers().success((function(r){e.users=r;for(let r=0;r<e.users.length;r++){const t=i(e.users[r].grantedAuthorities);e.users[r].userType=t.userType,e.users[r].userTypeDescription=t.userTypeDescription,e.users[r].repositories=t.repositories,e.users[r].customRoles=t.customRoles}e.loader=!1})).error((function(r){const s=getError(r);t.error(s,p.instant("common.error")),e.loader=!1}))},e.getUsers(),e.$on("repositoryIsSet",(function(){e.getUsers()})),e.toggleSecurity=function(){if(o.toggleSecurity(!o.isSecurityEnabled()),o.isSecurityEnabled()){const r=a((function(){s.location.reload()}),500);e.$on("$destroy",(function(){a.cancel(r)}))}},e.toggleFreeAccess=function(t){!o.isFreeAccessEnabled()||o.isFreeAccessEnabled()&&t?c.getFreeAccess().then((function(s){let i=s.data.authorities,a=s.data.appSettings||{DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0};r.open({templateUrl:"js/angular/security/templates/modal/default-authorities.html",controller:"DefaultAuthoritiesCtrl",resolve:{data:function(){return{defaultAuthorities:function(){const r={READ_REPO:{},WRITE_REPO:{}},t=_.mapKeys(e.getRepositories(),(function(e){return n(e)}));return _.each(i,(function(e){0===e.indexOf("WRITE_REPO_")?t.hasOwnProperty(e.substr(11))&&(r.WRITE_REPO[e.substr(11)]=!0):0===e.indexOf("READ_REPO_")&&t.hasOwnProperty(e.substr(10))&&(r.READ_REPO[e.substr(10)]=!0)})),r},appSettings:a}}}}).result.then((function(e){i=e.authorities,a=e.appSettings,o.toggleFreeAccess(t||!o.isFreeAccessEnabled(),i,a,t)}))})):o.toggleFreeAccess(!o.isFreeAccessEnabled(),[])},e.editFreeAccess=function(){e.toggleFreeAccess(!0)},e.removeUser=function(r){u.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("security.confirm.delete.user",{name:r}),warning:!0}).result.then((function(){e.loader=!0,c.deleteUser(r).success((function(){e.getUsers()})).error((function(r){const s=getError(r);t.error(s,p.instant("common.error")),e.loader=!1}))}))},e.encodeURIComponent=function(e){return encodeURIComponent(e)}}]),o.controller("DefaultAuthoritiesCtrl",["$scope","$http","$uibModalInstance","data","$rootScope",function(e,r,t,s,o){e.grantedAuthorities=s.defaultAuthorities(),e.appSettings=s.appSettings,e.hasActiveLocation=function(){return!_.isEmpty(o.globalLocation)},e.getRepositories=function(){return o.globalRepositories},e.ok=function(){const r=[];e.repositoryCheckError=!0;for(const t in e.grantedAuthorities.WRITE_REPO)e.grantedAuthorities.WRITE_REPO[t]&&(r.push("WRITE_REPO_"+t),r.push("READ_REPO_"+t),e.repositoryCheckError=!1);for(const t in e.grantedAuthorities.READ_REPO)e.grantedAuthorities.READ_REPO[t]&&-1===r.indexOf("READ_REPO_"+t)&&(r.push("READ_REPO_"+t),e.repositoryCheckError=!1);e.repositoryCheckError||t.close({authorities:r,appSettings:e.appSettings})},e.cancel=function(){t.dismiss("cancel")},e.createUniqueKey=function(e){return n(e)}}]),o.controller("CommonUserCtrl",["$rootScope","$scope","$http","toastr","$window","$timeout","$location","$jwtAuth","$translate","passwordPlaceholder",function(e,r,t,o,i,a,u,c,p,d){e.$on("$translateChangeSuccess",(function(){r.passwordPlaceholder=p.instant(d)})),r.isAdmin=function(){return c.hasRole(s.UserRole.ROLE_ADMIN)},r.hasExternalAuth=function(){return c.hasExternalAuth()},r.hasEditRestrictions=function(){return r.user&&r.user.username===s.UserType.ADMIN},r.isOverrideAuth=function(){return c.isDefaultAuthEnabled()},r.setGrantedAuthorities=function(){!function(e){function r(){for(let r=0;r<arguments.length;r++){const t=arguments[r];_.indexOf(e.user.grantedAuthorities,t)<0&&e.user.grantedAuthorities.push(t)}}if(e.user.grantedAuthorities=[],e.repositoryCheckError=!0,e.userType===s.UserType.ADMIN)e.repositoryCheckError=!1,r(s.UserRole.ROLE_ADMIN);else if(e.userType===s.UserType.REPO_MANAGER)e.repositoryCheckError=!1,r(s.UserRole.ROLE_REPO_MANAGER);else{r(s.UserRole.ROLE_USER);for(const t in e.grantedAuthorities.WRITE_REPO)e.grantedAuthorities.WRITE_REPO[t]&&(e.repositoryCheckError=!1,r("WRITE_REPO_"+t,"READ_REPO_"+t));for(const t in e.grantedAuthorities.READ_REPO)e.grantedAuthorities.READ_REPO[t]&&(e.repositoryCheckError=!1,r("READ_REPO_"+t))}e.customRoles&&e.customRoles.forEach(e=>r("CUSTOM_"+e))}(r)},r.$watch("userType",(function(){r.isUser()||(r.customRoles="")})),r.isUser=function(){return r.userType===s.UserType.USER},r.hasReadPermission=function(e){const t=n(e);return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&(r.grantedAuthorities.READ_REPO["*"]||r.grantedAuthorities.WRITE_REPO["*"])||r.grantedAuthorities.READ_REPO[t]||r.grantedAuthorities.WRITE_REPO[t]},r.hasWritePermission=function(e){const t=n(e);return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&r.grantedAuthorities.WRITE_REPO["*"]||r.grantedAuthorities.WRITE_REPO[t]},r.readCheckDisabled=function(e){return r.hasWritePermission(e)||"SYSTEM"!==e.id&&"*"!==e&&r.grantedAuthorities.READ_REPO["*"]||r.hasEditRestrictions()},r.writeCheckDisabled=function(e){return r.userType===s.UserType.ADMIN||r.userType===s.UserType.REPO_MANAGER||"SYSTEM"!==e.id&&"*"!==e&&r.grantedAuthorities.WRITE_REPO["*"]||r.hasEditRestrictions()},r.createUniqueKey=function(e){return n(e)},r.userType=s.UserType.USER,r.grantedAuthorities={READ_REPO:{},WRITE_REPO:{}},r.validatePassword=function(){return r.noPassword?(r.passwordError="",r.confirmPasswordError="",!0):r.user.password!==r.user.confirmpassword?(r.user.password?(r.passwordError="",r.confirmPasswordError=p.instant("security.confirm.password")):(r.passwordError=p.instant("security.enter.password"),r.confirmPasswordError=""),!1):(r.passwordError="",r.confirmPasswordError="",!0)},r.isLocalAuthentication=function(){return"Local"===c.getAuthImplementation()},r.updateUser=function(){if(!r.validateForm())return!1;r.isLocalAuthentication()&&r.setGrantedAuthorities(),r.repositoryCheckError||r.updateUserHttp()},r.setNoPassword=function(){r.noPassword&&(r.user.password="",r.user.confirmpassword="",r.passwordError="",r.confirmPasswordError="")},r.shouldDisableSameAs=function(){const e=$("#sameAsCheck");return r.user&&!r.user.appSettings.DEFAULT_INFERENCE&&e.prop("checked")&&(e.prop("checked",!1),r.user.appSettings.DEFAULT_SAMEAS=!1),r.user&&!r.user.appSettings.DEFAULT_INFERENCE},r.addCustomRole=function(e){return e.text=e.text.toUpperCase(),e}}]),o.controller("AddUserCtrl",["$scope","$http","toastr","$window","$timeout","$location","$jwtAuth","$controller","SecurityRestService","ModalService","$translate",function(e,r,t,n,o,i,a,u,c,p,d){angular.extend(this,u("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.password.placeholder"})),e.mode="add",e.saveButtonText=d.instant("common.create.btn"),e.goBack=function(){const r=o((function(){n.history.back()}),100);e.$on("$destroy",(function(){o.cancel(r)}))},e.pageTitle=d.instant("view.create.user.title"),e.passwordPlaceholder=d.instant("security.password.placeholder"),e.user={username:"",password:"",confirmpassword:"",grantedAuthorities:[],appSettings:{DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0}},e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?p.openSimpleModal({title:d.instant("security.create.admin"),message:d.instant("security.admin.login.warning"),warning:!0}).result.then((function(){e.createUser()})):e.createUser()},e.createUserHttp=function(){e.loader=!0,c.createUser({username:e.user.username,pass:e.user.password,appSettings:e.user.appSettings,grantedAuthorities:e.user.grantedAuthorities}).success((function(){t.success(d.instant("security.user.created",{name:e.user.username}));const r=o((function(){e.loader=!1,n.history.back()}),2e3);e.$on("$destroy",(function(){o.cancel(r)}))})).error((function(r){const s=getError(r);e.loader=!1,t.error(s,d.instant("common.error"))}))},e.createUser=function(){e.validateForm()&&(e.setGrantedAuthorities(),e.repositoryCheckError||e.createUserHttp())},e.validateForm=function(){let r=!0;return e.user.username?e.usernameError="":(e.usernameError=d.instant("security.enter.username"),r=!1),e.noPassword?(e.passwordError="",e.confirmPasswordError=""):(e.user.password?e.passwordError="":(e.passwordError=d.instant("security.enter.password"),r=!1),e.user.confirmpassword&&e.user.password===e.user.confirmpassword?e.confirmPasswordError="":(e.confirmPasswordError=d.instant("security.confirm.password"),r=!1)),r}}]),o.controller("EditUserCtrl",["$scope","$http","toastr","$window","$routeParams","$timeout","$location","$jwtAuth","$controller","SecurityRestService","ModalService","$translate",function(e,r,t,n,o,a,u,c,p,d,l,E){angular.extend(this,p("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.new.password"})),e.mode="edit",e.saveButtonText=E.instant("common.save.btn"),e.goBack=function(){const r=a((function(){n.history.back()}),100);e.$on("$destroy",(function(){a.cancel(r)}))},e.params=o,e.pageTitle=E.instant("view.edit.user.title",{userId:e.params.userId}),e.passwordPlaceholder=E.instant("security.new.password"),e.userType=s.UserType.USER;const g={DEFAULT_SAMEAS:!0,DEFAULT_INFERENCE:!0,EXECUTE_COUNT:!0,IGNORE_SHARED_QUERIES:!1,DEFAULT_VIS_GRAPH_SCHEMA:!0};c.hasRole(s.UserRole.ROLE_ADMIN)||u.url("settings"),e.getUserData=function(){d.getUser(e.params.userId).success((function(r){e.userData=r,e.user={username:e.userData.username},e.user.password="",e.user.confirmpassword="",e.user.external=e.userData.external,e.user.appSettings=r.appSettings||g,e.userType=s.UserType.USER;const t=i(r.grantedAuthorities);e.userType=t.userType,e.grantedAuthorities=t.grantedAuthorities,e.customRoles=t.customRoles})).error((function(e){const r=getError(e);t.error(r,E.instant("common.error"))}))},e.getUserData(),e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?l.openSimpleModal({title:E.instant("security.save.admin.settings"),message:E.instant("security.admin.pass.unset"),warning:!0}).result.then((function(){e.updateUser()})):e.updateUser()},e.updateUserHttp=function(){e.loader=!0,d.updateUser({username:e.user.username,pass:e.noPassword?"":e.user.password||void 0,appSettings:e.user.appSettings,grantedAuthorities:e.user.grantedAuthorities}).success((function(){t.success(E.instant("security.user.updated",{name:e.user.username}));const r=a((function(){e.loader=!1,n.history.back()}),2e3);e.$on("$destroy",(function(){a.cancel(r)})),c.getPrincipal().then(r=>{e.user.username===r.username&&(r.appSettings=e.user.appSettings)})})).error((function(r){const s=getError(r);e.loader=!1,t.error(s,E.instant("common.error"))}))},e.validateForm=function(){return e.validatePassword()}}]),o.controller("RolesMappingController",["$scope","toastr","SecurityRestService","$translate",function(e,r,t,s){e.debugMapping=function(e,r){const s=r.split(":");t.getRolesMapping({role:e,method:s[1],mapping:s[0]})};e.$on("repositoryIsSet",(function(){t.getRoles().success((function(r){e.roleMappings=r,e.roles=_.keys(e.roleMappings),e.mappings=_.keys(e.roleMappings[e.roles[0]]);const t=_.map(e.roles,(function(r){return[r,_.filter(e.roleMappings[r]).length]}));e.roles=_.reverse(_.map(_.orderBy(t,(function(e){return e[1]})),(function(e){return e[0]})))})).error((function(t){const n=getError(t);e.loader=!1,r.error(n,s.instant("common.error"))}))}))}]),o.controller("ChangeUserPasswordSettingsCtrl",["$scope","toastr","$window","$timeout","$jwtAuth","$rootScope","$controller","SecurityRestService","ModalService","$translate","ThemeService","WorkbenchSettingsStorageService","$q",function(e,r,t,n,o,a,u,c,p,d,l,E,g){angular.extend(this,u("CommonUserCtrl",{$scope:e,passwordPlaceholder:"security.new.password"})),e.themes=l.getThemes(),e.mode="settings",e.showWorkbenchSettings=!0,e.workbenchSettings=E.getWorkbenchSettings(),e.saveButtonText=d.instant("common.save.btn"),e.pageTitle=d.instant("view.settings.title"),e.passwordPlaceholder=d.instant("security.new.password"),e.grantedAuthorities={READ_REPO:{},WRITE_REPO:{}},e.loader=!1,e.selectedTheme=l.getTheme(),e.hasEditRestrictions=function(){return!0},e.isUser=function(){return e.userType===s.UserType.USER},e.goBack=function(){const r=n((function(){t.history.back()}),100);e.$on("$destroy",(function(){n.cancel(r)}))},e.getPrincipal=function(){return o.getPrincipal().then(r=>{e.currentUserData=angular.copy(r)})},e.getPrincipal().then(()=>{e.redirectAdmin(),h(e)}),e.updateCurrentUserData=function(){g.when(o.getPrincipal()).then(r=>_.assign(r,e.userData))},e.redirectAdmin=function(){e.currentUserData||a.redirectToLogin()};const h=function(r){r.userData=angular.copy(r.currentUserData),r.user={username:r.userData.username},r.user.password="",r.user.confirmpassword="",r.user.external=r.userData.external,r.user.appSettings=r.userData.appSettings,void 0===r.user.appSettings.DEFAULT_VIS_GRAPH_SCHEMA&&(r.user.appSettings.DEFAULT_VIS_GRAPH_SCHEMA=!0);const t=i(r.userData.authorities);e.userType=t.userType,e.grantedAuthorities=t.grantedAuthorities,e.customRoles=t.customRoles};e.submit=function(){e.noPassword&&e.userType===s.UserType.ADMIN?p.openSimpleModal({title:d.instant("security.save.admin.settings"),message:d.instant("security.admin.pass.unset"),warning:!0}).result.then((function(){e.updateUser()})):e.updateUser()},e.updateUserHttp=function(){e.loader=!0,c.updateUserData({username:e.user.username,pass:e.noPassword?"":e.user.password||void 0,appSettings:e.user.appSettings}).success((function(){e.updateCurrentUserData(),r.success(d.instant("security.user.updated",{name:e.user.username}));const s=n((function(){e.loader=!1,t.history.back()}),2e3);E.saveWorkbenchSettings(e.workbenchSettings),e.$on("$destroy",(function(){n.cancel(s)}))})).error((function(t){const s=getError(t);e.loader=!1,r.error(s,d.instant("common.error"))}))},e.updateUser=function(){if(!e.validateForm())return!1;e.updateUserHttp()},e.validateForm=function(){return e.validatePassword()},e.setThemeMode=function(){l.toggleThemeMode(e.workbenchSettings.mode)},e.setTheme=r=>{e.selectedTheme=r,e.workbenchSettings.theme=r.name,l.applyTheme(r.name)},e.$on("$destroy",(function(){const e=E.getWorkbenchSettings();l.toggleThemeMode(e.mode)}));e.workbenchSettings||(e.workbenchSettings={theme:"light"}),e.setThemeMode()}]),o.controller("DeleteUserCtrl",["$scope","$uibModalInstance","username",function(e,r,t){e.username=t,e.ok=function(){r.close()},e.cancel=function(){r.dismiss("cancel")}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{170:function(e,l){PluginRegistry.add("route",[{url:"/jdbc",module:"graphdb.framework.jdbc",path:"jdbc/app",chunk:"jdbc",controller:"JdbcListCtrl",templateUrl:"pages/jdbc.html",title:"view.jdbc.title",helpInfo:"view.jdbc.helpInfo"},{url:"/jdbc/configuration/create",module:"graphdb.framework.jdbc",path:"jdbc/app",chunk:"jdbc",controller:"JdbcCreateCtrl",templateUrl:"pages/jdbc-create.html",title:"view.jdbc.create.title",helpInfo:"view.jdbc.create.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"JDBC",labelKey:"menu.jdbc.label",href:"jdbc",order:50,parent:"Setup",role:"IS_AUTHENTICATED_FULLY",guideSelector:"sub-menu-jdbs"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{171:function(R,_,E){"use strict";E.r(_),E.d(_,"BackupAndRestoreOperationType",(function(){return S}));const S={CREATE_BACKUP_IN_PROGRESS:"CREATE_BACKUP_IN_PROGRESS",RESTORE_BACKUP_IN_PROGRESS:"RESTORE_BACKUP_IN_PROGRESS",CREATE_CLOUD_BACKUP_IN_PROGRESS:"CREATE_CLOUD_BACKUP_IN_PROGRESS",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"RESTORE_CLOUD_BACKUP_IN_PROGRESS"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{172:function(N,n,E){"use strict";E.r(n),E.d(n,"CLUSTER_STATUS",(function(){return S}));const S={IN_SYNC:"IN_SYNC",RECOVERING:"RECOVERING",OUT_OF_SYNC:"OUT_OF_SYNC",UNAVAILABLE_NODES:"UNAVAILABLE_NODES"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{173:function(t,s,n){"use strict";n.r(s),n.d(s,"ActiveOperationInput",(function(){return i}));class i{constructor(){this.value="",this.status="",this.type=""}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{174:function(n,t,s){"use strict";s.r(t),s.d(t,"ActiveOperationsInput",(function(){return o}));var i=s(7);class o{constructor(){this.allRunningOperations=[],this.status=i.OPERATION_STATUS.INFORMATION}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{175:function(n,e,o){"use strict";o.r(e),o.d(e,"WorkbenchSettingsModel",(function(){return t}));const t={theme:"",mode:""}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{176:function(n,e,o){"use strict";o.r(e),o.d(e,"ThemeModel",(function(){return c}));const c={name:"",label:"",mode:""}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{119:function(e,a,s){"use strict";s.r(a);s(6),s(24),s(22),s(28);const n=angular.module("graphdb.framework.namespaces.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.framework.rest.repositories.service","graphdb.framework.rest.rdf4j.repositories.service","toastr"]),t=function(){const e="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-]|[-]|[⁰-]|[Ⰰ-]|[、-]|[豈-﷏]|[ﷰ-�]",a="[A-Z]|[a-z]|[À-Ö]|[Ø-ö]|[ø-˿]|[Ͱ-ͽ]|[Ϳ-]|[-]|[⁰-]|[Ⰰ-]|[、-]|[豈-﷏]|[ﷰ-�]|_|-|[0-9]|·|[̀-ͯ]|[‿-⁀]";return new RegExp("^(?:"+e+")(?:(?:"+a+"|\\.)*(?:"+a+"))?$")}();n.controller("NamespacesCtrl",["$scope","$http","$repositories","toastr","$uibModal","ModalService","RepositoriesRestService","RDF4JRepositoriesRestService","$translate",function(e,a,s,n,c,r,i,o,p){function l(a,t){let c;c="object"==typeof a?a.prefix:a,o.deleteNamespacePrefix(s.getActiveRepository(),c).success((function(){t&&t.length>0?l(a=t.shift(),t):(e.selectedAll=!1,e.namespace={},e.getNamespaces(),e.searchNamespaces="",e.haveSelected=!1,e.loader=!1,e.displayedNamespaces=[],void 0===t?n.success(p.instant("namespace.prefix.deleted.successfully",{prefix:c}),""):n.success(p.instant("namespace.selected.namespaces.deleted.successfully"),""))})).error((function(a){const s=getError(a);n.error(s,p.instant("common.error")),e.loader=!1}))}function m(e,a){return function(e){return""===e||e.match(t)}(e)?!angular.isUndefined(a)&&""!==a||(n.error(p.instant("namespace.warning.provide.namespace"),p.instant("common.error")),!1):(n.error(p.instant("namespace.invalid.prefix",{prefix:e},p.instant("common.error"))),!1)}e.namespaces={},e.namespace={},e.loader=!1,e.haveSelected=!1,e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.displayedNamespaces=[],e.getNamespaces=function(){s.getActiveRepository()&&(e.loader=!0,e.namespaces={},o.getNamespaces(s.getActiveRepository()).success((function(a){e.namespaces=a.results.bindings.map((function(e){return{prefix:e.prefix.value,namespace:e.namespace.value}})),e.namespaces.length>0&&(e.namespaces.sort((function(e,a){const s=e.prefix.toUpperCase(),n=a.prefix.toUpperCase();return s<n?-1:s>n?1:0})),e.matchedElements=e.namespaces,e.changePagination()),0===e.namespaces.length&&(e.loader=!1)})).error((function(a){const s=getError(a);n.error(s),e.loader=!1})))},e.changePagination=function(){angular.isDefined(e.namespaces)&&(e.displayedNamespaces=e.namespaces.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(a){$(".ot-graph-page-size").removeClass("active"),e.page=1,e.searchNamespaces="",a&&(e.getNamespaces(),e.pageSize=a)},e.$watch("matchedElements",(function(){angular.isDefined(e.matchedElements)&&(e.displayedNamespaces=e.matchedElements.slice(e.pageSize*(e.page-1),e.pageSize*e.page))})),e.$watch((function(){return s.getActiveRepository()}),(function(){e.searchNamespaces="",e.getNamespaces(),e.selectedAll=!1})),e.onNamespaceSearch=function(){e.haveSelected=!1,e.selectedAll=!1,e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.namespaces,(function(a){-1===a.namespace.indexOf(e.searchNamespaces)&&-1===a.prefix.indexOf(e.searchNamespaces)||e.matchedElements.push(a)}))},e.saveNamespace=function(a,t){return e.loader=!0,o.updateNamespacePrefix(s.getActiveRepository(),t,a).success((function(){e.getNamespaces(),n.success(p.instant("namespace.saved")),e.loader=!1})).error((function(a){const s=getError(a);n.error(s,p.instant("common.error")),e.loader=!1}))},e.editPrefix=function(a,t){e.loader=!0,i.getPrefix(s.getActiveRepository(),{from:a,to:t,location:s.getActiveRepositoryObject().location}).success((function(){e.getNamespaces(),e.loader=!1})).error((function(a){const s=getError(a);n.error(s,p.instant("common.error")),e.loader=!1}))},e.confirmReplace=function(e,a){r.openSimpleModal({title:p.instant("namespace.confirm.replace"),message:p.instant("namespace.already.exists.msg"),warning:!0}).result.then(e,a)},e.editPrefixAndNamespace=function(a,s,n){if(angular.isUndefined(a)&&(a=""),!m(a,s))return"";let t=!1;const c=n.prefix;angular.forEach(e.namespaces,(function(e){e.prefix===a&&c!==a&&(t=!0)})),t?e.confirmReplace((function(){e.saveNamespace(c,s).then((function(){c!==a&&e.editPrefix(c,a)}))}),(function(){e.getNamespaces()})):angular.isDefined(t)&&e.saveNamespace(c,s).then((function(){c!==a&&e.editPrefix(c,a)}))},e.addNamespace=function(){if(angular.isUndefined(e.namespace.prefix)&&(e.namespace.prefix=""),!m(e.namespace.prefix,e.namespace.namespace))return;e.selectedAll=!1;let a=!1;for(let s=0;s<e.namespaces.length;s++)e.namespaces[s].prefix===e.namespace.prefix&&(a=!0);a?e.confirmReplace((function(){e.saveNamespace(e.namespace.prefix,e.namespace.namespace),e.namespace.namespace="",e.namespace.prefix="",setTimeout(()=>{e.form.$setUntouched(),e.form.$setPristine()})})):(e.saveNamespace(e.namespace.prefix,e.namespace.namespace),e.namespace.namespace="",e.namespace.prefix="",setTimeout(()=>{e.form.$setUntouched(),e.form.$setPristine()}))},e.removeNamespace=function(e){r.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.msg",{prefix:e.prefix}),warning:!0}).result.then((function(){l(e)}))},e.checkAll=function(){angular.forEach(e.displayedNamespaces,(function(a){a.selected=e.selectedAll}))},e.deleteSelected=function(){let a=!1;angular.forEach(e.displayedNamespaces,(function(s){a||s.selected&&(a=!0,r.openSimpleModal({title:p.instant("common.confirm.delete"),message:p.instant("namespace.warning.delete.selected"),warning:!0}).result.then((function(){e.loader=!0;const a=[];angular.forEach(e.displayedNamespaces,(function(e){e.selected&&a.push(e)})),l(a.shift(),a),e.selectedAll=!1}),(function(){e.getNamespaces(),e.selectedAll=!1,e.searchNamespaces=""})))}))},e.checkIfSelectedNamespace=function(){e.haveSelected=!1,angular.forEach(e.namespaces,(function(a){a.selected&&(e.haveSelected=!0)}))},e.deselectAll=function(){angular.forEach(e.namespaces,(function(e){e.selected=!1}))}}]),n.controller("StandartModalCtrl",["$scope","$uibModalInstance",function(e,a){e.ok=function(){a.close(!0)},e.cancel=function(){a.dismiss("cancel")}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{120:function(e,n){angular.module("graphdb.framework.namespaces.directives",["ngRoute"]).directive("loaderPostRepeatDirective",["$timeout",function(e){return function(n){n.$last&&e((function(){n.$parent.loader=!1}),0)}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{178:function(e,a){PluginRegistry.add("route",{url:"/namespaces",module:"graphdb.framework.namespaces",chunk:"namespaces",path:"namespaces/app",controller:"NamespacesCtrl",templateUrl:"pages/namespaces.html",title:"menu.namespaces.label",helpInfo:"view.namespaces.helpInfo"}),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"Namespaces",labelKey:"menu.namespaces.label",href:"namespaces",order:30,parent:"Setup",guideSelector:"sub-menu-namespaces"}]})}}]);
|