graphdb-workbench 3.0.0-NEW-JENKINS-15 → 3.0.0-RC1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/13.2e6845d4194a68ccd94d.bundle.js +1 -0
- package/dist/145.0b3647f86ef3b8ef2efa.bundle.js +1 -0
- package/dist/17.df5f3297138aa3a4802f.bundle.js +2 -0
- package/dist/{197.a267aad8b6020376d426.bundle.js → 197.1f7ccdf31809168a32a9.bundle.js} +1 -1
- package/dist/{2.6ade6e76e6da80509508.bundle.js → 2.9f22862e0285d2ec1c5e.bundle.js} +1 -1
- package/dist/230.3e6d1a0606d967cfcc8d.bundle.js +1 -1
- package/dist/{24.02968f13c97ccdaae2fb.bundle.js → 24.2c3a87886f22b1c8096c.bundle.js} +1 -1
- package/dist/243.79252639ef1e5fab2bf5.bundle.js +1 -0
- package/dist/31.756f6db034a221e6bd94.bundle.js +1 -1
- package/dist/366.10569a2bd57446ba5afd.bundle.js +1 -0
- package/dist/396.8596825a6b99e49f2e53.bundle.js +1 -0
- package/dist/407.8cc73dc5f20d4e41214a.bundle.js +1 -0
- package/dist/413.399c0de9a7eed2876f19.bundle.js +1 -1
- package/dist/414.564363a4c2904c835bf2.bundle.js +1 -0
- package/dist/42.198c823c68d7ab997ed8.bundle.js +1 -1
- package/dist/420.86d39a34e0cfe7c5922d.bundle.js +1 -1
- package/dist/421.496b38108447fe3706fd.bundle.js +1 -1
- package/dist/422.9476615eea039ed0a3ca.bundle.js +1 -1
- package/dist/423.8f8b9beeefb8e456e740.bundle.js +1 -1
- package/dist/424.b1f341c2214d28ae62c2.bundle.js +1 -1
- package/dist/425.efd0aac0d1ce59d5193d.bundle.js +1 -1
- package/dist/440.65f4842c6b26f7a8fb04.bundle.js +1 -1
- package/dist/441.c33323aeb6fe095d0b07.bundle.js +1 -1
- package/dist/442.82dc82ea81a83cca825a.bundle.js +1 -1
- package/dist/443.4abf2d489c2afafef5a7.bundle.js +1 -0
- package/dist/444.d0b80c745f68ce002d1c.bundle.js +1 -1
- package/dist/445.10ba12283f340ef90cfa.bundle.js +1 -1
- package/dist/446.f47a75035d90a7d2e52c.bundle.js +1 -0
- package/dist/45.5912f58b9492aec75c39.bundle.js +1 -0
- package/dist/465.5fea1718e3d223ce572b.bundle.js +1 -1
- package/dist/468.50ec07a962dc1780df36.bundle.js +1 -0
- package/dist/477.ebfc2f101ba75769e928.bundle.js +1 -1
- package/dist/478.a8046c01285d7a20ab0a.bundle.js +1 -1
- package/dist/480.da864736cf389e4277d1.bundle.js +1 -1
- package/dist/481.9f8d8f6d85ab4e0c4644.bundle.js +1 -1
- package/dist/482.3b98ed70bb5211093378.bundle.js +1 -1
- package/dist/485.0c77d57a5e84b6baae8f.bundle.js +1 -1
- package/dist/486.ea7bdffc43fbaf04908c.bundle.js +1 -1
- package/dist/487.709c4b0e218b914e4f4e.bundle.js +1 -1
- package/dist/488.fc918ea5c55681561ed6.bundle.js +1 -1
- package/dist/49.eb484abfcc9a42c7c423.bundle.js +1 -1
- package/dist/50.5a6b73cf0ec26182e5d0.bundle.js +1 -1
- package/dist/{58.be51a287e86082e84acd.bundle.js → 58.19af0cd121a1b5c0169e.bundle.js} +1 -1
- package/dist/64.c9b3968b409bb73db224.bundle.js +1 -0
- package/dist/65.311f57bad4b19b5fd6c0.bundle.js +1 -0
- package/dist/66.45ee10f2d86ea9cae1f3.bundle.js +1 -0
- package/dist/75.96247f0a98d70d96e6c2.bundle.js +1 -1
- package/dist/82.10fe87e551be7f3872df.bundle.js +1 -0
- package/dist/84.a32b2efb30ebabffbbfd.bundle.js +1 -0
- package/dist/{bundle.c376fa0a1df804e381e1.bundle.js → bundle.066f5fded82ef206dfb5.bundle.js} +5 -5
- package/dist/css/dynamic-form.css +25 -2
- package/dist/css/graphql/create-graphql-endpoint.css +17 -0
- package/dist/css/graphql/graphql-endpoint-configuration-modal.css +10 -0
- package/dist/css/graphql/graphql-playground.css +7 -0
- package/dist/i18n/locale-en.json +29 -9
- package/dist/i18n/locale-fr.json +29 -9
- package/dist/index.html +3 -3
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +2 -6
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +3 -16
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +9 -3
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/graphql/templates/step-configure-endpoint.html +9 -2
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/settings/modal/validate-license.html +10 -6
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/license-checker.json +208 -208
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/home.html +24 -27
- package/dist/pages/import.html +4 -4
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/licenseInfo.html +19 -24
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +12 -12
- package/package.json +4 -8
- package/dist/13.f7857db12a3974c9618a.bundle.js +0 -1
- package/dist/145.f6d4e9bf67f4241adf0d.bundle.js +0 -1
- package/dist/17.4b1231269383a8690efe.bundle.js +0 -2
- package/dist/243.01e65a41c62f3ac01504.bundle.js +0 -1
- package/dist/366.d2a76f84ecf5af984939.bundle.js +0 -1
- package/dist/396.7cf27406a1fbb04ee9fc.bundle.js +0 -1
- package/dist/407.86ad2530ae663466b7c5.bundle.js +0 -1
- package/dist/414.9b364e4717303694f212.bundle.js +0 -1
- package/dist/443.c1b187dc20f178253ebc.bundle.js +0 -1
- package/dist/446.f73213256b89f656bf4f.bundle.js +0 -1
- package/dist/45.7ac9be8b3bc63189c53e.bundle.js +0 -1
- package/dist/468.99cbb60aecc91ab2868c.bundle.js +0 -1
- package/dist/64.28e68a72a00e89f02552.bundle.js +0 -1
- package/dist/65.d4b01bc8df8946ae16af.bundle.js +0 -1
- package/dist/66.7f0da3d18f56fa5fab10.bundle.js +0 -1
- package/dist/82.a5a392293451c35f66c0.bundle.js +0 -1
- package/dist/84.005b585cc5e2687b2ce7.bundle.js +0 -1
- /package/dist/{1.13127f3a82a81cc6a09b.bundle.js → 1.176afbe571cd82cc442d.bundle.js} +0 -0
- /package/dist/{119.b484468818061f03c76f.bundle.js → 119.61534c05f923e8a7093d.bundle.js} +0 -0
- /package/dist/{vendor.12efc223066522a0c6e7.bundle.js → vendor.bcc7ef4ba5602fe23602.bundle.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[13,226,228,229,234,259,260,265,355,362,383,388],{120:function(t,e,r){"use strict";r.r(e),r.d(e,"removeSpecialChars",(function(){return o})),r.d(e,"toBoolean",(function(){return i})),r.d(e,"toTitleCase",(function(){return a}));var n=r(24),o=function(t){return t.replace(/[()']/g,"")},i=function(t){return"string"==typeof t?"true"===t:Boolean(t)},a=function(t){return t?Object(n.upperFirst)(t.toLowerCase()):t}},137:function(t,e,r){"use strict";r.r(e),r.d(e,"TABS",(function(){return i}));var n=r(24),o=r(105),i={USER:"user",SERVER:"server"};function a(t){var e=i.USER,r=[],a=[],s=[],u=!0,c=[];return{updateActiveTabId:function(r){e=r,t.emitSync("activeTabIdUpdated",f())},getActiveTabId:f,onActiveTabIdUpdated:function(e){return t.subscribeSync("activeTabIdUpdated",(function(t){return e(t)}))},getFiles:d,addFile:function(e){var r=d();r.push(e),m(r),t.emitSync("fileAdded",Object(n.cloneDeep)(e))},updateFiles:m,onFilesUpdated:function(e){return t.subscribeSync("filesUpdated",(function(t){return e(t)}))},getImportedResources:g,updateImportedResources:function(e){r=e,t.emitSync("importedResourcesUpdated",g()),t.emitSync("resourcesUpdated",v())},onImportedResourcesUpdated:function(e){return t.subscribeSync("importedResourcesUpdated",(function(t){return e(t)}))},getResources:v,onResourcesUpdated:function(e){return t.subscribeSync("resourcesUpdated",(function(t){return e(t)}))},updateShowLoader:function(e){u=e,t.emitSync("showLoaderUpdated",p())},getShowLoader:p,onShowLoaderUpdated:function(e){return t.subscribeSync("showLoaderUpdated",(function(t){return e(t)}))},updateSelectedFilesNames:function(e){c=Object(n.cloneDeep)(e),t.emitSync("selectedFilesNamesUpdated",l())},getSelectedFilesNames:l,onSelectedFilesNamesUpdated:function(e){return t.subscribeSync("selectedFilesNamesUpdated",(function(t){return e(t)}))},updateResourceForUpload:function(t){var e=b(),r=e.find((function(e){return e.name===t.name}));r?Object.assign(r,t):e.push(t);y(e)},getResourceForUpload:function(t){return Object(n.cloneDeep)(a.find((function(e){return e.name===t})))},updateResourcesForUpload:y,getResourcesForUpload:b,onResourcesForUploadChanged:function(e){return t.subscribeSync("resourcesForUploadChanged",(function(t){return e(t)}))}};function l(){return Object(n.cloneDeep)(c)}function p(){return u}function f(){return e}function m(e){s=Object(n.cloneDeep)(e),t.emitSync("filesUpdated",d())}function d(){return Object(n.cloneDeep)(s)}function g(){return Object(n.cloneDeep)(r)||[]}function v(){var t=g(),e=b(),r=[],n=[];return t.forEach((function(t){var i=t.name,a=e.find((function(t){return t.name===i}));a&&(a.status===o.ImportResourceStatus.UPLOADED?r.push(a):n.push(a))})),r.length>0&&y(e=e.filter((function(t){var e=t.name;return!r.some((function(t){return t.name===e}))})),!1),t.filter((function(t){var e=t.name;return!n.some((function(t){return e===t}))})).concat(e)}function y(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a=Object(n.cloneDeep)(e),t.emitSync("resourcesForUploadChanged",b()),r&&t.emitSync("resourcesUpdated",v())}function b(){return Object(n.cloneDeep)(a)||[]}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",a),a.$inject=["EventEmitterService"]},177:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e),r.d(e,"ImportParsingSettings",(function(){return s}));var s=i((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}))},186:function(t,e,r){"use strict";r.r(e),r.d(e,"SortingType",(function(){return n}));var n={NAME:"NAME",SIZE:"SIZE",MODIFIED:"MODIFIED",IMPORTED:"IMPORTED",CONTEXT:"CONTEXT"}},224:function(t,e,r){"use strict";r.r(e),r.d(e,"ImportResource",(function(){return c}));var n=r(105),o=r(177),i=r(151);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}var c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hash=r(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:n.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new o.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0},(e=[{key:"isDirectory",value:function(){return i.ImportResourceType.DIRECTORY===this.type}},{key:"isFile",value:function(){return i.ImportResourceType.FILE===this.type||i.ImportResourceType.URL===this.type||i.ImportResourceType.TEXT===this.type}},{key:"isURL",value:function(){return i.ImportResourceType.URL===this.type}},{key:"isText",value:function(){return i.ImportResourceType.TEXT===this.type}}])&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},316:function(t,e,r){"use strict";r.r(e),r.d(e,"Operation",(function(){return v}));r(10),r(56),r(317),r(318);var n=r(137),o=(r(319),r(320)),i=(r(321),r(322),r(323),r(324)),a=r(120),s=(r(32),r(325)),u=r(326),c=r(1),l=r(327),p=r(186),f=r(105);function m(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var g=angular.module("graphdb.framework.impex.import.controllers",["ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.uriutils","graphdb.framework.guides.services","graphdb.framework.rest.import.service","graphdb.framework.rest.upload.service","graphdb.framework.import.services.importcontext","graphdb.framework.impex.import.controllers.tab","graphdb.framework.impex.import.controllers.settings-modal","graphdb.framework.impex.import.controllers.import-url","graphdb.framework.impex.import.controllers.import-text-snippet","graphdb.framework.impex.import.controllers.file-override-confirmation"]),v={IMPORT:"import",BATCH_IMPORT:"batch_import",IMPORT_SNIPPET:"import_snippet",IMPORT_URL:"import_url",UPLOAD:"upload"},y="file",b="text",h="url";g.controller("ImportViewCtrl",["$scope","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","$translate","LicenseRestService","GuidesService","ModalService","ImportRestService","ImportContextService",function(t,e,r,s,l,d,g,y,b,h,S,I,R,F){var T=[],U=null,w=void 0;t.files=[],t.fileChecked={},t.activeTabId=F.getActiveTabId(),t.popoverTemplateUrl="settingsPopoverTemplate.html",t.fileFormatsExtended=i.FileFormats.getFileFormatsExtended(),t.fileFormatsHuman=i.FileFormats.getFileFormatsHuman()+b.instant("import.gz.zip"),t.textFileFormatsHuman=i.FileFormats.getTextFileFormatsHuman(),t.maxUploadFileSizeBytes=0,t.SORTING_TYPES=p.SortingType,t.TAB_IDS=n.TABS,t.toTitleCase=function(t){return a.toTitleCase(t)},t.setSettingsFor=function(e,r,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){};P(e,r).then((function(r){t.settingsFor=e,t.settings=r,""===e||"application/ld+json"===n||"application/x-ld+ndjson"===n||e.endsWith("jsonld")||e.endsWith("zip")||e.endsWith("gz")||"directory"===t.settings.type?t.settings.hasContextLink=!0:t.settings.hasContextLink=!1;var s=_.cloneDeep(t.settings),c={templateUrl:"js/angular/import/templates/settingsModal.html",controller:"SettingsModalController",windowClass:"import-settings-modal",resolve:{dialogModel:function(){return{operation:i,settings:_.cloneDeep(t.settings),hasParserSettings:t.isLocalLocation,defaultSettings:s,isMultiple:!e,activeTab:t.activeTabId}}},size:"lg"};S.isActive()&&(c.backdrop="static",c.keyboard=!1),l.open(c).result.then((function(e){if(t.currentFiles&&e.action===o.SettingsModalActions.UPLOAD_AND_IMPORT){var r=Object(u.filesToImportResource)(t.currentFiles,f.ImportResourceStatus.UPLOADING);F.updateResourcesForUpload(r)}t.settings=e.settings,""===t.settingsFor?t.importSelected():t.importFile(t.settingsFor,!0)}),(function(e){if(t.settings=e.settings,e.action===o.SettingsModalActions.CANCEL&&(t.currentFiles=[],i===v.UPLOAD&&(t.files=[])),t.currentFiles&&e.action===o.SettingsModalActions.UPLOAD_ONLY){var r=Object(u.filesToImportResource)(t.currentFiles,f.ImportResourceStatus.UPLOADING);F.updateResourcesForUpload(r)}a&&a()}))}))},t.updateImport=function(e,r,n){P(e,r).then((function(r){t.settingsFor=e,t.settings=r,t.importFile(e,n)}))},t.importSelected=function(e){var r=new Set([].concat(m(O()),m(x()))),n=Array.from(r),o=function(){var r=n.shift();r&&P(r).then((function(n){e&&(t.settings=n),t.importFile(r,!0,o)}))};o()},t.isLocalLocation=function(){var t=s.getActiveLocation();return t&&t.local},t.updateList=function(e){t.canWriteActiveRepo()&&t.updateListHttp(e)},t.onRepositoryChange=function(){t.setRestricted(),t.isRestricted||(t.updateList(!0),E())},t.onImport=function(e){t.setSettingsFor(e.importResource.name,!1,e.importResource.format,v.IMPORT)},t.onStopImport=function(r){var o=r.importResource;(t.activeTabId===n.TABS.USER?R.stopUserDataImport:R.stopServerImport)(s.getActiveRepository(),{name:o.name,type:o.type}).success((function(){t.updateList()})).error((function(t){e.warning(b.instant("import.error.could.not.stop",{data:getError(t)}))}))},t.onRemove=function(t){var e=t.map((function(t){return t.name}));A(e)},t.onReset=function(t){D(t,!1)},t.importAll=function(e,r){if(r)t.importSelected(e,r);else{var n="";1===e.length&&(n=e[0].importResource.name),t.setSettingsFor(n,r,void 0,v.BATCH_IMPORT)}},t.onEditResource=function(e){e.importResource.isText()&&t.openTextSnippetDialog(e.importResource)};var E=function(){return w=void 0,t.canWriteActiveRepo()?R.getDefaultSettings(s.getActiveRepository()).success((function(t){return w=t})).error((function(t){e.warning(b.instant("import.error.default.settings",{data:getError(t)}))})):Promise.resolve(w)},x=function(){return F.getSelectedFilesNames()},O=function(){return t.currentFiles.filter((function(t){return t.name})).map((function(t){return t.name}))},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e="<br/>".concat(t.join("<br/>")),r=Object(c.decodeHTML)(b.instant("import.remove.confirm.msg",{name:e}));I.openConfirmation(b.instant("common.confirm"),r,(function(){D(t,!0)}))},P=function(e,r){return r||_.isEmpty(e)||_.isEmpty(t.savedSettings[e])?(w?Promise.resolve(angular.copy(w)):E().then((function(){return angular.copy(w)}))).then((function(t){return t})):Promise.resolve(t.savedSettings[e])};t.updateListHttp=function(r){if(!s.getActiveRepository())return Promise.resolve();var o=t.activeTabId===n.TABS.USER?R.getUploadedFiles:R.getServerFiles,i=t.activeTabId;return o(s.getActiveRepository()).success((function(e){i===F.getActiveTabId()&&(F.updateImportedResources(Object(u.toImportResource)(e)),0===t.files.length||r?(t.files=e,F.updateFiles(t.files),t.files.forEach((function(e){e.type||(e.type=t.defaultType)}))):t.files.forEach((function(r){var n=_.find(e,_.matches({name:r.name}));r.status&&n&&_.assign(r,n),r.type||(r.type=t.defaultType)})),r&&n.TABS.USER===t.activeTabId&&(t.files=_.filter(t.files,(function(t){return void 0!==t.status})),F.updateFiles(t.files)),t.savedSettings=_.mapKeys(_.filter(t.files,"parserSettings"),"name"))})).error((function(t){e.warning(b.instant("import.error.could.not.get.files",{data:getError(t)}))}))};var D=function(r,o){!r||r.length<1||(t.activeTabId===n.TABS.USER?R.resetUserDataStatus:R.resetServerFileStatus)(s.getActiveRepository(),r,o).success((function(){t.updateList(!0)})).error((function(t){e.warning(b.instant("import.error.could.not.clear",{data:getError(t)}))}))},j=function(){T.forEach((function(t){return t()}))},L=function(e){t.activeTabId=e,F.updateImportedResources([]),F.updateResourcesForUpload([]),F.updateShowLoader(!0),t.updateListHttp(!0).finally((function(){return F.updateShowLoader(!1)}))};t.importViewControllerInit=function(){T.push(t.$on("repositoryIsSet",t.onRepositoryChange)),T.push(t.$on("$destroy",(function(){return r.cancel(U)}))),T.push(F.onActiveTabIdUpdated((function(t){return L(t)}))),t.$on("$destroy",j),h.getInfo().success((function(e){t.appData={},t.appData.properties={};for(var r=0;r<e.length;r++)t.appData.properties[e[r].key]={source:e[r].source,value:e[r].value};t.maxUploadFileSizeBytes=t.appData.properties["graphdb.workbench.maxUploadSize"].value})).error((function(t){var r=getError(t);e.error(r,b.instant("common.error"))})),E(),U=r((function(){t.updating||t.updateList(!1)}),4e3),L(F.getActiveTabId())}}]),g.controller("ImportCtrl",["$scope","toastr","$controller","$translate","$repositories","ImportRestService","ImportContextService",function(t,e,r,o,i,a,s){t.columnKeys={name:"import.import_resource_tree.header.name",size:"import.import_resource_tree.header.size",modified:"import.import_resource_tree.header.modified",imported:"import.import_resource_tree.header.imported",context:"import.import_resource_tree.header.context"},angular.extend(this,r("ImportViewCtrl",{$scope:t})),t.defaultType="server",t.tabId="#import-server",t.importSelected=function(t){u(s.getSelectedFilesNames(),t)},t.importFile=function(t){u([t])};var u=function(r,n){t.canWriteActiveRepo()&&a.importServerFiles(i.getActiveRepository(),{importSettings:n?null:t.settings,fileNames:r}).success((function(){t.updateList(),t.fileChecked={}})).error((function(t){e.error(o.instant("import.could.not.send.file",{data:getError(t)}))}))};n.TABS.SERVER===s.getActiveTabId()&&t.importViewControllerInit()}]),g.controller("UploadCtrl",["$scope","toastr","$controller","$uibModal","$translate","$repositories","ImportRestService","UploadRestService","ModalService","ImportContextService","EventEmitterService","$filter",function(t,e,r,o,i,a,u,c,p,d,g,S){var I=new l.FilePrefixRegistry,R=[];t.columnKeys={name:"import.import_resource_tree.header.name",size:"import.import_resource_tree.header.size",modified:"import.import_resource_tree.header.uploaded",imported:"import.import_resource_tree.header.imported",context:"import.import_resource_tree.header.context"},angular.extend(this,r("ImportViewCtrl",{$scope:t})),t.defaultType=y,t.tabId="#import-user",t.currentFiles=[];var F=!1;t.pastedDataIdx=1,t.fileSelected=function(e,r,n,o,i){var a={files:n,cancel:!1};g.emit("filesForUploadSelected",a,(function(e){if(!e.cancel){var r=i||[];T(r);var o=r.map((function(t){return t.name})),a=n||[];a=a.filter((function(t){return!o.includes(t.name)})),O(a);var s=[],u=[];a.forEach((function(e){t.files.some((function(t){return t.name===e.name}))?s.push(e):u.push(e)})),s.length>0?A(s,u):(t.currentFiles=m(a),F=!0,P())}}))},t.importFile=function(r,n,o){var a=t.files.find((function(t){return t.name===r}));a?a.type===b?U(a,n,o):a.type===h?E(a,n,o):x(a,n,o):e.warning(i.instant("import.no.such.file",{name:r}))},t.openTextSnippetDialog=function(e){e&&e.data,o.open({templateUrl:"js/angular/import/templates/textSnippet.html",controller:"ImportTextSnippetController",resolve:{text:function(){return e?e.data:""},format:function(){return e?e.format:"text/turtle"}}}).result.then((function(r){e?(e.data===r.text&&e.format===r.format||e.status===f.ImportResourceStatus.NONE||(e.status=f.ImportResourceStatus.NONE,e.message=i.instant("import.text.snippet.not.imported")),e.data=r.text,e.format=r.format,w(e)):(e={type:"text",name:"Text snippet "+s.DateUtils.formatCurrentDateTime(),format:r.format,data:r.text},t.files.unshift(e),t.updateImport(e.name,!1,!1)),r.startImport&&t.setSettingsFor(e.name,!1,e.format,v.IMPORT_SNIPPET)}))},t.rdfDataFromURL=function(){o.open({templateUrl:"js/angular/import/templates/urlImport.html",controller:"ImportUrlController",scope:t}).result.then((function(e){var r=_.find(t.files,{type:"url",name:e.url});r?r.format=e.format:t.files.unshift({type:"url",name:e.url,format:e.format,data:e.url}),t.updateImport(e.url,!0,!1),e.startImport&&t.setSettingsFor(e.url,!0,e.format,v.IMPORT_URL)}))};var T=function(t){t.length>0&&t.forEach((function(t){e.warning(i.instant("import.large.file",{name:t.name,size:S("bytes")(t.size)}))}))},U=function(r,n,o){t.settings.name=r.name,t.settings.type=r.type,t.settings.data=r.data,t.settings.format=r.format,r.status=f.ImportResourceStatus.PENDING,(n?u.importTextSnippet:u.updateTextSnippet)(a.getActiveRepository(),t.settings).success((function(){t.updateList()})).error((function(t){e.error(i.instant("import.could.not.send.data",{data:getError(t)})),r.status=f.ImportResourceStatus.ERROR,r.message=getError(t)})).finally(o||function(){})},w=function(r){t.updating=!0,u.updateTextSnippet(a.getActiveRepository(),r).success((function(t){})).error((function(t){e.error(i.instant("import.could.not.update.text",{data:getError(t)}))})).finally((function(){t.updating=!1}))},E=function(r,n,o){t.settings.name=r.name,t.settings.type=r.type,t.settings.data=r.data,t.settings.format=r.format,r.status=f.ImportResourceStatus.PENDING,(n?u.importFromUrl:u.updateFromUrl)(a.getActiveRepository(),t.settings).success((function(){t.updateList()})).error((function(t){e.error(i.instant("import.could.not.send.url",{data:getError(t)}))})).finally(o||function(){})},x=function(r,n,o){t.settings.name=r.name;var s=c.createUploadPayload(r,t.settings);(n?c.uploadUserDataFile:c.updateUserDataFile)(a.getActiveRepository(),r,s).progress((function(t){var e=parseInt(100*t.loaded/t.total)||0,n=i.instant("import.file.upload.progress",{progress:e}),o=d.getResourceForUpload(r.name);o&&o.status!==f.ImportResourceStatus.UPLOAD_ERROR&&(o.status=e>=100?f.ImportResourceStatus.UPLOADED:f.ImportResourceStatus.UPLOADING,o.message=n,d.updateResourceForUpload(o))})).success((function(e){var n=d.getResourceForUpload(r.name);n&&n.status!==f.ImportResourceStatus.UPLOAD_ERROR&&(n.status=f.ImportResourceStatus.UPLOADED,n.message=void 0,d.updateResourceForUpload(n)),t.updateList()})).error((function(t){var n="";n=t?i.instant("import.could.not.upload.file",{data:n}):i.instant("import.upload.file.failure"),e.error(n),r.status=f.ImportResourceStatus.ERROR,r.message=n;var o=d.getResourceForUpload(r.name);o&&o.status!==f.ImportResourceStatus.UPLOADED&&(o.status=f.ImportResourceStatus.UPLOAD_ERROR,o.message=n,d.updateResourceForUpload(o))})).finally((function(){t.currentFiles=t.currentFiles.filter((function(t){return t.name!==r.name})),o()}))},O=function(t){t.forEach((function(r){if("bz2"===r.name.substr(r.name.lastIndexOf(".")+1)){var n=t.indexOf(r);n>-1&&t.splice(n,1),e.error(i.instant("import.could.not.upload",{name:r.name}))}}))},A=function(e,r){var n=e.map((function(t){return t.name})).join("<br/>");o.open({templateUrl:"js/angular/import/templates/file-override-confirmation.html",controller:"FileOverrideConfirmationController",windowClass:"confirm-duplicate-files-dialog",resolve:{duplicatedFiles:function(){return n}}}).result.then((function(n){if(n.overwrite){var o;if(t.currentFiles.length)t.currentFiles=[].concat(m(e),m(r));else(o=t.currentFiles).push.apply(o,m(e).concat(m(r)))}else{var i=I.prefixDuplicates(e);t.currentFiles=[].concat(m(t.currentFiles),m(i),m(r))}F=!0,P()}))},P=function(){if(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"),F&&t.currentFiles.length>0){D(),t.currentFiles.forEach((function(e){t.fileChecked[e.name]=!0}));var e="";1===t.currentFiles.length&&(e=t.currentFiles[0].name),t.setSettingsFor(e,!1,void 0,v.UPLOAD,(function(){t.currentFiles.forEach((function(e){t.updateImport(e.name,!1,!1)}))}))}},D=function(){Object.keys(t.fileChecked).forEach((function(e){t.fileChecked[e]=!1}))};t.$on("$destroy",(function(){R.forEach((function(t){return t()}))}));n.TABS.USER===d.getActiveTabId()&&(t.importViewControllerInit(),R.push(d.onFilesUpdated((function(t){I.buildPrefixesRegistry(t)}))))}])},317:function(t,e){angular.module("graphdb.framework.rest.import.service",[]).factory("ImportRestService",n),n.$inject=["$http"];var r="rest/repositories";function n(t){return{getDefaultSettings:function(e){return t.get("".concat(r,"/").concat(e,"/import/settings/default"))},getUploadedFiles:function(e){return t.get("".concat(r,"/").concat(e,"/import/upload"))},getServerFiles:function(e){return t.get("".concat(r,"/").concat(e,"/import/server"))},importServerFiles:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/server"),n)},importTextSnippet:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/text"),n)},updateTextSnippet:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/update/text"),n)},importFromUrl:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/url"),n)},updateFromUrl:function(e,n){return t.post("".concat(r,"/").concat(e,"/import/upload/update/url"),n)},stopServerImport:function(e,n){return t.delete("".concat(r,"/").concat(e,"/import/server"),{params:n})},stopUserDataImport:function(e,n){return t.delete("".concat(r,"/").concat(e,"/import/upload"),{params:n})},resetServerFileStatus:function(e,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t({method:"DELETE",url:"".concat(r,"/").concat(e,"/import/server/status"),params:{remove:o},data:n,headers:{"Content-type":"application/json;charset=utf-8"}})},resetUserDataStatus:function(e,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t({method:"DELETE",url:"".concat(r,"/").concat(e,"/import/upload/status"),params:{remove:o},data:n,headers:{"Content-type":"application/json;charset=utf-8"}})}}}},318:function(t,e){angular.module("graphdb.framework.rest.upload.service",[]).factory("UploadRestService",r),r.$inject=["$http","Upload","$translate"];function r(t,e,r){return{createUploadPayload:function(t,r){var n;n=t.file?{file:t.file,importSettings:e.jsonBlob(r)}:{importSettings:e.jsonBlob(r)};return n},uploadUserDataFile:function(t,r,n){return e.upload({url:"".concat("rest/repositories","/").concat(t,"/import/upload/file"),data:n})},updateUserDataFile:function(t,r,n){return e.upload({url:"".concat("rest/repositories","/").concat(t,"/import/upload/update/file"),data:n})}}}},319:function(t,e,r){"use strict";r.r(e);var n=r(137);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,r){return(e=s(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function u(t,e,r){var o;t.isHelpVisible=!1,t.fileSizeLimitInfoTemplateUrl="js/angular/import/templates/fileSizeLimitInfo.html";var i=function(){if(o.isPristine(t.activeTabId)){var e=r.getResources();t.isHelpVisible=!e||0===e.length}else t.isHelpVisible=o.isHelpVisible(t.activeTabId)};t.openTab=function(t){r.updateActiveTabId(t)},t.toggleHelp=function(){o.setIsHelpVisible(t.activeTabId,!t.isHelpVisible),i()};var a=[];a.push(r.onActiveTabIdUpdated((function(r){t.activeTabId=r,e.hash(t.activeTabId),i()}))),a.push(r.onResourcesUpdated(i));t.$on("$destroy",(function(){return a.forEach((function(t){return t()}))})),function(){o=new c;var r=e.hash()||n.TABS.USER;t.openTab(r),i()}()}angular.module("graphdb.framework.impex.import.controllers.tab",[]).controller("TabController",u),u.$inject=["$scope","$location","ImportContextService"];var c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._helpVisibility=i(i({},n.TABS.USER,{isHelpVisible:void 0}),n.TABS.SERVER,{isHelpVisible:void 0})},(e=[{key:"isPristine",value:function(t){return void 0===this._helpVisibility[t].isHelpVisible}},{key:"setIsHelpVisible",value:function(t,e){this._helpVisibility[t].isHelpVisible=e}},{key:"isHelpVisible",value:function(t){return this._helpVisibility[t]&&this._helpVisibility[t].isHelpVisible}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},320:function(t,e,r){"use strict";r.r(e),r.d(e,"SettingsModalActions",(function(){return i}));var n=r(137),o=r(316);angular.module("graphdb.framework.impex.import.controllers.settings-modal",[]).controller("SettingsModalController",a);var i={UPLOAD_ONLY:"upload_only",UPLOAD_AND_IMPORT:"upload_and_import",CANCEL:"cancel",CANCEL_IMPORT:"cancel_import"};function a(t,e,r,a,s,u){t.settings=u.settings,t.hasParserSettings=u.hasParserSettings,t.isMultiple=u.isMultiple,t.enableReplace=!(!t.settings.replaceGraphs||!t.settings.replaceGraphs.length),t.showAdvancedSettings=!1,t.activeTab=u.activeTab,t.userTabId=n.TABS.USER,t.isUploadOperation=u.operation===o.Operation.UPLOAD,t.hasError=function(t,e){return _.find(t,(function(t){return e===t.$name}))},t.ok=function(){t.settingsForm.replaceGraph.$setValidity("replaceGraph",!0),t.settingsForm.$valid&&(l(),e.close(c(i.UPLOAD_AND_IMPORT)))},t.cancel=function(){l(),e.dismiss(c(i.CANCEL))},t.onlyUpload=function(){l(),e.dismiss(c(i.UPLOAD_ONLY))},t.cancelImport=function(){l(),e.dismiss(c(i.CANCEL_IMPORT))},t.close=function(){l(),e.dismiss(c(i.CANCEL))},t.reset=function(){t.settings=_.cloneDeep(u.defaultSettings),t.target="data"},t.addReplaceGraph=function(e){var n=!0;"default"!==e&&(n=a.isValidIri(e,e.toString())),t.settingsForm.replaceGraph.$setTouched(),t.settingsForm.replaceGraph.$setValidity("replaceGraph",n),t.settingsForm.replaceGraph.$valid&&(t.settings.replaceGraphs=t.settings.replaceGraphs||[],-1===_.indexOf(t.settings.replaceGraphs,e)?(t.replaceGraph="",t.settings.replaceGraphs.push(e)):r.warning(s.instant("import.graph.already.in.list")))},t.checkEnterReplaceGraph=function(e,r){13===e.keyCode&&(e.preventDefault(),t.addReplaceGraph(r))},t.switchParserSettings=function(){t.showAdvancedSettings=!t.showAdvancedSettings};var c=function(e){return{settings:t.settings,action:e}},l=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.settings.context?"default"===t.settings.context?(t.target="default",t.settings.context=""):t.target="named":t.target="data"}a.$inject=["$scope","$uibModalInstance","toastr","UriUtils","$translate","dialogModel"]},321:function(t,e){function r(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})}}angular.module("graphdb.framework.impex.import.controllers.import-url",[]).controller("ImportUrlController",r),r.$inject=["$scope","$uibModalInstance","toastr"]},322:function(t,e){function r(t,e,r,n){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=r,t.importFormat=t.importFormats.find((function(t){return t.type===n})),t.startImport=!0,t.sizeLimit=1e5,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})}}angular.module("graphdb.framework.impex.import.controllers.import-text-snippet",[]).controller("ImportTextSnippetController",r),r.$inject=["$scope","$uibModalInstance","text","format"]},323:function(t,e,r){"use strict";r.r(e);var n=r(1);function o(t,e,r,o,i){t.message=o.trustAsHtml(Object(n.decodeHTML)(r.instant("import.user_data.duplicates_confirmation.message",{duplicatedFiles:i}))),t.cancel=function(){e.dismiss()},t.keepBoth=function(){e.close({overwrite:!1})},t.overwrite=function(){e.close({overwrite:!0})}}angular.module("graphdb.framework.impex.import.controllers.file-override-confirmation",[]).controller("FileOverrideConfirmationController",o),o.$inject=["$scope","$uibModalInstance","$translate","$sce","duplicatedFiles"]},324:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e),r.d(e,"FILE_FORMATS",(function(){return u})),r.d(e,"FileFormats",(function(){return c}));var u=["ttl","ttls","rdf","rj","n3","nt","nq","trig","trigs","trix","brf","owl","jsonld","xml","rdfs","ndjsonld","ndjson","jsonl"],c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},r=[{key:"getGZS",value:function(){return u.map((function(t){return".".concat(t,".gz")}))}},{key:"getBasics",value:function(){return u.map((function(t){return".".concat(t)}))}},{key:"getFileFormatsExtended",value:function(){return[].concat(o(this.getGZS()),o(this.getBasics()),[".zip"]).join(", ")}},{key:"getFileFormatsHuman",value:function(){return o(this.getBasics()).join(" ")}},{key:"getTextFileFormatsHuman",value:function(){return this.getBasics().filter((function(t){return".brf"!==t})).join(" ")}}],(e=null)&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},325:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}r.r(e),r.d(e,"DateUtils",(function(){return a}));var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},r=[{key:"formatCurrentDateTime",value:function(){var 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")}}],(e=null)&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()},326:function(t,e,r){"use strict";r.r(e),r.d(e,"toImportResource",(function(){return i})),r.d(e,"fileToImportResource",(function(){return a})),r.d(e,"filesToImportResource",(function(){return s}));var n=r(224),o=r(28),i=function(t){var e=Object(o.md5HashGenerator)();return t.map((function(t){return new n.ImportResource(t,e)}))},a=function(t){var e=Object(o.md5HashGenerator)();return new n.ImportResource({name:t.name,size:t.size,type:"file",modifiedOn:t.lastModified,file:t},e)},s=function(t,e){var r=Object(o.md5HashGenerator)();return t.map((function(t){return new n.ImportResource({name:t.name,size:t.size,type:"file",modifiedOn:void 0,file:t,status:e},r)}))}},327:function(t,e,r){"use strict";r.r(e),r.d(e,"FilePrefixRegistry",(function(){return s}));var n=r(32);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filesPrefixRegistry={}},(e=[{key:"buildPrefixesRegistry",value:function(t){var e=this;t.filter((function(t){return"file"===t.type})).forEach((function(t){var r=n.FileUtils.getFilenameAndExtension(t.name).filename,o=r.lastIndexOf("-"),i=o<0?0:r.substring(o+1),a=r.substring(0,o);if(o<0?(i=0,a=r):(i=r.substring(o+1),a=r.substring(0,o)),i){i=parseInt(i);var s=e.filesPrefixRegistry[a]||0;e.filesPrefixRegistry[a]=s<i?i:s}else e.filesPrefixRegistry[a]=0}))}},{key:"prefixDuplicates",value:function(t){var e=this;return t.map((function(t){var r=n.FileUtils.getFilenameAndExtension(t.name),o=r.filename,i=r.extension,a="".concat(o,"-").concat(e.getIndexForFile(o),".").concat(i);return new File([t],a,{type:t.type,lastModified:t.lastModified})}))}},{key:"getIndexForFile",value:function(t){var e=this.filesPrefixRegistry[t];return void 0!==e?e++:e=0,this.filesPrefixRegistry[t]=e,e}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[145,366],{236:function(e,t,n){"use strict";n.r(t);n(10),n(54);function r(e,t,n,r,i){e.supportsStatistics=!0,e.settings={statistics:!1},e.getSettings=function(){e.loader=!0,r.getStatistics().then((function(t){e.settings.statistics="true"===t.data,e.supportsStatistics=!0}),(function(n){if(404===n.status)e.supportsStatistics=!1;else{var r=getError(n.data);t.error(r,i.instant("error.getting.settings"))}}))},e.getSettings(),e.setSettings=function(){e.loader=!0,r.toggleStatistics(e.settings.statistics).then((function(){n.close(),t.success(i.instant("saving.settings.success"))}),(function(e){var n=getError(e.data);t.error(n,i.instant("saving.settings.error"))}))},e.submitForm=function(){e.setSettings()},e.cancel=function(){n.dismiss("cancel")}}function i(e,t,n,r,i,s,o,c){e.loadingLicense=function(){return n.loadingLicense()},n.checkLicenseStatus(),e.removeLicense=function(){s.openSimpleModal({title:o.instant("confirm.operation"),message:o.instant("remove.license.warning.msg"),warning:!0}).result.then((function(){t.unregisterLicense().success((function(){n.checkLicenseStatus().then((function(){return c.applyTrackingConsent()})).catch((function(e){var t=getError(e.data,e.status);r.error(t,o.instant("common.error"))}))}))}))}}function s(e,t,n,r,i,s,o,c){e.$on("securityInit",(function(){o.isAdmin()||n.path("/license")})),e.sendLicenseToValidateAndActivate=l;var a=$(".license-textarea");function l(e){t.sendLicenseToValidate(e).success((function(n){n.present?(a.val(e),function(e,n){r.open({templateUrl:"js/angular/settings/modal/validate-license.html",controller:"ValidateLicenseModalCtrl",size:"lg",resolve:{license:function(){return e}}}).result.then((function(){!function(e){e||(e=a.val());if(e){var n=atob(e.replace(/\s/g,""));t.registerLicense(n).success((function(){s.history.back()})).error((function(e){i.error(e,c.instant("license.register.error"))}))}else i.error(c.instant("no.license.code.error"))}(n)}))}(n,e)):(a.val(""),i.error(n.message))})).error((function(){i.error(c.instant("invalid.license"))}))}e.$watch("currentFile",(function(){if(e.currentFile){var n=e.currentFile;t.extractFromLicenseFile(n).success((function(e){l(e)})).error((function(){i.error(c.instant("could.not.upload.file.error"))}))}})),e.getBackToPreviousPage=function(){s.history.back()}}function o(e,t,n){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")},e.license=n}function c(e){e.loader=!0,e.setLoader=function(t){e.loader=t}}angular.module("graphdb.framework.settings.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.jwtauth","toastr"]).controller("ActiveLocationSettingsCtrl",r).controller("ValidateLicenseModalCtrl",o).controller("LicenseCtrl",i).controller("RegisterLicenseCtrl",s).controller("LoaderSamplesCtrl",c),r.$inject=["$scope","toastr","$uibModalInstance","LicenseRestService","$translate"],i.$inject=["$scope","LicenseRestService","$licenseService","toastr","$rootScope","ModalService","$translate","TrackingService"],s.$inject=["$scope","LicenseRestService","$location","$uibModal","toastr","$window","$jwtAuth","$translate"],o.$inject=["$scope","$uibModalInstance","license"],c.$inject=["$scope"]},362:function(e,t,n){"use strict";n.r(t);n(10),n(52),n(35),n(236),n(65),n(66),n(54),n(98),n(99);function r(e){e.interceptors.push("$unauthorizedInterceptor"),e.interceptors.push("$authenticationInterceptor")}function i(e,t,n){e.$on("$locationChangeStart",(function(){n.isLicenseHardcoded()&&"/license/register"===t.url()&&t.path("license")}))}angular.module("graphdb.framework.settings",["toastr","ui.bootstrap","graphdb.framework.rest.license.service","graphdb.framework.settings.controllers","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.interceptors.authentication","graphdb.framework.core.services.jwtauth"]).config(r).run(i),r.$inject=["$httpProvider","$routeProvider"],i.$inject=["$rootScope","$location","$licenseService"]}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[17,65,66,88,172,247],{121:function(t,n,e){"use strict";e.r(n);var o=e(109);function i(t){return{restrict:"E",scope:{field:"=",form:"=",translationKeyPrefix:"="},templateUrl:"js/angular/core/directives/dynamic-form/templates/form-field-template.html",link:function(t){t.FIELD_TYPE=o.FIELD_TYPE}}}angular.module("graphdb.framework.core.directives.dynamic-form-field",[]).directive("dynamicFormField",i),i.$inject=[]},124:function(t,n,e){"use strict";e.r(n),e.d(n,"GraphqlEventName",(function(){return a}));var o=e(24),i=e(157);e(119);function r(t){var n=void 0,e=void 0,r=void 0,s=function(){return n},l=function(){return r},d=function(n,e){t.emitSync(n,Object(o.cloneDeep)(e))},c=function(n,e){return t.subscribeSync(n,(function(t){return e(t)}))};return{resetContext:function(){e=void 0,r=void 0},updateSourceRepository:function(t){n=t,d(a.SOURCE_REPOSITORY_UPDATED,s())},getSourceRepository:s,setSelectedEndpoint:function(t){e=t},getSelectedEndpoint:function(){return Object(o.cloneDeep)(e)},getNewEndpoint:l,createEndpointConfig:function(){r=new i.GraphqlEndpointConfiguration,t.emitSync(a.ENDPOINT_CONFIG_CREATED,r)},onEndpointConfigCreated:function(t){return r&&angular.isFunction(t)&&t(r),c(a.ENDPOINT_CONFIG_CREATED,(function(n){return t(n)}))},startCreateEndpointWizard:function(){d(a.START_CREATE_ENDPOINT_WIZARD,null)},generateEndpoint:function(){d(a.GENERATE_ENDPOINT,l())},endpointGenerated:function(t){d(a.ENDPOINT_GENERATED,t)},exploreEndpointInPlayground:function(t){d(a.EXPLORE_ENDPOINT_IN_PLAYGROUND,t)},openEndpointGenerationReport:function(t){d(a.OPEN_ENDPOINT_GENERATION_REPORT,t)},deleteEndpointGenerationReport:function(t){d(a.DELETE_ENDPOINT_REPORT,t)},cancelEndpointCreation:function(){d(a.CANCEL_ENDPOINT_CREATION,{})},finishGenerationWorkflow:function(){d(a.FINISH_GENERATION_WORKFLOW,{})},nextEndpointCreationStep:function(){d(a.NEXT_ENDPOINT_CREATION_STEP,{})},previousEndpointCreationStep:function(){d(a.PREVIOUS_ENDPOINT_CREATION_STEP,{})},subscribe:c}}angular.module("graphdb.framework.graphql.services.graphql-context",[]).factory("GraphqlContextService",r),r.$inject=["EventEmitterService","GraphqlService"];var a={SOURCE_REPOSITORY_UPDATED:"sourceRepositoryUpdated",START_CREATE_ENDPOINT_WIZARD:"startCreateEndpointWizard",ENDPOINT_CONFIG_CREATED:"updateConfigCreated",GENERATE_ENDPOINT:"generateEndpoint",ENDPOINT_GENERATED:"endpointGenerated",CANCEL_ENDPOINT_CREATION:"cancelEndpointCreation",FINISH_GENERATION_WORKFLOW:"finishGenerationWorkflow",EXPLORE_ENDPOINT_IN_PLAYGROUND:"exploreEndpointInPlayground",OPEN_ENDPOINT_GENERATION_REPORT:"openEndpointGenerationReport",DELETE_ENDPOINT_REPORT:"deleteEndpointReport",NEXT_ENDPOINT_CREATION_STEP:"nextEndpointCreationStep",PREVIOUS_ENDPOINT_CREATION_STEP:"previousEndpointCreationStep"}},130:function(t,n,e){"use strict";e.r(n);e(121);var o=e(109);function i(){return{restrict:"E",scope:{formModel:"=",showAllFields:"=?",onValidityChange:"&?",formCtrl:"=?",translationKeyPrefix:"@?"},templateUrl:"js/angular/core/directives/dynamic-form/templates/dynamic-form.html",link:function(t,n){t.FIELD_TYPE=o.FIELD_TYPE,t.formCtrl=void 0,t.showAllFields=t.showAllFields||!1;!function(){var e=n.find("form").controller("form");if(e){t.formCtrl=e;var o=e.$setValidity;t.formCtrl.$setValidity=function(n,i,r){o.call(e,n,i,r),t.onValidityChange&&t.onValidityChange({valid:e.$valid})}}else console.error("Form controller not found!")}()}}}angular.module("graphdb.framework.core.directives.dynamic-form",["graphdb.framework.core.directives.dynamic-form-field"]).directive("dynamicForm",i),i.$inject=[]},133:function(t,n){angular.module("graphdb.framework.core.directives.multiselect-dropdown",[]).directive("multiselectDropdown",["$translate",function(t){return{restrict:"E",require:"ngModel",scope:{options:"=",dropdownLabel:"=?"},templateUrl:"js/angular/core/directives/multiselect-dropdown/templates/multiselect-dropdown.html",link:function(n,e,o,i){n.isOpen=!1;var r=function(t){e[0].contains(t.target)||n.$apply((function(){n.isOpen=!1}))};n.toggleDropdown=function(){n.isOpen=!n.isOpen},n.toggleSelection=function(t){var e;t.selected=!t.selected,e=n.options.filter((function(t){return t.selected})),i.$setViewValue(e)},n.getSelectedText=function(){var e=n.options.filter((function(t){return t.selected}));return 0===e.length?n.dropdownLabel||t.instant("common.select"):e.map((function(t){return t.label})).join(", ")},i.$render=function(){angular.isArray(i.$viewValue)&&n.options.forEach((function(t){t.selected=i.$viewValue.some((function(n){return n.value===t.value}))}))},document.addEventListener("click",r),n.$on("$destroy",(function(){document.removeEventListener("click",r)}))}}}])},150:function(t,n,e){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return r(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=Array(n);e<n;e++)o[e]=t[e];return o}function a(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function s(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,c(o.key),o)}}function l(t,n,e){return n&&s(t.prototype,n),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(t,n,e){return(n=c(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c(t){var n=function(t,n){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==o(n)?n:n+""}e.r(n),e.d(n,"ImportStatus",(function(){return u})),e.d(n,"ImportStatusLabelKeys",(function(){return p})),e.d(n,"ImportStatusToViewMapping",(function(){return f})),e.d(n,"EndpointDefinitionFileList",(function(){return g})),e.d(n,"EndpointDefinitionFile",(function(){return m}));var u={PENDING:"PENDING",SUCCESS:"SUCCESS",FAIL:"FAIL",SKIP:"SKIP"},p=d(d(d(d({},u.PENDING,"graphql.endpoints_management.import_definition_modal.status.pending"),u.SUCCESS,"graphql.endpoints_management.import_definition_modal.status.completed"),u.FAIL,"graphql.endpoints_management.import_definition_modal.status.failed"),u.SKIP,"graphql.endpoints_management.import_definition_modal.status.not_allowed"),f=d(d(d(d({},u.PENDING,"tag-warning"),u.SUCCESS,"tag-success"),u.FAIL,"tag-danger"),u.SKIP,"tag-info"),g=function(){return l((function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,t),d(this,"_list",void 0),d(this,"_size",void 0),this._list=n,this._size=n.length}),[{key:"processWith",value:function(t){this.list.forEach(t)}},{key:"findDefinitionFileByName",value:function(t){return this.list.find((function(n){return n.file.name===t}))}},{key:"getFileNames",value:function(){return this.list.map((function(t){return t.file.name}))}},{key:"appendFiles",value:function(t){var n;(n=this.list).push.apply(n,i(t)),this._size=this.list.length}},{key:"removeFile",value:function(t){this.list=this.list.filter((function(n){return n.file!==t.file}))}},{key:"size",get:function(){return this._size},set:function(t){this._size=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t,this._size=t.length}}])}(),m=function(){return l((function t(n,e,o,i){a(this,t),d(this,"_list",void 0),d(this,"_file",void 0),d(this,"_filename",void 0),d(this,"_status",void 0),d(this,"_viewStatus",void 0),d(this,"_statusMessage",void 0),d(this,"_endpointId",void 0),d(this,"_report",void 0),this._file=n,this._status=e,this._viewStatus=f[e],this._statusMessage=o,this._list=i}),[{key:"file",get:function(){return this._file},set:function(t){this._file=t}},{key:"filename",get:function(){return this._filename},set:function(t){this._filename=t}},{key:"status",get:function(){return this._status},set:function(t){this._status=t,this._viewStatus=f[t]}},{key:"viewStatus",get:function(){return this._viewStatus},set:function(t){this._viewStatus=t}},{key:"statusMessage",get:function(){return this._statusMessage},set:function(t){this._statusMessage=t}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"report",get:function(){return this._report},set:function(t){this._report=t}},{key:"list",get:function(){return this._list},set:function(t){this._list=t}}])}()},221:function(t,n,e){"use strict";e.r(n),e.d(n,"fileToImportDefinitionsMapper",(function(){return s})),e.d(n,"fileToImportDefinitionMapper",(function(){return l})),e.d(n,"importEndpointDefinitionListMapper",(function(){return d}));var o=e(150),i=e(174);function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return a(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=Array(n);e<n;e++)o[e]=t[e];return o}var s=function(t,n){var e=t.map((function(t){return l(t,n)}));return new o.EndpointDefinitionFileList(e)},l=function(t,n){return new o.EndpointDefinitionFile(t,n,o.ImportStatusLabelKeys[n])},d=function(t,n,e){if(!t||!t.length)return new o.EndpointDefinitionFileList;var a=function(t){var r=t.id,s=t.filename,l=t.status.toUpperCase(),d=e.findDefinitionFileByName(s)||new o.EndpointDefinitionFile;if(d.endpointId=r,d.filename=s,d.status=l,d.statusMessage=o.ImportStatusLabelKeys[l],d.report=Object(i.importEndpointDefinitionReportMapper)(t,r,n),t.subFiles){var c=t.subFiles.map(a);d.list=new o.EndpointDefinitionFileList(c)}return d};return t.forEach(a),new o.EndpointDefinitionFileList(r(e.list))}},310:function(t,n,e){"use strict";e.r(n);e(126),e(130),e(133);function o(t,n,e,o,i,r){t.repositoryId=e.repositoryId,t.endpointConfiguration=e.endpointConfiguration,t.endpointConfigurationSettings=void 0,t.endpointConfigurationSettingsValid=!1,t.loadingEndpointConfigurationSettings=!1,t.savingEndpointSettings=!1,t.showAdvancedSettings=!1,t.ok=function(){a()},t.cancel=function(){n.dismiss("cancel")},t.handleValidityChange=function(n){t.endpointConfigurationSettingsValid=n},t.toggleAdvancedSettings=function(){t.showAdvancedSettings=!t.showAdvancedSettings};var a=function(){t.savingEndpointSettings=!0;var e=t.endpointConfiguration.toUpdateEndpointRequest(t.endpointConfigurationSettings);r.editEndpointConfiguration(t.repositoryId,t.endpointConfiguration.endpointId,e.getUpdateEndpointSettingsRequest()).then((function(){n.close(),i.success(o.instant("graphql.endpoints_management.endpoint_configuration_modal.messages.success_saving_configuration"))})).catch((function(t){i.error(getError(t),o.instant("graphql.endpoints_management.endpoint_configuration_modal.messages.error_saving_configuration"))})).finally((function(){t.savingEndpointSettings=!1}))};t.loadingEndpointConfigurationSettings=!0,r.getGraphqlEndpointConfigurationSettings(t.repositoryId,t.endpointConfiguration.endpointId).then((function(n){t.endpointConfigurationSettings=n})).catch((function(t){i.error(getError(t))})).finally((function(){t.loadingEndpointConfigurationSettings=!1}))}angular.module("graphdb.framework.graphql.controllers.graphql-endpoint-configuration-modal",["graphdb.framework.core.services.graphql-service","graphdb.framework.core.directives.dynamic-form","graphdb.framework.core.directives.multiselect-dropdown"]).controller("GraphqlEndpointConfigurationModalController",o),o.$inject=["$scope","$uibModalInstance","data","$translate","toastr","GraphqlService"]},311:function(t,n,e){"use strict";e.r(n);e(126);var o=e(150),i=e(221),r=e(113),a=e(156);function s(t,n,e,s,l,d,c,u){var p=[".zip",".yaml",".yml"];t.allowedFileTypesString=p.join(","),t.ImportStatus=o.ImportStatus,t.repositoryId=d.repositoryId,t.definitionFiles=new o.EndpointDefinitionFileList,t.progress=void 0,t.uploadFinished=!1,t.onFilesChange=function(n,e,r,a,s){var l=r||[],d=l.filter((function(t){var n="."+t.name.split(".").pop().toLowerCase();return!p.includes(n)}));if(d.length&&console.error("The following files have invalid extensions: ".concat(d.map((function(t){return t.name})).join(", "))),(l=l.filter((function(t){var n="."+t.name.split(".").pop().toLowerCase();return p.includes(n)})))&&l.length){t.progress=void 0;var c=new Set(t.definitionFiles.getFileNames()),u=l.filter((function(t){return!c.has(t.name)}));t.definitionFiles.appendFiles(Object(i.fileToImportDefinitionsMapper)(u,o.ImportStatus.PENDING).list)}},t.onImport=function(){t.uploadFinished=!1;var n=f();c.importEndpointDefinition(t.repositoryId,n).progress((function(n){t.uploadFinished||(t.progress=Math.min(100,parseInt(100*n.loaded/n.total)))})).success((function(n){t.progress=void 0,t.uploadFinished=!0,t.definitionFiles=Object(i.importEndpointDefinitionListMapper)(n,t.repositoryId,t.definitionFiles)})).error((function(n){t.progress=void 0,t.uploadFinished=!0,e.error(getError(n))}))},t.onRemoveFile=function(n){t.definitionFiles.removeFile(n),0===t.definitionFiles.size&&(t.progress=void 0)},t.onExploreEndpoint=function(t){var n=Object(r.resolvePlaygroundUrlWithEndpoint)(t);u.setSelectedEndpoint(new a.GraphqlEndpointInfo({endpointId:t})),window.open(n,"_blank","noopener,noreferrer")},t.onOpenReport=function(t){return s.open({templateUrl:"js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html",controller:"EndpointGenerationResultFailureModalController",windowClass:"endpoint-generation-failure-result-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:function(){return{endpointReport:t}}}}).result},t.close=function(){l.dismiss("cancel")};var f=function(){var n=new FormData;return t.definitionFiles.processWith((function(t){n.append("importFiles",t.file,t.file.name)})),n}}angular.module("graphdb.framework.graphql.controllers.import-endpoint-definition-modal",["ngFileUpload","graphdb.framework.core.services.graphql-service"]).controller("ImportEndpointDefinitionModalController",s),s.$inject=["$scope","$q","toastr","$uibModal","$uibModalInstance","data","GraphqlService","GraphqlContextService"]},375:function(t,n,e){"use strict";e.r(n);e(126);var o=e(124),i=(e(310),e(311),e(114)),r=e(113),a=e(636),s=e(156);function l(t,n,e,l,d,c,u,p,f,g,m){var E=[];t.hasEndpoints=!1,t.expandedRow=-1,t.loadingEndpointsInfo=!1,t.endpointsInfoList=void 0,t.filterTerm="",t.selectedDefaultEndpoint=void 0,t.operationInProgress=!1;var h=void 0,v=void 0;t.changingEndpointActiveState=!1,t.setEndpointAsDefault=function(n){var e;t.selectedDefaultEndpoint&&(e=t.selectedDefaultEndpoint,t.selectedDefaultEndpoint.default=!1),t.selectedDefaultEndpoint=n,n.default=!0,t.operationInProgress=!0;var o=n.toUpdateEndpointRequest(t.endpointConfigurationSettings);f.editEndpointConfiguration(l.getActiveRepository(),n.endpointId,o.getUpdateDefaultEndpointRequest()).then((function(n){u.success(p.instant("graphql.endpoints_management.table.actions.set_as_default.success",{endpointId:n.endpointId})),t.endpointsInfoList.updateEndpoint(n)})).catch((function(o){n.default=!0,e?(t.selectedDefaultEndpoint.default=!1,t.selectedDefaultEndpoint=e,t.selectedDefaultEndpoint.default=!0):t.selectedDefaultEndpoint=void 0,u.error(getError(o)),console.error("Error setting default endpoint",o)})).finally((function(){t.operationInProgress=!1}))},t.toggleRow=function(n,e){n.preventDefault(),t.expandedRow===e?t.expandedRow=-1:t.expandedRow=e},t.onExploreEndpoint=function(t){var e=Object(r.resolvePlaygroundUrlWithEndpoint)(t.endpointId);n.url(e)},t.onEndpointsFilter=function(n){t.filterTerm=n.toLowerCase(),t.endpointsInfoList.filter(n)},t.startCreateEndpointWizard=function(){g.startCreateEndpointWizard()},t.toggleEndpointActiveState=function(n){t.changingEndpointActiveState=!0;var e=!n.active,o=n.toUpdateEndpointRequest(t.endpointConfigurationSettings);f.editEndpointConfiguration(l.getActiveRepository(),n.endpointId,o.getUpdateEndpointActiveStateRequest()).then((function(n){var o=e?"activated":"deactivated";u.success(p.instant("graphql.endpoints_management.table.actions.toggle_active_state.".concat(o,".success"),{endpointId:n.endpointId})),t.endpointsInfoList.updateEndpoint(n)})).catch((function(t){n.active=!e,u.error(getError(t)),console.error("Error updating endpoint active state",t)})).finally((function(){t.changingEndpointActiveState=!1}))},t.importSchema=function(){return d.open({templateUrl:"js/angular/graphql/templates/modal/import-endpoint-definition-modal.html",controller:"ImportEndpointDefinitionModalController",windowClass:"import-endpoint-definition-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:function(){return{repositoryId:l.getActiveRepository()}}}}).result},t.onExportSchema=function(t){f.exportEndpointDefinition(l.getActiveRepository(),t.endpointId).then((function(t){var n=t.data,e=t.filename;Object(a.saveAs)(n,e)})).catch((function(t){u.error(getError(t)),console.error("Error exporting GraphQL endpoint definition",t)}))},t.onConfigureEndpoint=function(t){return d.open({templateUrl:"js/angular/graphql/templates/modal/endpoint-configuration-modal.html",controller:"GraphqlEndpointConfigurationModalController",windowClass:"graphql-endpoint-configuration-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:function(){return{repositoryId:l.getActiveRepository(),endpointConfiguration:t}}}}).result},t.onDeleteEndpoint=function(t){c.openConfirmationModal({title:p.instant("graphql.endpoints_management.table.actions.delete_endpoint.confirmation.title"),message:p.instant("graphql.endpoints_management.table.actions.delete_endpoint.confirmation.body",{name:t.endpointId}),confirmButtonKey:"common.confirm"},(function(){I(t)}))},t.onShowEndpointReport=function(t){f.getEndpointConfigurationReport(l.getActiveRepository(),t.endpointId).then((function(n){y(n.getReport(t.endpointId))})).catch((function(t){u.error(getError(t)),console.error("Error loading GraphQL endpoint configuration",t)}))};var y=function(t){return d.open({templateUrl:"js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html",controller:"EndpointGenerationResultFailureModalController",windowClass:"endpoint-generation-failure-result-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:function(){return{endpointReport:t}}}}).result},I=function(n){t.operationInProgress=!0,f.deleteEndpoint(l.getActiveRepository(),n.endpointId).then((function(){return u.success(p.instant("graphql.endpoints_management.table.actions.delete_endpoint.success",{name:n.endpointId})),t.operationInProgress=!1,S(!1)})).catch((function(t){u.error(getError(t)),console.error("Error deleting GraphQL endpoint",t)})).finally((function(){t.operationInProgress=!1}))},_=function(n){t.endpointsInfoList=n,t.endpointsInfoList&&t.endpointsInfoList.endpoints.length>0&&(t.hasEndpoints=!0,t.selectedDefaultEndpoint=t.endpointsInfoList.findDefaultEndpoint()||new s.GraphqlEndpointInfo)},S=function(n){return t.loadingEndpointsInfo=!0===n,f.getEndpointsInfo(l.getActiveRepository()).then(_).catch((function(t){u.error(getError(t)),console.error("Error loading GraphQL endpoints info",t)})).finally((function(){t.loadingEndpointsInfo=!1}))},w=function(){h&&(e.cancel(h),h=void 0),h=e((function(){v||t.$$destroyed||(v=f.getEndpointsInfo(l.getActiveRepository()).then(_).catch((function(t){u.error(getError(t)),console.error("Error loading GraphQL endpoints info",t)})).finally((function(){v&&(v=void 0)})))}),5e3)};E.push(g.subscribe(o.GraphqlEventName.START_CREATE_ENDPOINT_WIZARD,(function(){n.path(i.endpointUrl.CREATE_ENDPOINT)}))),E.push(g.subscribe(o.GraphqlEventName.DELETE_ENDPOINT_REPORT,(function(t){f.deleteEndpointGenerationReport(l.getActiveRepository(),t.endpointId).then((function(){return u.success(p.instant("graphql.endpoints_management.generation_failure_report_modal.actions.delete_report.success")),S(!1)})).catch((function(t){u.error(getError(t)),console.error("Error deleting endpoint generation report",t)}))}))),E.push(t.$watch(t.getActiveRepositoryObject,(function(t){t&&b()}))),t.$on("$destroy",(function(){h&&e.cancel(h),h=void 0,v=void 0,E.forEach((function(t){return t()}))}));var b=function(){S(!0).then((function(){w()}))}}angular.module("graphdb.framework.graphql.controllers.graphql-endpoint-management-view",["graphdb.framework.core.services.graphql-service","graphdb.framework.graphql.services.graphql-context","graphdb.framework.graphql.controllers.graphql-endpoint-configuration-modal","graphdb.framework.graphql.controllers.import-endpoint-definition-modal"]).controller("GraphqlEndpointManagementViewCtrl",l),l.$inject=["$scope","$location","$interval","$repositories","$uibModal","ModalService","toastr","$translate","GraphqlService","GraphqlContextService","AuthTokenService"]},635:function(t,n){(function(n){t.exports=n}).call(this,{})},636:function(t,n,e){var o,i=i||function(t){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var n=t.document,e=function(){return t.URL||t.webkitURL||t},o=n.createElementNS("http://www.w3.org/1999/xhtml","a"),i=t.webkitRequestFileSystem,r=t.requestFileSystem||i||t.mozRequestFileSystem,a=function(n){(t.setImmediate||t.setTimeout)((function(){throw n}),0)},s=0,l=function(n){var o=function(){"string"==typeof n?e().revokeObjectURL(n):n.remove()};t.chrome?o():setTimeout(o,500)},d=function(t,n,e){for(var o=(n=[].concat(n)).length;o--;){var i=t["on"+n[o]];if("function"==typeof i)try{i.call(t,e||t)}catch(t){a(t)}}},c=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},u=function(n,a){n=c(n);var u,p,f,g=this,m=n.type,E=!1,h=function(){d(g,"writestart progress write writeend".split(" "))},v=function(){(!E&&u||(u=e().createObjectURL(n)),p)?p.location.href=u:null==t.open(u,"_blank")&&"undefined"!=typeof safari&&(t.location.href=u);g.readyState=g.DONE,h(),l(u)},y=function(t){return function(){if(g.readyState!==g.DONE)return t.apply(this,arguments)}},I={create:!0,exclusive:!1};if(g.readyState=g.INIT,a||(a="download"),o)return u=e().createObjectURL(n),o.href=u,o.download=a,void setTimeout((function(){var t,n;t=o,n=new MouseEvent("click"),t.dispatchEvent(n),h(),l(u),g.readyState=g.DONE}));t.chrome&&m&&"application/octet-stream"!==m&&(f=n.slice||n.webkitSlice,n=f.call(n,0,n.size,"application/octet-stream"),E=!0),i&&"download"!==a&&(a+=".download"),("application/octet-stream"===m||i)&&(p=t),r?(s+=n.size,r(t.TEMPORARY,s,y((function(t){t.root.getDirectory("saved",I,y((function(t){var e=function(){t.getFile(a,I,y((function(t){t.createWriter(y((function(e){e.onwriteend=function(n){p.location.href=t.toURL(),g.readyState=g.DONE,d(g,"writeend",n),l(t)},e.onerror=function(){var t=e.error;t.code!==t.ABORT_ERR&&v()},"writestart progress write abort".split(" ").forEach((function(t){e["on"+t]=g["on"+t]})),e.write(n),g.abort=function(){e.abort(),g.readyState=g.DONE},g.readyState=g.WRITING})),v)})),v)};t.getFile(a,{create:!1},y((function(t){t.remove(),e()})),y((function(t){t.code===t.NOT_FOUND_ERR?e():v()})))})),v)})),v)):v()},p=u.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,n){return navigator.msSaveOrOpenBlob(c(t),n)}:(p.abort=function(){this.readyState=this.DONE,d(this,"abort")},p.readyState=p.INIT=0,p.WRITING=1,p.DONE=2,p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null,function(t,n){return new u(t,n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
|
|
2
|
+
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */t.exports?t.exports.saveAs=i:null!==e(642)&&null!=e(635)&&(void 0===(o=function(){return i}.apply(n,[]))||(t.exports=o))},642:function(t,n){t.exports=function(){throw new Error("define cannot be used indirect")}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[197],{313:function(n,t){function e(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,i,o,a,c=[],l=!0,u=!1;try{if(o=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(n){u=!0,i=n}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(n,t)||function(n,t){if(n){if("string"==typeof n)return r(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function i(n,t,r,i){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"="},link:function(o){o.endpointConfiguration=void 0,o.generationSettings=void 0,o.generationSettingsValid=!1,o.handleValidityChange=function(n){o.endpointConfigurationSettingsValid=n},o.next=function(){i.nextEndpointCreationStep()},o.back=function(){i.previousEndpointCreationStep()},o.cancel=function(){var e=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),r=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");n.openConfirmation(e,r,(function(){i.cancelEndpointCreation()}))};var a=[];o.$on("$destroy",(function(){a.forEach((function(n){return n()}))}));o.endpointConfiguration=i.getNewEndpoint(),o.endpointConfiguration.settings||(o.endpointConfiguration,o.loadingData=!0,Promise.all([r.getGraphqlGenerationSettings().catch((function(n){console.error("Error loading generation settings",n),toastr.error(getError(n))}))]).then((function(n){var t=e(n,1)[0];o.endpointConfiguration.settings=t})).finally((function(){o.loadingData=!1})))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",i),i.$inject=["ModalService","$translate","GraphqlService","GraphqlContextService"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[197],{313:function(n,t){function e(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,i,o,a,c=[],l=!0,u=!1;try{if(o=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(n){u=!0,i=n}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(n,t)||function(n,t){if(n){if("string"==typeof n)return r(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function i(n,t,r,i){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"="},link:function(o){o.endpointConfiguration=void 0,o.generationSettings=void 0,o.generationSettingsValid=!1,o.showAdvancedSettings=!1,o.handleValidityChange=function(n){o.endpointConfigurationSettingsValid=n},o.next=function(){i.nextEndpointCreationStep()},o.back=function(){i.previousEndpointCreationStep()},o.cancel=function(){var e=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),r=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");n.openConfirmation(e,r,(function(){i.cancelEndpointCreation()}))},o.toggleAdvancedSettings=function(){o.showAdvancedSettings=!o.showAdvancedSettings};var a=[];o.$on("$destroy",(function(){a.forEach((function(n){return n()}))}));o.endpointConfiguration=i.getNewEndpoint(),o.endpointConfiguration.settings||(o.endpointConfiguration,o.loadingData=!0,Promise.all([r.getGraphqlGenerationSettings().catch((function(n){console.error("Error loading generation settings",n),toastr.error(getError(n))}))]).then((function(n){var t=e(n,1)[0];o.endpointConfiguration.settings=t})).finally((function(){o.loadingData=!1})))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",i),i.$inject=["ModalService","$translate","GraphqlService","GraphqlContextService"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[2,60,76,77,113,116,121,144,167,198,200,243,248,250,254,306,357],{109:function(t,e,n){"use strict";n.r(e),n.d(e,"FIELD_TYPE",(function(){return i}));var i={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},113:function(t,e,n){"use strict";n.r(e),n.d(e,"resolveGraphqlEndpoint",(function(){return o})),n.d(e,"resolvePlaygroundUrlWithEndpoint",(function(){return a}));var i=n(114),r=n(26),o=function(t,e){return"".concat(r.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/").concat(e)},a=function(t){return"".concat(i.endpointUrl.PLAYGROUND,"?endpointId=").concat(t)}},114:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointUrl",(function(){return i}));var i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},119:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"EndpointGenerationReportList",(function(){return c})),n.d(e,"EndpointGenerationReport",(function(){return p}));var c=function(){return a((function t(e){r(this,t),s(this,"_reports",void 0),this._reports=e||[]}),[{key:"getReport",value:function(t){return this._reports.find((function(e){return e.endpointId===t}))}},{key:"reports",get:function(){return this._reports},set:function(t){this._reports=t}}])}(),p=function(){return a((function t(e){r(this,t),s(this,"_endpointId",void 0),s(this,"_endpointURI",void 0),s(this,"_active",void 0),s(this,"_default",void 0),s(this,"_label",void 0),s(this,"_description",void 0),s(this,"_lastModified",void 0),s(this,"_objectsCount",void 0),s(this,"_propertiesCount",void 0),s(this,"_warnings",void 0),s(this,"_errors",void 0),s(this,"_messages",void 0),s(this,"_createdSuccessfully",void 0),this._endpointId=e.endpointId||"",this._endpointURI=e.endpointURI||"",this._active=e.active||!1,this._default=e.default||!1,this._label=e.label||"",this._description=e.description||"",this._lastModified=e.lastModified||"",this._objectsCount=e.objectsCount||0,this._propertiesCount=e.propertiesCount||0,this._warnings=e.warnings||0,this._errors=e.errors||0,this._messages=e.messages||[],this._createdSuccessfully=this._active&&0===this._errors}),[{key:"toJSON",value:function(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully},set:function(t){this._createdSuccessfully=t}}])}()},126:function(t,e,n){"use strict";n.r(e);n(274);var i=n(275),r=n(276),o=n(277),a=n(278),s=n(279),u=(n(157),n(282)),c=n(173),p=n(247),l=n(174);function d(t){return{getEndpointsCountToGenerate:function(t){var e=0;return t||(e=0),t.generateFromGraphqlSchemaShapes()&&(e=t.getSelectedGraphqlSchemaShapesCount()),t.generateFromShaclShapes()&&(e=1),e},getGenerateEndpointsOverview:function(t){if(!t)return new p.GraphqlEndpointOverviewList;var e=t.getSelectedGraphqlSchemaShapesOverview();return new p.GraphqlEndpointOverviewList(e)},getEndpoints:function(e){return t.getEndpoints(e).then((function(t){return Object(i.endpointListMapper)(t.data)}))},getEndpointsAsSelectMenuOptions:function(e){return t.getEndpoints(e).then((function(t){return Object(i.endpointsToSelectMenuOptionsMapper)(t.data,e)}))},getEndpointsInfo:function(e){return t.getEndpointsInfo(e).then((function(t){return Object(r.endpointsInfoListMapper)(t.data,e)}))},getGraphqlSchemaShapes:function(e){return t.getGraphqlSchemaShapes(e).then((function(t){return Object(o.graphqlSchemaShapesMapper)(t.data)}))},getPrefixListAsSelectOptions:function(e){return t.getPrefixes(e).then((function(t){return Object(a.prefixModelToSelectMenuOptionsMapper)(t.data)}))},getShaclShapeGraphs:function(e){return t.getShaclShapeGraphs(e).then((function(t){return Object(s.shaclShapeGraphListOptionsMapper)(t.data)}))},getGraphqlGenerationSettings:function(){return t.getGraphqlGenerationSettings().then((function(t){var e=Object(u.dynamicFormModelMapper)(t.data);return new c.GraphqlEndpointConfigurationSettings(e)}))},getGraphqlEndpointConfigurationSettings:function(e,n){return t.getGraphqlEndpointConfigurationSettings(e,n).then((function(t){var e=Object(u.dynamicFormModelMapper)(t.data);return new c.GraphqlEndpointConfigurationSettings(e)}))},getEndpointConfiguration:function(e,n){return t.getEndpointConfiguration(e,n)},getEndpointConfigurationReport:function(e,n){return t.getEndpointConfiguration(e,n).then((function(t){return Object(l.endpointGenerationReportListMapper)([t.data],e)}))},editEndpointConfiguration:function(e,n,i){return t.editEndpointConfiguration(e,n,i).then((function(t){return Object(r.endpointInfoModelMapper)(t.data,e)}))},deleteEndpoint:function(e,n){return t.deleteEndpoint(e,n)},generateEndpointFromGraphqlShapes:function(e,n){return t.generateEndpointFromGraphqlShapes(e,n.toJSON()).then((function(t){return Object(l.endpointGenerationReportListMapper)(t.data,e)}))},generateEndpointFromOwl:function(e,n){return t.generateEndpointFromOwl(e,n.toJSON()).then((function(t){return Object(l.endpointGenerationReportListMapper)([t.data],e)}))},exportEndpointDefinition:function(e,n){return t.exportEndpointDefinition(e,n).then((function(t){var e=t.data,i=t.headers()["content-disposition"],r="endpoint-".concat(n,"-definition");return i&&(r=(r=i.split("filename=")[1]).replace(/"/g,"")),{data:e,filename:r}}))},importEndpointDefinition:function(e,n){return t.importEndpointDefinition(e,n)},deleteEndpointGenerationReport:function(e,n){return t.deleteEndpointGenerationReport(e,n)}}}angular.module("graphdb.framework.core.services.graphql-service",["graphdb.framework.rest.graphql.service"]).factory("GraphqlService",d),d.$inject=["GraphqlRestService"]},156:function(t,e,n){"use strict";n.r(e),n.d(e,"GraphqlEndpointInfo",(function(){return p})),n.d(e,"GraphqlEndpointsInfoList",(function(){return l}));var i=n(172);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var p=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),u(this,"_endpointId",void 0),u(this,"_endpointURI",void 0),u(this,"_label",void 0),u(this,"_description",void 0),u(this,"_default",void 0),u(this,"_active",void 0),u(this,"_lastModified",void 0),u(this,"_objectsCount",void 0),u(this,"_propertiesCount",void 0),u(this,"_warnings",void 0),u(this,"_errors",void 0),u(this,"_createdSuccessfully",void 0),this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._label=e.label,this._description=e.description,this._default=e.default,this._active=e.active,this._lastModified=e.lastModified,this._objectsCount=e.objectsCount,this._propertiesCount=e.propertiesCount,this._warnings=e.warnings,this._errors=e.errors,this._createdSuccessfully=0===this._errors}),[{key:"toUpdateEndpointRequest",value:function(t){return new i.UpdateEndpointRequest({id:this.endpointId,label:this.label,description:this.description,active:this.active,default:this.default,options:t})}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}}])}(),l=function(){return s((function t(e){o(this,t),u(this,"_originalEndpointsList",void 0),u(this,"_endpoints",void 0),this._originalEndpointsList=e||[],this._endpoints=e||[]}),[{key:"updateEndpoint",value:function(t){var e=this._endpoints.findIndex((function(e){return e.endpointId===t.endpointId}));-1!==e&&(this._endpoints[e]=t)}},{key:"filter",value:function(t){this._endpoints=this._originalEndpointsList.filter((function(e){return e.endpointId.toLowerCase().includes(t.toLowerCase())||e.label.toLowerCase().includes(t.toLowerCase())}))}},{key:"findDefaultEndpoint",value:function(){return this._endpoints.find((function(t){return t.default}))}},{key:"endpoints",get:function(){return this._endpoints},set:function(t){this._endpoints=t}}])}()},172:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"UpdateEndpointRequest",(function(){return s}));var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"_id",void 0),o(this,"_label",void 0),o(this,"_description",void 0),o(this,"_active",void 0),o(this,"_default",void 0),o(this,"_options",void 0),this._id=e.id,this._label=e.label,this._description=e.description,this._active=e.active,this._default=e.default,this._options=e.options},(e=[{key:"getUpdateDefaultEndpointRequest",value:function(){return{default:this.default}}},{key:"getUpdateEndpointActiveStateRequest",value:function(){return{active:!this.active}}},{key:"getUpdateEndpointSettingsRequest",value:function(){return{options:this.options?this.options.toFlatJSON():null}}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"options",get:function(){return this._options},set:function(t){this._options=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},174:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointGenerationReportListMapper",(function(){return o})),n.d(e,"endpointGenerationReportMapper",(function(){return a})),n.d(e,"importEndpointDefinitionReportMapper",(function(){return s}));var i=n(119),r=n(113),o=function(t,e){if(!t)return new i.EndpointGenerationReportList;var n=t.map((function(t){return a(t,e)}));return new i.EndpointGenerationReportList(n)},a=function(t,e){return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),active:t.active,default:t.default,label:t.label,description:t.description,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors,messages:t.messages})},s=function(t,e,n){var o,a,s=t.messages?null===(o=t.messages.errors)||void 0===o?void 0:o.length:0,u=t.messages?null===(a=t.messages.warnings)||void 0===a?void 0:a.length:0;return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(n,t.id),warnings:u,errors:s,messages:t.messages})}},210:function(t,e,n){"use strict";n.r(e),n.d(e,"GraphqlRestServiceMock",(function(){return s}));var i=n(24);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},(e=[{key:"getEndpointsMock",value:function(t){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(u)})}),200)}))}},{key:"getEndpointsInfoMock",value:function(t){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(c)})}),200)}))}},{key:"getGraphqlSchemaShapesMock",value:function(t){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(p)})}),200)}))}},{key:"getEndpointConfigurationMock",value:function(){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(l)})}),200)}))}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),u={repository:"swapi",endpoints:[{id:"swapi",graphQL:"/rest/repositories/swapi/graphql/swapi",active:!0,default:!0},{id:"film-restricted",graphQL:"/rest/repositories/swapi/graphql/film-restricted",active:!0,default:!1},{id:"swapi-charcters",graphQL:"/rest/repositories/swapi/graphql/swapi-charcters",active:!1,default:!1}]},c={endpoints:[{id:"gqlendpoint1",endpointId:"swapi",endpointURI:"/rest/repositories/swapi/graphql/swapi",label:"SWAPI GraphQL endpoint",description:"SWAPI GraphQL endpoint description",default:!1,active:!0,lastModified:"2025-01-28",objects_count:10,properties_count:120,warnings:0,errors:0,status:""},{id:"gqlendpoint2",endpointId:"film-restricted",endpointURI:"/rest/repositories/swapi/graphql/film-restricted",label:"SWAPI GraphQL endpoint with restricted film relations",description:"SWAPI GraphQL endpoint with restricted film relations description",default:!0,active:!0,lastModified:"2025-01-28",objects_count:13,properties_count:133,warnings:0,errors:0,status:""},{id:"gqlendpoint3",endpointId:"swapi-characters",endpointURI:"/rest/repositories/swapi/graphql/swapi-characters",label:"SWAPI GraphQL endpoint for swapi characters",description:"SWAPI GraphQL endpoint for swapi characters description",default:!1,active:!1,lastModified:"2025-01-28",objects_count:3,properties_count:20,warnings:0,errors:0,status:""}]},p={shapes:[{id:"https://schema.ubs.net/schema/AIModelSchema",name:"AI Model Schema",label:"AI Model Schema",description:null},{id:"https://schema.ubs.net/schema/AIProductSchema",name:"AI Product Schema",label:"AI Product Schema",description:null},{id:"https://schema.ubs.net/schema/DatabaseSchema",name:null,label:"Database Schema",description:null},{id:"https://schema.ubs.net/schema/BbsPermissionSchema",name:null,label:"BBS Permissions",description:null},{id:"https://schema.ubs.net/schema/DataProductBasicSchema",name:null,label:"Data Product Basic Schema No Policy and No Provenance",description:null},{id:"https://schema.ubs.net/schema/DataQualityMetricSchema",name:null,label:"Data Quality Metric Schema",description:"This is the basic schema for DQV initiated from Metric class"},{id:"https://schema.ubs.net/schema/DataQualityObservationSchema",name:null,label:"Data Quality Observation Schema",description:null},{id:"https://schema.ubs.net/schema/DatasetSchema",name:null,label:"Dataset Schema",description:null},{id:"https://schema.ubs.net/schema/ApplicationSchema",name:null,label:"Application Schema",description:null},{id:"https://schema.ubs.net/schema/PolicyBasicSchema",name:null,label:"Policy Basic Schema",description:null},{id:"https://schema.ubs.net/schema/DataQualityMeasurementSchema",name:null,label:"Data Quality Measurement Schema",description:null},{id:"https://schema.ubs.net/schema/DataProductFullSchema",name:null,label:"Data Product Schema where datasets can also be defined",description:null},{id:"https://schema.ubs.net/schema/ValidationSchema",name:null,label:"Validation Schema",description:null},{id:"https://schema.ubs.net/schema/WMAAccountSchema",name:null,label:"WMA Account Schema",description:null}]},l={configs:[{key:"str",label:"String",type:"string",collection:!1,value:"strValue",values:[],regex:"^(?:ALL:?)?(?:(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER)?(?:,(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER))*)$"},{key:"bool",label:"Boolean value",description:"",type:"boolean",collection:!1,value:!1,values:[]},{key:"select",label:"Select",type:"",collection:!1,value:"Two",values:["One","Two","Three"]},{key:"multiselect",label:"Multiselect",type:"",collection:!0,value:["Angular","JavaScript"],values:["Angular","JavaScript","WebDevelopment"]},{key:"json",label:"JSON",type:"json",collection:!1,value:'{"foo": "bar"}',values:[],required:!0}]}},211:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"GraphqlEndpoint",(function(){return u})),n.d(e,"GraphqlEndpointList",(function(){return c}));var u=function(){return a((function t(e){r(this,t),this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._active=e.active,this._default=e.default}),[{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}}])}(),c=function(){return a((function t(e){r(this,t),this._endpoints=e||[]}),[{key:"endpoints",get:function(){return this._endpoints},set:function(t){this._endpoints=t}}])}()},212:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"PrefixList",(function(){return c})),n.d(e,"Prefix",(function(){return p}));var c=function(){return a((function t(e){r(this,t),s(this,"_prefixes",void 0),this._prefixes=e||[]}),[{key:"prefixes",get:function(){return this._prefixes},set:function(t){this._prefixes=t}}])}(),p=a((function t(e){r(this,t),s(this,"_prefix",void 0),s(this,"_namespace",void 0),s(this,"_sources",void 0),this._prefix=e.prefix,this._namespace=e.namespace,this._sources=e.sources}))},213:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"DynamicFormModel",(function(){return c})),n.d(e,"DynamicFormGroup",(function(){return p}));var c=function(){return a((function t(e){r(this,t),s(this,"_models",[]),this._models=e||[]}),[{key:"models",get:function(){return this._models},set:function(t){this._models=t}}])}(),p=function(){return a((function t(e){r(this,t),s(this,"_groupId",""),s(this,"_fields",[]),s(this,"_hiddenFields",[]),s(this,"_showAllFields",!1),this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||"",this._showAllFields=!1}),[{key:"fields",get:function(){return this._fields},set:function(t){this._fields=t}},{key:"hiddenFields",get:function(){return this._hiddenFields},set:function(t){this._hiddenFields=t}},{key:"groupId",get:function(){return this._groupId},set:function(t){this._groupId=t}},{key:"showAllFields",get:function(){return this._showAllFields},set:function(t){this._showAllFields=t}}])}()},274:function(t,e,n){"use strict";n.r(e);var i=n(26),r=n(210);angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",o),o.$inject=["$http","Upload"];function o(t,e){new r.GraphqlRestServiceMock;return{getEndpoints:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/endpoints"))},getEndpointsInfo:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/list"))},getGraphqlSchemaShapes:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/graphql_shapes"))},getPrefixes:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/prefixes"))},getShaclShapeGraphs:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/shacl_graphs"))},getGraphqlGenerationSettings:function(){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/graphql/manage/generate/config"))},getGraphqlEndpointConfigurationSettings:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n,"/config"))},getEndpointConfiguration:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n))},editEndpointConfiguration:function(e,n,r){return t.post("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n),r)},deleteEndpoint:function(e,n){return t.delete("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n))},generateEndpointFromGraphqlShapes:function(e,n){return t.post("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/generate/graphql_shapes"),n)},generateEndpointFromOwl:function(e,n){return t.post("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/generate/owl_shacl"),n)},exportEndpointDefinition:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n,"/export"),{responseType:"blob"})},importEndpointDefinition:function(t,n){return e.http({url:"".concat(i.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/manage/endpoints/import"),data:n,headers:{"Content-Type":void 0}})},deleteEndpointGenerationReport:function(e,n){return t.patch("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n,"/messages"))}}}},275:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointListMapper",(function(){return a})),n.d(e,"endpointModelMapper",(function(){return s})),n.d(e,"endpointsToSelectMenuOptionsMapper",(function(){return u}));var i=n(211),r=n(25),o=n(113),a=function(t){if(!t||!t.endpoints)return new i.GraphqlEndpointList;var e=t.endpoints.map((function(t){return s(t)}));return new i.GraphqlEndpointList(e)},s=function(t){if(t)return new i.GraphqlEndpoint({endpointId:t.endpointId,endpointURI:t.endpointURI,active:t.active,default:t.default})},u=function(t,e){return t&&t.length?t.map((function(t){return new r.SelectMenuOptionsModel({value:Object(o.resolveGraphqlEndpoint)(e,t.id),label:t.id,selected:t.default,data:{active:t.active,default:t.default}})})):[]}},276:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointsInfoListMapper",(function(){return o})),n.d(e,"endpointInfoModelMapper",(function(){return a}));var i=n(156),r=n(113),o=function(t,e){if(!t||!t.endpoints)return new i.GraphqlEndpointsInfoList;var n=t.endpoints.map((function(t){return a(t,e)}));return new i.GraphqlEndpointsInfoList(n)},a=function(t,e){if(t)return new i.GraphqlEndpointInfo({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),label:t.label,description:t.description,default:t.default,active:t.active,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors})}},277:function(t,e,n){"use strict";n.r(e),n.d(e,"graphqlSchemaShapesMapper",(function(){return r})),n.d(e,"shapeModelMapper",(function(){return o}));var i=n(181),r=function(t){if(!t||!t.shapes)return new i.GraphqlSchemaShapes([]);var e=t.shapes.map((function(t){return o(t)}));return new i.GraphqlSchemaShapes(e)},o=function(t){if(t)return new i.GraphqlSchemaShape({id:t.id,name:t.name,label:t.label,description:t.description})}},278:function(t,e,n){"use strict";n.r(e),n.d(e,"prefixListMapper",(function(){return o})),n.d(e,"prefixModelToSelectMenuOptionsMapper",(function(){return s}));var i=n(212),r=n(25),o=function(t){if(!t&&!t.prefixes)return new i.PrefixList;var e=t.prefixes.map((function(t){return a(t)}));return new i.PrefixList(e)},a=function(t){if(t)return new i.Prefix({prefix:t.prefix,namespace:t.namespace,sources:t.sources})},s=function(t){return t&&t.prefixes?t.prefixes.map((function(t){return new r.SelectMenuOptionsModel({value:t.prefix,label:t.prefix,selected:!1})})):[]}},279:function(t,e,n){"use strict";n.r(e),n.d(e,"shaclShapeGraphListOptionsMapper",(function(){return r}));var i=n(16),r=function(t){if(!t||!t.shacl_graphs)return new i.GraphListOptions;var e=t.shacl_graphs.map((function(t){return new i.GraphOption({uri:t,label:t,id:t})}));return new i.GraphListOptions(e)}},282:function(t,e,n){"use strict";n.r(e),n.d(e,"dynamicFormModelMapper",(function(){return u}));var i=n(25),r=n(147),o=n(173),a=n(213),s=n(109),u=function(t){if(!t||!t.configs)return new a.DynamicFormModel;var e=p(t.configs);return c(e)},c=function(t){var e=[];return t.forEach((function(t){if(t.group){var n=e.find((function(e){return e.groupId===t.group}));n||(n=new a.DynamicFormGroup({groupId:t.group}),e.push(n)),(t.hidden?n.hiddenFields:n.fields).push(t)}else e.push(t)})),new a.DynamicFormModel(e)},p=function(t){return t.map((function(t){var e=d(t),n=t.values,r=[];return e!==s.FIELD_TYPE.MULTI_SELECT&&e!==s.FIELD_TYPE.SELECT||(n=n.map((function(e){var n=Array.isArray(t.value)&&t.value.indexOf(e)>-1||"string"==typeof t.value&&t.value===e,o=new i.SelectMenuOptionsModel({label:e,value:e,selected:n});return n&&r.push(o),o})),e===s.FIELD_TYPE.SELECT?t.value=r[0]?r[0]:[]:e===s.FIELD_TYPE.MULTI_SELECT&&(t.value=r)),l(t,e,n)}))},l=function(t,e,n){return new r.DynamicFormField({key:t.key,label:t.label,description:t.description,type:e,collection:t.collection||!1,value:t.value,values:n,regex:t.regex,required:t.required||!1,group:t.group,hidden:t.hidden})},d=function(t){var e;return t.type===o.CONFIG_TYPE.TEXT?e=s.FIELD_TYPE.TEXT:t.type===o.CONFIG_TYPE.BOOLEAN?e=s.FIELD_TYPE.BOOLEAN:t.type===o.CONFIG_TYPE.JSON?e=s.FIELD_TYPE.JSON:t.type===o.CONFIG_TYPE.STRING&&(e=t.values&&t.values.length>0?t.collection?s.FIELD_TYPE.MULTI_SELECT:s.FIELD_TYPE.SELECT:s.FIELD_TYPE.STRING),e}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[2,60,76,77,113,116,121,144,167,198,200,243,248,250,254,306,357],{109:function(t,e,n){"use strict";n.r(e),n.d(e,"FIELD_TYPE",(function(){return i}));var i={STRING:"string",TEXT:"text",BOOLEAN:"boolean",JSON:"json",SELECT:"select",MULTI_SELECT:"multi_select"}},113:function(t,e,n){"use strict";n.r(e),n.d(e,"resolveGraphqlEndpoint",(function(){return o})),n.d(e,"resolvePlaygroundUrlWithEndpoint",(function(){return a}));var i=n(114),r=n(26),o=function(t,e){return"".concat(r.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/").concat(e)},a=function(t){return"".concat(i.endpointUrl.PLAYGROUND,"?endpointId=").concat(t)}},114:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointUrl",(function(){return i}));var i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},119:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"EndpointGenerationReportList",(function(){return c})),n.d(e,"EndpointGenerationReport",(function(){return p}));var c=function(){return a((function t(e){r(this,t),s(this,"_reports",void 0),this._reports=e||[]}),[{key:"getReport",value:function(t){return this._reports.find((function(e){return e.endpointId===t}))}},{key:"reports",get:function(){return this._reports},set:function(t){this._reports=t}}])}(),p=function(){return a((function t(e){r(this,t),s(this,"_endpointId",void 0),s(this,"_endpointURI",void 0),s(this,"_active",void 0),s(this,"_default",void 0),s(this,"_label",void 0),s(this,"_description",void 0),s(this,"_lastModified",void 0),s(this,"_objectsCount",void 0),s(this,"_propertiesCount",void 0),s(this,"_warnings",void 0),s(this,"_errors",void 0),s(this,"_messages",void 0),s(this,"_createdSuccessfully",void 0),this._endpointId=e.endpointId||"",this._endpointURI=e.endpointURI||"",this._active=e.active||!1,this._default=e.default||!1,this._label=e.label||"",this._description=e.description||"",this._lastModified=e.lastModified||"",this._objectsCount=e.objectsCount||0,this._propertiesCount=e.propertiesCount||0,this._warnings=e.warnings||0,this._errors=e.errors||0,this._messages=e.messages||[],this._createdSuccessfully=this._active&&0===this._errors}),[{key:"toJSON",value:function(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}},{key:"messages",get:function(){return this._messages},set:function(t){this._messages=t}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully},set:function(t){this._createdSuccessfully=t}}])}()},126:function(t,e,n){"use strict";n.r(e);n(274);var i=n(275),r=n(276),o=n(277),a=n(278),s=n(279),u=(n(157),n(282)),c=n(173),p=n(247),l=n(174);function d(t){return{getEndpointsCountToGenerate:function(t){var e=0;return t||(e=0),t.generateFromGraphqlSchemaShapes()&&(e=t.getSelectedGraphqlSchemaShapesCount()),t.generateFromShaclShapes()&&(e=1),e},getGenerateEndpointsOverview:function(t){if(!t)return new p.GraphqlEndpointOverviewList;var e=t.getSelectedGraphqlSchemaShapesOverview();return new p.GraphqlEndpointOverviewList(e)},getEndpoints:function(e){return t.getEndpoints(e).then((function(t){return Object(i.endpointListMapper)(t.data)}))},getEndpointsAsSelectMenuOptions:function(e){return t.getEndpoints(e).then((function(t){return Object(i.endpointsToSelectMenuOptionsMapper)(t.data,e)}))},getEndpointsInfo:function(e){return t.getEndpointsInfo(e).then((function(t){return Object(r.endpointsInfoListMapper)(t.data,e)}))},getGraphqlSchemaShapes:function(e){return t.getGraphqlSchemaShapes(e).then((function(t){return Object(o.graphqlSchemaShapesMapper)(t.data)}))},getPrefixListAsSelectOptions:function(e){return t.getPrefixes(e).then((function(t){return Object(a.prefixModelToSelectMenuOptionsMapper)(t.data)}))},getShaclShapeGraphs:function(e){return t.getShaclShapeGraphs(e).then((function(t){return Object(s.shaclShapeGraphListOptionsMapper)(t.data)}))},getGraphqlGenerationSettings:function(){return t.getGraphqlGenerationSettings().then((function(t){var e=Object(u.dynamicFormModelMapper)(t.data);return new c.GraphqlEndpointConfigurationSettings(e)}))},getGraphqlEndpointConfigurationSettings:function(e,n){return t.getGraphqlEndpointConfigurationSettings(e,n).then((function(t){var e=Object(u.dynamicFormModelMapper)(t.data);return new c.GraphqlEndpointConfigurationSettings(e)}))},getEndpointConfiguration:function(e,n){return t.getEndpointConfiguration(e,n)},getEndpointConfigurationReport:function(e,n){return t.getEndpointConfiguration(e,n).then((function(t){return Object(l.endpointGenerationReportListMapper)([t.data],e)}))},editEndpointConfiguration:function(e,n,i){return t.editEndpointConfiguration(e,n,i).then((function(t){return Object(r.endpointInfoModelMapper)(t.data,e)}))},deleteEndpoint:function(e,n){return t.deleteEndpoint(e,n)},generateEndpointFromGraphqlShapes:function(e,n){return t.generateEndpointFromGraphqlShapes(e,n.toJSON()).then((function(t){return Object(l.endpointGenerationReportListMapper)(t.data,e)}))},generateEndpointFromOwl:function(e,n){return t.generateEndpointFromOwl(e,n.toJSON()).then((function(t){return Object(l.endpointGenerationReportListMapper)([t.data],e)}))},exportEndpointDefinition:function(e,n){return t.exportEndpointDefinition(e,n).then((function(t){var e=t.data,i=t.headers()["content-disposition"],r="endpoint-".concat(n,"-definition");return i&&(r=(r=i.split("filename=")[1]).replace(/"/g,"")),{data:e,filename:r}}))},importEndpointDefinition:function(e,n){return t.importEndpointDefinition(e,n)},deleteEndpointGenerationReport:function(e,n){return t.deleteEndpointGenerationReport(e,n)}}}angular.module("graphdb.framework.core.services.graphql-service",["graphdb.framework.rest.graphql.service"]).factory("GraphqlService",d),d.$inject=["GraphqlRestService"]},156:function(t,e,n){"use strict";n.r(e),n.d(e,"GraphqlEndpointInfo",(function(){return p})),n.d(e,"GraphqlEndpointsInfoList",(function(){return l}));var i=n(172);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var p=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),u(this,"_endpointId",void 0),u(this,"_endpointURI",void 0),u(this,"_label",void 0),u(this,"_description",void 0),u(this,"_default",void 0),u(this,"_active",void 0),u(this,"_lastModified",void 0),u(this,"_objectsCount",void 0),u(this,"_propertiesCount",void 0),u(this,"_warnings",void 0),u(this,"_errors",void 0),u(this,"_createdSuccessfully",void 0),this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._label=e.label,this._description=e.description,this._default=e.default,this._active=e.active,this._lastModified=e.lastModified,this._objectsCount=e.objectsCount,this._propertiesCount=e.propertiesCount,this._warnings=e.warnings,this._errors=e.errors,this._createdSuccessfully=0===this._errors}),[{key:"toUpdateEndpointRequest",value:function(t){return new i.UpdateEndpointRequest({id:this.endpointId,label:this.label,description:this.description,active:this.active,default:this.default,options:t})}},{key:"createdSuccessfully",get:function(){return this._createdSuccessfully}},{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"lastModified",get:function(){return this._lastModified},set:function(t){this._lastModified=t}},{key:"objectsCount",get:function(){return this._objectsCount},set:function(t){this._objectsCount=t}},{key:"propertiesCount",get:function(){return this._propertiesCount},set:function(t){this._propertiesCount=t}},{key:"warnings",get:function(){return this._warnings},set:function(t){this._warnings=t}},{key:"errors",get:function(){return this._errors},set:function(t){this._errors=t}}])}(),l=function(){return s((function t(e){o(this,t),u(this,"_originalEndpointsList",void 0),u(this,"_endpoints",void 0),this._originalEndpointsList=e||[],this._endpoints=e||[]}),[{key:"updateEndpoint",value:function(t){var e=this._endpoints.findIndex((function(e){return e.endpointId===t.endpointId}));-1!==e&&(this._endpoints[e]=t)}},{key:"filter",value:function(t){this._endpoints=this._originalEndpointsList.filter((function(e){return e.endpointId.toLowerCase().includes(t.toLowerCase())||e.label.toLowerCase().includes(t.toLowerCase())}))}},{key:"findDefaultEndpoint",value:function(){return this._endpoints.find((function(t){return t.default}))}},{key:"endpoints",get:function(){return this._endpoints},set:function(t){this._endpoints=t}}])}()},172:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"UpdateEndpointRequest",(function(){return s}));var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"_id",void 0),o(this,"_label",void 0),o(this,"_description",void 0),o(this,"_active",void 0),o(this,"_default",void 0),o(this,"_options",void 0),this._id=e.id,this._label=e.label,this._description=e.description,this._active=e.active,this._default=e.default,this._options=e.options},(e=[{key:"getUpdateDefaultEndpointRequest",value:function(){return{default:this.default}}},{key:"getUpdateEndpointActiveStateRequest",value:function(){return{active:!this.active}}},{key:"getUpdateEndpointSettingsRequest",value:function(){return{options:this.options?this.options.toFlatJSON():null}}},{key:"id",get:function(){return this._id},set:function(t){this._id=t}},{key:"label",get:function(){return this._label},set:function(t){this._label=t}},{key:"description",get:function(){return this._description},set:function(t){this._description=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"options",get:function(){return this._options},set:function(t){this._options=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},174:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointGenerationReportListMapper",(function(){return o})),n.d(e,"endpointGenerationReportMapper",(function(){return a})),n.d(e,"importEndpointDefinitionReportMapper",(function(){return s}));var i=n(119),r=n(113),o=function(t,e){if(!t)return new i.EndpointGenerationReportList;var n=t.map((function(t){return a(t,e)}));return new i.EndpointGenerationReportList(n)},a=function(t,e){return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),active:t.active,default:t.default,label:t.label,description:t.description,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors,messages:t.messages})},s=function(t,e,n){var o,a,s=t.messages?null===(o=t.messages.errors)||void 0===o?void 0:o.length:0,u=t.messages?null===(a=t.messages.warnings)||void 0===a?void 0:a.length:0;return new i.EndpointGenerationReport({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(n,t.id),warnings:u,errors:s,messages:t.messages})}},210:function(t,e,n){"use strict";n.r(e),n.d(e,"GraphqlRestServiceMock",(function(){return s}));var i=n(24);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},(e=[{key:"getEndpointsMock",value:function(t){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(u)})}),200)}))}},{key:"getEndpointsInfoMock",value:function(t){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(c)})}),200)}))}},{key:"getGraphqlSchemaShapesMock",value:function(t){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(p)})}),200)}))}},{key:"getEndpointConfigurationMock",value:function(){return new Promise((function(t){setTimeout((function(){return t({data:Object(i.cloneDeep)(l)})}),200)}))}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),u={repository:"swapi",endpoints:[{id:"swapi",graphQL:"/rest/repositories/swapi/graphql/swapi",active:!0,default:!0},{id:"film-restricted",graphQL:"/rest/repositories/swapi/graphql/film-restricted",active:!0,default:!1},{id:"swapi-charcters",graphQL:"/rest/repositories/swapi/graphql/swapi-charcters",active:!1,default:!1}]},c={endpoints:[{id:"gqlendpoint1",endpointId:"swapi",endpointURI:"/rest/repositories/swapi/graphql/swapi",label:"SWAPI GraphQL endpoint",description:"SWAPI GraphQL endpoint description",default:!1,active:!0,lastModified:"2025-01-28",objects_count:10,properties_count:120,warnings:0,errors:0,status:""},{id:"gqlendpoint2",endpointId:"film-restricted",endpointURI:"/rest/repositories/swapi/graphql/film-restricted",label:"SWAPI GraphQL endpoint with restricted film relations",description:"SWAPI GraphQL endpoint with restricted film relations description",default:!0,active:!0,lastModified:"2025-01-28",objects_count:13,properties_count:133,warnings:0,errors:0,status:""},{id:"gqlendpoint3",endpointId:"swapi-characters",endpointURI:"/rest/repositories/swapi/graphql/swapi-characters",label:"SWAPI GraphQL endpoint for swapi characters",description:"SWAPI GraphQL endpoint for swapi characters description",default:!1,active:!1,lastModified:"2025-01-28",objects_count:3,properties_count:20,warnings:0,errors:0,status:""}]},p={shapes:[{id:"https://schema.ubs.net/schema/AIModelSchema",name:"AI Model Schema",label:"AI Model Schema",description:null},{id:"https://schema.ubs.net/schema/AIProductSchema",name:"AI Product Schema",label:"AI Product Schema",description:null},{id:"https://schema.ubs.net/schema/DatabaseSchema",name:null,label:"Database Schema",description:null},{id:"https://schema.ubs.net/schema/BbsPermissionSchema",name:null,label:"BBS Permissions",description:null},{id:"https://schema.ubs.net/schema/DataProductBasicSchema",name:null,label:"Data Product Basic Schema No Policy and No Provenance",description:null},{id:"https://schema.ubs.net/schema/DataQualityMetricSchema",name:null,label:"Data Quality Metric Schema",description:"This is the basic schema for DQV initiated from Metric class"},{id:"https://schema.ubs.net/schema/DataQualityObservationSchema",name:null,label:"Data Quality Observation Schema",description:null},{id:"https://schema.ubs.net/schema/DatasetSchema",name:null,label:"Dataset Schema",description:null},{id:"https://schema.ubs.net/schema/ApplicationSchema",name:null,label:"Application Schema",description:null},{id:"https://schema.ubs.net/schema/PolicyBasicSchema",name:null,label:"Policy Basic Schema",description:null},{id:"https://schema.ubs.net/schema/DataQualityMeasurementSchema",name:null,label:"Data Quality Measurement Schema",description:null},{id:"https://schema.ubs.net/schema/DataProductFullSchema",name:null,label:"Data Product Schema where datasets can also be defined",description:null},{id:"https://schema.ubs.net/schema/ValidationSchema",name:null,label:"Validation Schema",description:null},{id:"https://schema.ubs.net/schema/WMAAccountSchema",name:null,label:"WMA Account Schema",description:null}]},l={configs:[{key:"str",label:"String",type:"string",collection:!1,value:"strValue",values:[],regex:"^(?:ALL:?)?(?:(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER)?(?:,(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER))*)$"},{key:"bool",label:"Boolean value",description:"",type:"boolean",collection:!1,value:!1,values:[]},{key:"select",label:"Select",type:"",collection:!1,value:"Two",values:["One","Two","Three"]},{key:"multiselect",label:"Multiselect",type:"",collection:!0,value:["Angular","JavaScript"],values:["Angular","JavaScript","WebDevelopment"]},{key:"json",label:"JSON",type:"json",collection:!1,value:'{"foo": "bar"}',values:[],required:!0}]}},211:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"GraphqlEndpoint",(function(){return u})),n.d(e,"GraphqlEndpointList",(function(){return c}));var u=function(){return a((function t(e){r(this,t),this._endpointId=e.endpointId,this._endpointURI=e.endpointURI,this._active=e.active,this._default=e.default}),[{key:"endpointId",get:function(){return this._endpointId},set:function(t){this._endpointId=t}},{key:"endpointURI",get:function(){return this._endpointURI},set:function(t){this._endpointURI=t}},{key:"default",get:function(){return this._default},set:function(t){this._default=t}},{key:"active",get:function(){return this._active},set:function(t){this._active=t}}])}(),c=function(){return a((function t(e){r(this,t),this._endpoints=e||[]}),[{key:"endpoints",get:function(){return this._endpoints},set:function(t){this._endpoints=t}}])}()},212:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"PrefixList",(function(){return c})),n.d(e,"Prefix",(function(){return p}));var c=function(){return a((function t(e){r(this,t),s(this,"_prefixes",void 0),this._prefixes=e||[]}),[{key:"prefixes",get:function(){return this._prefixes},set:function(t){this._prefixes=t}}])}(),p=a((function t(e){r(this,t),s(this,"_prefix",void 0),s(this,"_namespace",void 0),s(this,"_sources",void 0),this._prefix=e.prefix,this._namespace=e.namespace,this._sources=e.sources}))},213:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=u(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"DynamicFormModel",(function(){return c})),n.d(e,"DynamicFormGroup",(function(){return p}));var c=function(){return a((function t(e){r(this,t),s(this,"_models",[]),this._models=e||[]}),[{key:"models",get:function(){return this._models},set:function(t){this._models=t}}])}(),p=function(){return a((function t(e){r(this,t),s(this,"_groupId",""),s(this,"_fields",[]),s(this,"_hiddenFields",[]),this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}),[{key:"fields",get:function(){return this._fields},set:function(t){this._fields=t}},{key:"hiddenFields",get:function(){return this._hiddenFields},set:function(t){this._hiddenFields=t}},{key:"groupId",get:function(){return this._groupId},set:function(t){this._groupId=t}}])}()},274:function(t,e,n){"use strict";n.r(e);var i=n(26),r=n(210);angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",o),o.$inject=["$http","Upload"];function o(t,e){new r.GraphqlRestServiceMock;return{getEndpoints:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/endpoints"))},getEndpointsInfo:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/list"))},getGraphqlSchemaShapes:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/graphql_shapes"))},getPrefixes:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/prefixes"))},getShaclShapeGraphs:function(e){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/shacl_graphs"))},getGraphqlGenerationSettings:function(){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/graphql/manage/generate/config"))},getGraphqlEndpointConfigurationSettings:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n,"/config"))},getEndpointConfiguration:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n))},editEndpointConfiguration:function(e,n,r){return t.post("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n),r)},deleteEndpoint:function(e,n){return t.delete("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n))},generateEndpointFromGraphqlShapes:function(e,n){return t.post("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/generate/graphql_shapes"),n)},generateEndpointFromOwl:function(e,n){return t.post("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/generate/owl_shacl"),n)},exportEndpointDefinition:function(e,n){return t.get("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n,"/export"),{responseType:"blob"})},importEndpointDefinition:function(t,n){return e.http({url:"".concat(i.REPOSITORIES_ENDPOINT,"/").concat(t,"/graphql/manage/endpoints/import"),data:n,headers:{"Content-Type":void 0}})},deleteEndpointGenerationReport:function(e,n){return t.patch("".concat(i.REPOSITORIES_ENDPOINT,"/").concat(e,"/graphql/manage/endpoints/").concat(n,"/messages"))}}}},275:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointListMapper",(function(){return a})),n.d(e,"endpointModelMapper",(function(){return s})),n.d(e,"endpointsToSelectMenuOptionsMapper",(function(){return u}));var i=n(211),r=n(25),o=n(113),a=function(t){if(!t||!t.endpoints)return new i.GraphqlEndpointList;var e=t.endpoints.map((function(t){return s(t)}));return new i.GraphqlEndpointList(e)},s=function(t){if(t)return new i.GraphqlEndpoint({endpointId:t.endpointId,endpointURI:t.endpointURI,active:t.active,default:t.default})},u=function(t,e){return t&&t.length?t.map((function(t){return new r.SelectMenuOptionsModel({value:Object(o.resolveGraphqlEndpoint)(e,t.id),label:t.id,selected:t.default,data:{active:t.active,default:t.default}})})):[]}},276:function(t,e,n){"use strict";n.r(e),n.d(e,"endpointsInfoListMapper",(function(){return o})),n.d(e,"endpointInfoModelMapper",(function(){return a}));var i=n(156),r=n(113),o=function(t,e){if(!t||!t.endpoints)return new i.GraphqlEndpointsInfoList;var n=t.endpoints.map((function(t){return a(t,e)}));return new i.GraphqlEndpointsInfoList(n)},a=function(t,e){if(t)return new i.GraphqlEndpointInfo({endpointId:t.id,endpointURI:Object(r.resolveGraphqlEndpoint)(e,t.id),label:t.label,description:t.description,default:t.default,active:t.active,lastModified:t.lastModified,objectsCount:t.objectsCount,propertiesCount:t.propertiesCount,warnings:t.warnings,errors:t.errors})}},277:function(t,e,n){"use strict";n.r(e),n.d(e,"graphqlSchemaShapesMapper",(function(){return r})),n.d(e,"shapeModelMapper",(function(){return o}));var i=n(181),r=function(t){if(!t||!t.shapes)return new i.GraphqlSchemaShapes([]);var e=t.shapes.map((function(t){return o(t)}));return new i.GraphqlSchemaShapes(e)},o=function(t){if(t)return new i.GraphqlSchemaShape({id:t.id,name:t.name,label:t.label,description:t.description})}},278:function(t,e,n){"use strict";n.r(e),n.d(e,"prefixListMapper",(function(){return o})),n.d(e,"prefixModelToSelectMenuOptionsMapper",(function(){return s}));var i=n(212),r=n(25),o=function(t){if(!t&&!t.prefixes)return new i.PrefixList;var e=t.prefixes.map((function(t){return a(t)}));return new i.PrefixList(e)},a=function(t){if(t)return new i.Prefix({prefix:t.prefix,namespace:t.namespace,sources:t.sources})},s=function(t){return t&&t.prefixes?t.prefixes.map((function(t){return new r.SelectMenuOptionsModel({value:t.prefix,label:t.prefix,selected:!1})})):[]}},279:function(t,e,n){"use strict";n.r(e),n.d(e,"shaclShapeGraphListOptionsMapper",(function(){return r}));var i=n(16),r=function(t){if(!t||!t.shacl_graphs)return new i.GraphListOptions;var e=t.shacl_graphs.map((function(t){return new i.GraphOption({uri:t,label:t,id:t})}));return new i.GraphListOptions(e)}},282:function(t,e,n){"use strict";n.r(e),n.d(e,"dynamicFormModelMapper",(function(){return u}));var i=n(25),r=n(147),o=n(173),a=n(213),s=n(109),u=function(t){if(!t||!t.configs)return new a.DynamicFormModel;var e=p(t.configs);return c(e)},c=function(t){var e=[];return t.forEach((function(t){if(t.group){var n=e.find((function(e){return e.groupId===t.group}));n||(n=new a.DynamicFormGroup({groupId:t.group}),e.push(n)),(t.hidden?n.hiddenFields:n.fields).push(t)}else e.push(t)})),new a.DynamicFormModel(e)},p=function(t){return t.map((function(t){var e=d(t),n=t.values,r=[];return e!==s.FIELD_TYPE.MULTI_SELECT&&e!==s.FIELD_TYPE.SELECT||(n=n.map((function(e){var n=Array.isArray(t.value)&&t.value.indexOf(e)>-1||"string"==typeof t.value&&t.value===e,o=new i.SelectMenuOptionsModel({label:e,value:e,selected:n});return n&&r.push(o),o})),e===s.FIELD_TYPE.SELECT?t.value=r[0]?r[0]:[]:e===s.FIELD_TYPE.MULTI_SELECT&&(t.value=r)),l(t,e,n)}))},l=function(t,e,n){return new r.DynamicFormField({key:t.key,label:t.label,description:t.description,type:e,collection:t.collection||!1,value:t.value,values:n,regex:t.regex,required:t.required||!1,group:t.group,hidden:t.hidden})},d=function(t){var e;return t.type===o.CONFIG_TYPE.TEXT?e=s.FIELD_TYPE.TEXT:t.type===o.CONFIG_TYPE.BOOLEAN?e=s.FIELD_TYPE.BOOLEAN:t.type===o.CONFIG_TYPE.JSON?e=s.FIELD_TYPE.JSON:t.type===o.CONFIG_TYPE.STRING&&(e=t.values&&t.values.length>0?t.collection?s.FIELD_TYPE.MULTI_SELECT:s.FIELD_TYPE.SELECT:s.FIELD_TYPE.STRING),e}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{329:function(t,e){function o(){return{link:function(t,e,o){t.$watch("file.status",(function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=3.0.0-
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{329:function(t,e){function o(){return{link:function(t,e,o){t.$watch("file.status",(function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=3.0.0-RC1">{{\'common.loading\' | translate}}</object>')}))}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("ImportProgressIndicator",o),o.$inject=[]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[24,175,197],{198:function(e,t,n){"use strict";n.r(t);var o=n(24);function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function a(){return{restrict:"E",scope:{options:"=",selected:"=",labels:"="},templateUrl:"js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html",link:function(e){var t=[];e.searchLeft="",e.availableOptions=[],e.selectedOptions=[],e.selectOption=function(t){e.selectedOptions.push(t),e.availableOptions=e.availableOptions.filter((function(e){return e!==t})),n()},e.selectAll=function(){e.selectedOptions=e.selectedOptions.concat(e.availableOptions),e.availableOptions=[],n()},e.deselectOption=function(t){e.availableOptions.push(t),e.selectedOptions=e.selectedOptions.filter((function(e){return e!==t})),n()},e.deselectAll=function(){e.availableOptions=e.availableOptions.concat(e.selectedOptions),e.selectedOptions=[],n()};var n=function(){e.selected=r(e.selectedOptions)};e.$on("$destroy",(function(){t.forEach((function(e){return e()}))}));e.selectedOptions=Object(o.cloneDeep)(e.selected),e.selectedOptions.length?e.availableOptions=e.options.filter((function(t){return!e.selectedOptions.find((function(e){return e.id===t.id}))})):e.availableOptions=Object(o.cloneDeep)(e.options)}}}angular.module("graphdb.framework.core.directives.shuttle-multiselect",[]).directive("shuttleMultiselect",a),a.$inject=[]},222:function(e,t,n){"use strict";n.r(t);n(126),n(130),n(133);function o(e,t,n,o){e.endpointReport=void 0,e.downloadReport=function(){var t=JSON.stringify(e.endpointReport.toJSON(),null,2),n=new Blob([t],{type:"application/json"}),o=URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=e.endpointReport.endpointId?"".concat(e.endpointReport.endpointId,"-").concat("generation-report.json"):"generation-report.json",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)},e.deleteReport=function(){o.deleteEndpointGenerationReport(e.endpointReport),e.close()},e.close=function(){t.dismiss("cancel")};e.endpointReport=n.endpointReport}angular.module("graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal",["graphdb.framework.core.services.graphql-service"]).controller("EndpointGenerationResultFailureModalController",o),o.$inject=["$scope","$uibModalInstance","data","GraphqlContextService"]},312:function(e,t,n){"use strict";n.r(t);n(198);var o=n(16),r=n(124),i=n(182);function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t,n,c,s,p,u){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-select-schema-sources.html",scope:{stepDefinition:"="},link:function(c,d){var h=[];c.schemaSourceType=i.SchemaSourceType,c.ontologyShaclShapeSource=i.OntologyShaclShapeSource,c.shapesMultiselectLabels={availableOptionsTitle:"graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.title",availableOptionsFilter:"graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.filter_placeholder",selectedOptionsTitle:"graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.title",selectedOptionsCount:"graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.count",selectTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add.tooltip",selectAllLabel:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.label",selectAllTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.tooltip",deselectTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove.tooltip",deselectAllLabel:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.label",deselectAllTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.tooltip"},c.graphsMultiselectLabels={availableOptionsTitle:"graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.title",availableOptionsFilter:"graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.filter_placeholder",selectedOptionsTitle:"graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.title",selectedOptionsCount:"graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.count",selectTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add.tooltip",selectAllLabel:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.label",selectAllTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.tooltip",deselectTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove.tooltip",deselectAllLabel:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.label",deselectAllTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.tooltip"},c.endpointConfiguration=void 0,c.prefixList=[],c.loadingPrefixes=!1,c.graphs=void 0,c.shaclShapeGraphs=void 0,c.graphqlSchemaShapes=void 0,c.allGraphs=void 0,c.loadingGraphs=!1,c.cancel=function(){var n=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(n,o,(function(){s.cancelEndpointCreation()}))},c.next=function(){s.nextEndpointCreationStep()},c.onSchemaSourceTypeChange=function(){c.endpointConfiguration.schemaSourceType=c.stepDefinition.schemaSourceType,c.endpointConfiguration.generateFromShaclShapes()&&(c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_ALL_GRAPHS?c.endpointConfiguration.selectedGraphs=c.allGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH?c.endpointConfiguration.selectedGraphs=c.shaclShapeGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.PICK_GRAPHS&&(c.endpointConfiguration.selectedGraphs=new o.GraphListOptions))},c.onOntologyShaclShapeSourceChange=function(){c.endpointConfiguration.owlOrShaclSourceType=c.stepDefinition.ontotlogyShaclShapeSource,c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_ALL_GRAPHS?c.endpointConfiguration.selectedGraphs=c.allGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH?c.endpointConfiguration.selectedGraphs=c.shaclShapeGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.PICK_GRAPHS&&(c.endpointConfiguration.selectedGraphs=new o.GraphListOptions)},c.canProceed=function(){var e=!1;if(c.endpointConfiguration){var t=c.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),n=c.endpointParamsForm.$valid;c.stepDefinition.schemaSourceType===i.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES&&t?e=!0:c.stepDefinition.schemaSourceType===i.SchemaSourceType.SHACL_SHAPES&&n&&(e=c.endpointConfiguration.owlOrShaclSourceType===i.OntologyShaclShapeSource.USE_ALL_GRAPHS||c.endpointConfiguration.hasSelectedGraphs())}return e};var f=function(e){c.loadingData=!0,Promise.all([(c.loadingPrefixes=!0,p.getPrefixListAsSelectOptions(s.getSourceRepository()).catch((function(e){console.error("Error loading prefixes",e),n.error(getError(e))})).finally((function(){c.loadingPrefixes=!1}))),(c.loadingGraphs=!0,u.getGraphs(s.getSourceRepository()).catch((function(e){console.error("Error loading graphs",e),n.error(getError(e))})).finally((function(){c.loadingGraphs=!1}))),p.getGraphqlSchemaShapes(s.getSourceRepository()).catch((function(e){console.error("Error loading GraphQL schema shapes",e),n.error(getError(e))})),p.getShaclShapeGraphs(s.getSourceRepository()).catch((function(e){console.error("Error loading SHACL shape graphs",e),n.error(getError(e))}))]).then((function(t){var n=l(t,4),r=n[0],i=n[1],s=n[2],p=n[3];c.graphqlSchemaShapes=s,c.graphs=i,c.shaclShapeGraphs=p,c.allGraphs=new o.GraphListOptions([].concat(a(i.graphList),a(p.graphList))),c.prefixList=r,c.endpointConfiguration=e})).finally((function(){c.loadingData=!1}))},g=function(){f(s.getNewEndpoint())},S=function(){h.forEach((function(e){return e()}))};!function(){c.$on("$destroy",S),h.push(s.subscribe(r.GraphqlEventName.SOURCE_REPOSITORY_UPDATED,g));var e=s.getNewEndpoint();e?f(e):h.push(s.onEndpointConfigCreated(f))}()}}}angular.module("graphdb.framework.graphql.directives.select-schema-sources",["graphdb.framework.core.directives.shuttle-multiselect"]).directive("selectSchemaSources",p),p.$inject=["ModalService","$translate","toastr","$repositories","GraphqlContextService","GraphqlService","RDF4JRepositoriesService"]},313:function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function r(e,t,o,r){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"="},link:function(i){i.endpointConfiguration=void 0,i.generationSettings=void 0,i.generationSettingsValid=!1,i.handleValidityChange=function(e){i.endpointConfigurationSettingsValid=e},i.next=function(){r.nextEndpointCreationStep()},i.back=function(){r.previousEndpointCreationStep()},i.cancel=function(){var n=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(n,o,(function(){r.cancelEndpointCreation()}))};var a=[];i.$on("$destroy",(function(){a.forEach((function(e){return e()}))}));i.endpointConfiguration=r.getNewEndpoint(),i.endpointConfiguration.settings||(i.endpointConfiguration,i.loadingData=!0,Promise.all([o.getGraphqlGenerationSettings().catch((function(e){console.error("Error loading generation settings",e),toastr.error(getError(e))}))]).then((function(e){var t=n(e,1)[0];i.endpointConfiguration.settings=t})).finally((function(){i.loadingData=!1})))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",r),r.$inject=["ModalService","$translate","GraphqlService","GraphqlContextService"]},314:function(e,t,n){"use strict";n.r(t);var o=n(124),r=(n(222),n(114));function i(e,t,n,i,a,l){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-generate-endpoint.html",scope:{stepDefinition:"="},link:function(t){t.endpointConfiguration=void 0,t.endpointsCountToGenerate=0,t.endpointsOverview=void 0,t.activeRepository=i.getActiveRepository(),t.generateFromGraphqlSchemaShapes=!1,t.generatingEndpoint=!1,t.generationReport=void 0,t.endpointUrl=r.endpointUrl,t.back=function(){l.previousEndpointCreationStep()},t.cancel=function(){var t=n.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=n.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(t,o,(function(){l.cancelEndpointCreation()}))},t.generateEndpoint=function(){t.generatingEndpoint=!0,t.generationReport=void 0,l.generateEndpoint()},t.finishGenerationWorkflow=function(){l.finishGenerationWorkflow()},t.showEndpointReport=function(e){l.openEndpointGenerationReport(e)},t.exploreInPlayground=function(e){l.exploreEndpointInPlayground(e)};var c=[];c.push(l.subscribe(o.GraphqlEventName.ENDPOINT_GENERATED,(function(e){t.generatingEndpoint=!1,t.generationReport=e}))),t.$on("$destroy",(function(){c.forEach((function(e){return e()}))}));t.endpointConfiguration=l.getNewEndpoint(),t.generateFromGraphqlSchemaShapes=t.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),t.endpointsCountToGenerate=a.getEndpointsCountToGenerate(t.endpointConfiguration),t.endpointsOverview=a.getGenerateEndpointsOverview(t.endpointConfiguration)}}}angular.module("graphdb.framework.graphql.directives.generate-endpoint",["graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal"]).directive("generateEndpoint",i),i.$inject=["ModalService","$uibModal","$translate","$repositories","GraphqlService","GraphqlContextService"]},376:function(e,t,n){"use strict";n.r(t);n(126);var o=n(124),r=n(182),i=n(114),a=n(183),l=(n(312),n(313),n(314),n(157),n(113));function c(e,t,n,c,s,p,u,d,h){var f=[];e.sourceRepositories=[],e.selectedSourceRepository=void 0,e.previousSelectedSourceRepository=void 0,e.wizardModel=void 0,e.currentStep=void 0,e.generatingEndpoint=!1,e.onSelectedSourceRepositoryChange=function(t){p.openConfirmationModal({title:c.instant("graphql.create_endpoint.messages.source_repository_changed.title"),message:c.instant("graphql.create_endpoint.messages.source_repository_changed.body"),confirmButtonKey:"common.confirm"},(function(){e.previousSelectedSourceRepository=e.selectedSourceRepository,h.updateSourceRepository(t.value),h.createEndpointConfig(),S()}),(function(){e.selectedSourceRepository=e.previousSelectedSourceRepository}))},e.activateStep=function(t){e.wizardModel.setStepActive(t),g(t)},e.onStepClick=function(t){e.wizardModel.isAPreviousStep(t)&&(e.wizardModel.setStepActive(t),g(t))};var g=function(t){e.currentStep=t},S=function(){e.wizardModel=(new a.Wizard).addStep(new r.SelectSchemaSourceStep).addStep(new r.ConfigureEndpointStep).addStep(new r.GenerateEndpointStep),g(e.wizardModel.getActiveStep())};f.push(h.subscribe(o.GraphqlEventName.GENERATE_ENDPOINT,(function(t){var o=t.schemaSourceType===r.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES,i=t.schemaSourceType===r.SchemaSourceType.SHACL_SHAPES;return o?function(t){e.generatingEndpoint=!0;var o,r=t.toCreateEndpointFromShapesRequest(e.selectedSourceRepository.value);return d.generateEndpointFromGraphqlShapes(n.getActiveRepository(),r).then((function(e){o=e})).catch((function(e){u.error(getError(e))})).finally((function(){h.endpointGenerated(o),e.generatingEndpoint=!1}))}(t):i?function(t){e.generatingEndpoint=!0;var o,r=t.toCreateEndpointFromOwlRequest(e.selectedSourceRepository.value);return d.generateEndpointFromOwl(n.getActiveRepository(),r).then((function(e){o=e})).catch((function(e){u.error(getError(e))})).finally((function(){e.generatingEndpoint=!1,h.endpointGenerated(o)}))}(t):void 0}))),f.push(h.subscribe(o.GraphqlEventName.PREVIOUS_ENDPOINT_CREATION_STEP,(function(){g(e.wizardModel.previousStep())}))),f.push(h.subscribe(o.GraphqlEventName.NEXT_ENDPOINT_CREATION_STEP,(function(){g(e.wizardModel.nextStep())}))),f.push(h.subscribe(o.GraphqlEventName.CANCEL_ENDPOINT_CREATION,(function(){t.path(i.endpointUrl.ENDPOINT_MANAGEMENT)}))),f.push(h.subscribe(o.GraphqlEventName.FINISH_GENERATION_WORKFLOW,(function(){t.path(i.endpointUrl.ENDPOINT_MANAGEMENT)}))),f.push(h.subscribe(o.GraphqlEventName.EXPLORE_ENDPOINT_IN_PLAYGROUND,(function(e){var t=Object(l.resolvePlaygroundUrlWithEndpoint)(e.endpointId);h.setSelectedEndpoint(e),window.open(t,"_blank","noopener,noreferrer")}))),f.push(h.subscribe(o.GraphqlEventName.OPEN_ENDPOINT_GENERATION_REPORT,(function(e){return s.open({templateUrl:"js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html",controller:"EndpointGenerationResultFailureModalController",windowClass:"endpoint-generation-failure-result-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:function(){return{endpointReport:e}}}}).result}))),f.push(e.$watch(e.getActiveRepositoryObject,(function(e){e&&m()}))),e.$on("$destroy",(function(){f.forEach((function(e){return e()}))}));var m=function(){e.selectedSourceRepository||(h.createEndpointConfig(),S(),function(){e.sourceRepositories=n.getRepositoriesAsSelectMenuOptions((function(){return n.getLocalReadableGraphdbRepositories()}));var t=n.getActiveRepository();e.selectedSourceRepository=e.sourceRepositories.find((function(e){return e.value===t})),h.updateSourceRepository(e.selectedSourceRepository.value),e.previousSelectedSourceRepository=e.selectedSourceRepository}())}}angular.module("graphdb.framework.graphql.controllers.create-graphql-endpoint-view",["graphdb.framework.core.services.graphql-service","graphdb.framework.graphql.services.graphql-context","graphdb.framework.graphql.directives.select-schema-sources","graphdb.framework.graphql.directives.configure-endpoint","graphdb.framework.graphql.directives.generate-endpoint"]).controller("CreateGraphqlEndpointViewCtrl",c),c.$inject=["$scope","$location","$repositories","$translate","$uibModal","ModalService","toastr","GraphqlService","GraphqlContextService"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[24,175,197],{198:function(e,t,n){"use strict";n.r(t);var o=n(24);function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function a(){return{restrict:"E",scope:{options:"=",selected:"=",labels:"="},templateUrl:"js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html",link:function(e){var t=[];e.searchLeft="",e.availableOptions=[],e.selectedOptions=[],e.selectOption=function(t){e.selectedOptions.push(t),e.availableOptions=e.availableOptions.filter((function(e){return e!==t})),n()},e.selectAll=function(){e.selectedOptions=e.selectedOptions.concat(e.availableOptions),e.availableOptions=[],n()},e.deselectOption=function(t){e.availableOptions.push(t),e.selectedOptions=e.selectedOptions.filter((function(e){return e!==t})),n()},e.deselectAll=function(){e.availableOptions=e.availableOptions.concat(e.selectedOptions),e.selectedOptions=[],n()};var n=function(){e.selected=r(e.selectedOptions)};e.$on("$destroy",(function(){t.forEach((function(e){return e()}))}));e.selectedOptions=Object(o.cloneDeep)(e.selected),e.selectedOptions.length?e.availableOptions=e.options.filter((function(t){return!e.selectedOptions.find((function(e){return e.id===t.id}))})):e.availableOptions=Object(o.cloneDeep)(e.options)}}}angular.module("graphdb.framework.core.directives.shuttle-multiselect",[]).directive("shuttleMultiselect",a),a.$inject=[]},222:function(e,t,n){"use strict";n.r(t);n(126),n(130),n(133);function o(e,t,n,o){e.endpointReport=void 0,e.downloadReport=function(){var t=JSON.stringify(e.endpointReport.toJSON(),null,2),n=new Blob([t],{type:"application/json"}),o=URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=e.endpointReport.endpointId?"".concat(e.endpointReport.endpointId,"-").concat("generation-report.json"):"generation-report.json",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(o)},e.deleteReport=function(){o.deleteEndpointGenerationReport(e.endpointReport),e.close()},e.close=function(){t.dismiss("cancel")};e.endpointReport=n.endpointReport}angular.module("graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal",["graphdb.framework.core.services.graphql-service"]).controller("EndpointGenerationResultFailureModalController",o),o.$inject=["$scope","$uibModalInstance","data","GraphqlContextService"]},312:function(e,t,n){"use strict";n.r(t);n(198);var o=n(16),r=n(124),i=n(182);function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t,n,c,s,p,u){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-select-schema-sources.html",scope:{stepDefinition:"="},link:function(c,d){var h=[];c.schemaSourceType=i.SchemaSourceType,c.ontologyShaclShapeSource=i.OntologyShaclShapeSource,c.shapesMultiselectLabels={availableOptionsTitle:"graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.title",availableOptionsFilter:"graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.filter_placeholder",selectedOptionsTitle:"graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.title",selectedOptionsCount:"graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.count",selectTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add.tooltip",selectAllLabel:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.label",selectAllTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.tooltip",deselectTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove.tooltip",deselectAllLabel:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.label",deselectAllTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.tooltip"},c.graphsMultiselectLabels={availableOptionsTitle:"graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.title",availableOptionsFilter:"graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.filter_placeholder",selectedOptionsTitle:"graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.title",selectedOptionsCount:"graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.count",selectTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add.tooltip",selectAllLabel:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.label",selectAllTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.tooltip",deselectTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove.tooltip",deselectAllLabel:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.label",deselectAllTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.tooltip"},c.endpointConfiguration=void 0,c.prefixList=[],c.loadingPrefixes=!1,c.graphs=void 0,c.shaclShapeGraphs=void 0,c.graphqlSchemaShapes=void 0,c.allGraphs=void 0,c.loadingGraphs=!1,c.cancel=function(){var n=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(n,o,(function(){s.cancelEndpointCreation()}))},c.next=function(){s.nextEndpointCreationStep()},c.onSchemaSourceTypeChange=function(){c.endpointConfiguration.schemaSourceType=c.stepDefinition.schemaSourceType,c.endpointConfiguration.generateFromShaclShapes()&&(c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_ALL_GRAPHS?c.endpointConfiguration.selectedGraphs=c.allGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH?c.endpointConfiguration.selectedGraphs=c.shaclShapeGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.PICK_GRAPHS&&(c.endpointConfiguration.selectedGraphs=new o.GraphListOptions))},c.onOntologyShaclShapeSourceChange=function(){c.endpointConfiguration.owlOrShaclSourceType=c.stepDefinition.ontotlogyShaclShapeSource,c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_ALL_GRAPHS?c.endpointConfiguration.selectedGraphs=c.allGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH?c.endpointConfiguration.selectedGraphs=c.shaclShapeGraphs:c.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.PICK_GRAPHS&&(c.endpointConfiguration.selectedGraphs=new o.GraphListOptions)},c.canProceed=function(){var e=!1;if(c.endpointConfiguration){var t=c.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),n=c.endpointParamsForm.$valid;c.stepDefinition.schemaSourceType===i.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES&&t?e=!0:c.stepDefinition.schemaSourceType===i.SchemaSourceType.SHACL_SHAPES&&n&&(e=c.endpointConfiguration.owlOrShaclSourceType===i.OntologyShaclShapeSource.USE_ALL_GRAPHS||c.endpointConfiguration.hasSelectedGraphs())}return e};var f=function(e){c.loadingData=!0,Promise.all([(c.loadingPrefixes=!0,p.getPrefixListAsSelectOptions(s.getSourceRepository()).catch((function(e){console.error("Error loading prefixes",e),n.error(getError(e))})).finally((function(){c.loadingPrefixes=!1}))),(c.loadingGraphs=!0,u.getGraphs(s.getSourceRepository()).catch((function(e){console.error("Error loading graphs",e),n.error(getError(e))})).finally((function(){c.loadingGraphs=!1}))),p.getGraphqlSchemaShapes(s.getSourceRepository()).catch((function(e){console.error("Error loading GraphQL schema shapes",e),n.error(getError(e))})),p.getShaclShapeGraphs(s.getSourceRepository()).catch((function(e){console.error("Error loading SHACL shape graphs",e),n.error(getError(e))}))]).then((function(t){var n=l(t,4),r=n[0],i=n[1],s=n[2],p=n[3];c.graphqlSchemaShapes=s,c.graphs=i,c.shaclShapeGraphs=p,c.allGraphs=new o.GraphListOptions([].concat(a(i.graphList),a(p.graphList))),c.prefixList=r,c.endpointConfiguration=e})).finally((function(){c.loadingData=!1}))},g=function(){f(s.getNewEndpoint())},S=function(){h.forEach((function(e){return e()}))};!function(){c.$on("$destroy",S),h.push(s.subscribe(r.GraphqlEventName.SOURCE_REPOSITORY_UPDATED,g));var e=s.getNewEndpoint();e?f(e):h.push(s.onEndpointConfigCreated(f))}()}}}angular.module("graphdb.framework.graphql.directives.select-schema-sources",["graphdb.framework.core.directives.shuttle-multiselect"]).directive("selectSchemaSources",p),p.$inject=["ModalService","$translate","toastr","$repositories","GraphqlContextService","GraphqlService","RDF4JRepositoriesService"]},313:function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function r(e,t,o,r){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"="},link:function(i){i.endpointConfiguration=void 0,i.generationSettings=void 0,i.generationSettingsValid=!1,i.showAdvancedSettings=!1,i.handleValidityChange=function(e){i.endpointConfigurationSettingsValid=e},i.next=function(){r.nextEndpointCreationStep()},i.back=function(){r.previousEndpointCreationStep()},i.cancel=function(){var n=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=t.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(n,o,(function(){r.cancelEndpointCreation()}))},i.toggleAdvancedSettings=function(){i.showAdvancedSettings=!i.showAdvancedSettings};var a=[];i.$on("$destroy",(function(){a.forEach((function(e){return e()}))}));i.endpointConfiguration=r.getNewEndpoint(),i.endpointConfiguration.settings||(i.endpointConfiguration,i.loadingData=!0,Promise.all([o.getGraphqlGenerationSettings().catch((function(e){console.error("Error loading generation settings",e),toastr.error(getError(e))}))]).then((function(e){var t=n(e,1)[0];i.endpointConfiguration.settings=t})).finally((function(){i.loadingData=!1})))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",r),r.$inject=["ModalService","$translate","GraphqlService","GraphqlContextService"]},314:function(e,t,n){"use strict";n.r(t);var o=n(124),r=(n(222),n(114));function i(e,t,n,i,a,l){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-generate-endpoint.html",scope:{stepDefinition:"="},link:function(t){t.endpointConfiguration=void 0,t.endpointsCountToGenerate=0,t.endpointsOverview=void 0,t.activeRepository=i.getActiveRepository(),t.generateFromGraphqlSchemaShapes=!1,t.generatingEndpoint=!1,t.generationReport=void 0,t.endpointUrl=r.endpointUrl,t.back=function(){l.previousEndpointCreationStep()},t.cancel=function(){var t=n.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),o=n.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(t,o,(function(){l.cancelEndpointCreation()}))},t.generateEndpoint=function(){t.generatingEndpoint=!0,t.generationReport=void 0,l.generateEndpoint()},t.finishGenerationWorkflow=function(){l.finishGenerationWorkflow()},t.showEndpointReport=function(e){l.openEndpointGenerationReport(e)},t.exploreInPlayground=function(e){l.exploreEndpointInPlayground(e)};var c=[];c.push(l.subscribe(o.GraphqlEventName.ENDPOINT_GENERATED,(function(e){t.generatingEndpoint=!1,t.generationReport=e}))),t.$on("$destroy",(function(){c.forEach((function(e){return e()}))}));t.endpointConfiguration=l.getNewEndpoint(),t.generateFromGraphqlSchemaShapes=t.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),t.endpointsCountToGenerate=a.getEndpointsCountToGenerate(t.endpointConfiguration),t.endpointsOverview=a.getGenerateEndpointsOverview(t.endpointConfiguration)}}}angular.module("graphdb.framework.graphql.directives.generate-endpoint",["graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal"]).directive("generateEndpoint",i),i.$inject=["ModalService","$uibModal","$translate","$repositories","GraphqlService","GraphqlContextService"]},376:function(e,t,n){"use strict";n.r(t);n(126);var o=n(124),r=n(182),i=n(114),a=n(183),l=(n(312),n(313),n(314),n(157),n(113));function c(e,t,n,c,s,p,u,d,h){var f=[];e.sourceRepositories=[],e.selectedSourceRepository=void 0,e.previousSelectedSourceRepository=void 0,e.wizardModel=void 0,e.currentStep=void 0,e.generatingEndpoint=!1,e.onSelectedSourceRepositoryChange=function(t){p.openConfirmationModal({title:c.instant("graphql.create_endpoint.messages.source_repository_changed.title"),message:c.instant("graphql.create_endpoint.messages.source_repository_changed.body"),confirmButtonKey:"common.confirm"},(function(){e.previousSelectedSourceRepository=e.selectedSourceRepository,h.updateSourceRepository(t.value),h.createEndpointConfig(),S()}),(function(){e.selectedSourceRepository=e.previousSelectedSourceRepository}))},e.activateStep=function(t){e.wizardModel.setStepActive(t),g(t)},e.onStepClick=function(t){e.wizardModel.isAPreviousStep(t)&&(e.wizardModel.setStepActive(t),g(t))};var g=function(t){e.currentStep=t},S=function(){e.wizardModel=(new a.Wizard).addStep(new r.SelectSchemaSourceStep).addStep(new r.ConfigureEndpointStep).addStep(new r.GenerateEndpointStep),g(e.wizardModel.getActiveStep())};f.push(h.subscribe(o.GraphqlEventName.GENERATE_ENDPOINT,(function(t){var o=t.schemaSourceType===r.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES,i=t.schemaSourceType===r.SchemaSourceType.SHACL_SHAPES;return o?function(t){e.generatingEndpoint=!0;var o,r=t.toCreateEndpointFromShapesRequest(e.selectedSourceRepository.value);return d.generateEndpointFromGraphqlShapes(n.getActiveRepository(),r).then((function(e){o=e})).catch((function(e){u.error(getError(e))})).finally((function(){h.endpointGenerated(o),e.generatingEndpoint=!1}))}(t):i?function(t){e.generatingEndpoint=!0;var o,r=t.toCreateEndpointFromOwlRequest(e.selectedSourceRepository.value);return d.generateEndpointFromOwl(n.getActiveRepository(),r).then((function(e){o=e})).catch((function(e){u.error(getError(e))})).finally((function(){e.generatingEndpoint=!1,h.endpointGenerated(o)}))}(t):void 0}))),f.push(h.subscribe(o.GraphqlEventName.PREVIOUS_ENDPOINT_CREATION_STEP,(function(){g(e.wizardModel.previousStep())}))),f.push(h.subscribe(o.GraphqlEventName.NEXT_ENDPOINT_CREATION_STEP,(function(){g(e.wizardModel.nextStep())}))),f.push(h.subscribe(o.GraphqlEventName.CANCEL_ENDPOINT_CREATION,(function(){t.path(i.endpointUrl.ENDPOINT_MANAGEMENT)}))),f.push(h.subscribe(o.GraphqlEventName.FINISH_GENERATION_WORKFLOW,(function(){t.path(i.endpointUrl.ENDPOINT_MANAGEMENT)}))),f.push(h.subscribe(o.GraphqlEventName.EXPLORE_ENDPOINT_IN_PLAYGROUND,(function(e){var t=Object(l.resolvePlaygroundUrlWithEndpoint)(e.endpointId);h.setSelectedEndpoint(e),window.open(t,"_blank","noopener,noreferrer")}))),f.push(h.subscribe(o.GraphqlEventName.OPEN_ENDPOINT_GENERATION_REPORT,(function(e){return s.open({templateUrl:"js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html",controller:"EndpointGenerationResultFailureModalController",windowClass:"endpoint-generation-failure-result-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:function(){return{endpointReport:e}}}}).result}))),f.push(e.$watch(e.getActiveRepositoryObject,(function(e){e&&m()}))),e.$on("$destroy",(function(){f.forEach((function(e){return e()}))}));var m=function(){e.selectedSourceRepository||(h.createEndpointConfig(),S(),function(){e.sourceRepositories=n.getRepositoriesAsSelectMenuOptions((function(){return n.getLocalReadableGraphdbRepositories()}));var t=n.getActiveRepository();e.selectedSourceRepository=e.sourceRepositories.find((function(e){return e.value===t})),h.updateSourceRepository(e.selectedSourceRepository.value),e.previousSelectedSourceRepository=e.selectedSourceRepository}())}}angular.module("graphdb.framework.graphql.controllers.create-graphql-endpoint-view",["graphdb.framework.core.services.graphql-service","graphdb.framework.graphql.services.graphql-context","graphdb.framework.graphql.directives.select-schema-sources","graphdb.framework.graphql.directives.configure-endpoint","graphdb.framework.graphql.directives.generate-endpoint"]).controller("CreateGraphqlEndpointViewCtrl",c),c.$inject=["$scope","$location","$repositories","$translate","$uibModal","ModalService","toastr","GraphqlService","GraphqlContextService"]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[243],{213:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}n.r(e),n.d(e,"DynamicFormModel",(function(){return c})),n.d(e,"DynamicFormGroup",(function(){return d}));var c=function(){return u((function t(e){r(this,t),s(this,"_models",[]),this._models=e||[]}),[{key:"models",get:function(){return this._models},set:function(t){this._models=t}}])}(),d=function(){return u((function t(e){r(this,t),s(this,"_groupId",""),s(this,"_fields",[]),s(this,"_hiddenFields",[]),this._fields=e.fields||[],this._hiddenFields=e.hiddenFields||[],this._groupId=e.groupId||""}),[{key:"fields",get:function(){return this._fields},set:function(t){this._fields=t}},{key:"hiddenFields",get:function(){return this._hiddenFields},set:function(t){this._hiddenFields=t}},{key:"groupId",get:function(){return this._groupId},set:function(t){this._groupId=t}}])}()}}]);
|