graphdb-workbench 3.1.1 → 3.2.0-TR1
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/README.md +45 -0
- package/dist/10142.f47cd2aec05492fce7ce.bundle.js +2 -0
- package/dist/10142.f47cd2aec05492fce7ce.bundle.js.map +1 -0
- package/dist/10406.52677950658780fd8859.bundle.js +2 -0
- package/dist/{10406.7fed4b667b0d2813b305.bundle.js.map → 10406.52677950658780fd8859.bundle.js.map} +1 -1
- package/dist/12358.2061f29dc113149946a3.bundle.js +3 -0
- package/dist/12358.2061f29dc113149946a3.bundle.js.map +1 -0
- package/dist/12396.4c26c8da50c790b0f39a.bundle.js +2 -0
- package/dist/12396.4c26c8da50c790b0f39a.bundle.js.map +1 -0
- package/dist/14874.d6973a34188c0335fa12.bundle.js +2 -0
- package/dist/14874.d6973a34188c0335fa12.bundle.js.map +1 -0
- package/dist/15535.ce8d657c04f3401b9539.bundle.js +2 -0
- package/dist/15535.ce8d657c04f3401b9539.bundle.js.map +1 -0
- package/dist/16162.8f482628d1b34d41d496.bundle.js +2 -0
- package/dist/16162.8f482628d1b34d41d496.bundle.js.map +1 -0
- package/dist/{18961.d83ba5fd0855f3cfa7d7.bundle.js → 18961.c6505525fb0491b48f8b.bundle.js} +2 -2
- package/dist/{18961.d83ba5fd0855f3cfa7d7.bundle.js.map → 18961.c6505525fb0491b48f8b.bundle.js.map} +1 -1
- package/dist/19968.fdb823f9a12e11a633ec.bundle.js +2 -0
- package/dist/19968.fdb823f9a12e11a633ec.bundle.js.map +1 -0
- package/dist/20287.c42f9d1d913c36e46931.bundle.js +2 -0
- package/dist/20287.c42f9d1d913c36e46931.bundle.js.map +1 -0
- package/dist/20694.70b6e390d6397249c72d.bundle.js.map +1 -1
- package/dist/21136.199caea09a1c9ad90393.bundle.js +2 -0
- package/dist/21136.199caea09a1c9ad90393.bundle.js.map +1 -0
- package/dist/21142.b690e00c8884fddb2bb3.bundle.js +2 -0
- package/dist/21142.b690e00c8884fddb2bb3.bundle.js.map +1 -0
- package/dist/21170.d5e3041241741d21080c.bundle.js +2 -0
- package/dist/21170.d5e3041241741d21080c.bundle.js.map +1 -0
- package/dist/21195.267abc9d42b711d0f17a.bundle.js +2 -0
- package/dist/21195.267abc9d42b711d0f17a.bundle.js.map +1 -0
- package/dist/25747.4e00941ec221c4d6ce8f.bundle.js +2 -0
- package/dist/25747.4e00941ec221c4d6ce8f.bundle.js.map +1 -0
- package/dist/27580.f71ebbc69dd1c7785ef3.bundle.js +2 -0
- package/dist/27580.f71ebbc69dd1c7785ef3.bundle.js.map +1 -0
- package/dist/28050.8ca1fa760c892bfc5466.bundle.js +2 -0
- package/dist/28050.8ca1fa760c892bfc5466.bundle.js.map +1 -0
- package/dist/31636.e34ccc2d6f2dec577446.bundle.js +2 -0
- package/dist/31636.e34ccc2d6f2dec577446.bundle.js.map +1 -0
- package/dist/32489.97fac2c3daa49b143d13.bundle.js +2 -0
- package/dist/32489.97fac2c3daa49b143d13.bundle.js.map +1 -0
- package/dist/32534.fb6ef715bfb44761ec63.bundle.js +2 -0
- package/dist/32534.fb6ef715bfb44761ec63.bundle.js.map +1 -0
- package/dist/34495.cfa15bda8009fa37c6ff.bundle.js +2 -0
- package/dist/34495.cfa15bda8009fa37c6ff.bundle.js.map +1 -0
- package/dist/{38360.437a12fa59878d1d43b9.bundle.js → 38360.0a90e77042876c86b279.bundle.js} +2 -2
- package/dist/38360.0a90e77042876c86b279.bundle.js.map +1 -0
- package/dist/38412.fa86361561ffa367709f.bundle.js +2 -0
- package/dist/38412.fa86361561ffa367709f.bundle.js.map +1 -0
- package/dist/38644.3a0954c798ec413a3810.bundle.js +2 -0
- package/dist/38644.3a0954c798ec413a3810.bundle.js.map +1 -0
- package/dist/38843.5ef7a063337524ce3bb2.bundle.js +2 -0
- package/dist/38843.5ef7a063337524ce3bb2.bundle.js.map +1 -0
- package/dist/39518.4199684f3273d29d9105.bundle.js +2 -0
- package/dist/{39518.0ee809a85c83dba1f56a.bundle.js.map → 39518.4199684f3273d29d9105.bundle.js.map} +1 -1
- package/dist/39539.c23e4878044d73f2505b.bundle.js +2 -0
- package/dist/39539.c23e4878044d73f2505b.bundle.js.map +1 -0
- package/dist/{39874.c2d7cab1a65e5a869e78.bundle.js → 39874.f94a5059e1ae4f4a87e9.bundle.js} +2 -2
- package/dist/39874.f94a5059e1ae4f4a87e9.bundle.js.map +1 -0
- package/dist/41453.8bb4c783da2c5077a6e9.bundle.js +2 -0
- package/dist/41453.8bb4c783da2c5077a6e9.bundle.js.map +1 -0
- package/dist/42129.f44b7b20f9cd376c6e59.bundle.js +2 -0
- package/dist/42129.f44b7b20f9cd376c6e59.bundle.js.map +1 -0
- package/dist/44444.ad66c8256bc5b653de1a.bundle.js +2 -0
- package/dist/44444.ad66c8256bc5b653de1a.bundle.js.map +1 -0
- package/dist/44874.5854c207bbe2c4f2438e.bundle.js +2 -0
- package/dist/44874.5854c207bbe2c4f2438e.bundle.js.map +1 -0
- package/dist/45149.2f77aa736bbfb13fd987.bundle.js +2 -0
- package/dist/45149.2f77aa736bbfb13fd987.bundle.js.map +1 -0
- package/dist/45758.6ceb731cbe0576149f31.bundle.js +2 -0
- package/dist/45758.6ceb731cbe0576149f31.bundle.js.map +1 -0
- package/dist/{46591.ac9d19fd699104a9ed9b.bundle.js → 46591.0b142aa76a8991a89848.bundle.js} +2 -2
- package/dist/46591.0b142aa76a8991a89848.bundle.js.map +1 -0
- package/dist/55862.1fb5abd075ba11a7e93c.bundle.js +2 -0
- package/dist/55862.1fb5abd075ba11a7e93c.bundle.js.map +1 -0
- package/dist/58306.ba9545cbaee021ebcbce.bundle.js +2 -0
- package/dist/58306.ba9545cbaee021ebcbce.bundle.js.map +1 -0
- package/dist/{60560.024578077d95b851beea.bundle.js → 60560.37740d97b418899a5d21.bundle.js} +2 -2
- package/dist/{60560.024578077d95b851beea.bundle.js.map → 60560.37740d97b418899a5d21.bundle.js.map} +1 -1
- package/dist/67232.e76f40f9d09e64ebb365.bundle.js.map +1 -1
- package/dist/67888.7d4966e0a22ba655f1b8.bundle.js +2 -0
- package/dist/67888.7d4966e0a22ba655f1b8.bundle.js.map +1 -0
- package/dist/72379.bac50d0011665a85b6cd.bundle.js +2 -0
- package/dist/72379.bac50d0011665a85b6cd.bundle.js.map +1 -0
- package/dist/73667.3dd4f377e7ef54fd8758.bundle.js +2 -0
- package/dist/73667.3dd4f377e7ef54fd8758.bundle.js.map +1 -0
- package/dist/73779.193df86f08e3a1d06d67.bundle.js +2 -0
- package/dist/73779.193df86f08e3a1d06d67.bundle.js.map +1 -0
- package/dist/73793.6d80d47c26ed60a587fd.bundle.js +2 -0
- package/dist/73793.6d80d47c26ed60a587fd.bundle.js.map +1 -0
- package/dist/75282.88819e851ed18720b275.bundle.js +2 -0
- package/dist/75282.88819e851ed18720b275.bundle.js.map +1 -0
- package/dist/75849.51ade15bf0074eab76f3.bundle.js +2 -0
- package/dist/75849.51ade15bf0074eab76f3.bundle.js.map +1 -0
- package/dist/78013.e32fade7ad42b64c8122.bundle.js +2 -0
- package/dist/78013.e32fade7ad42b64c8122.bundle.js.map +1 -0
- package/dist/78250.6db42146a120459280e4.bundle.js +2 -0
- package/dist/78250.6db42146a120459280e4.bundle.js.map +1 -0
- package/dist/{78681.e44a1eb1dce4a8a29f57.bundle.js → 78681.39694d37c0f75ea04df6.bundle.js} +2 -2
- package/dist/{78681.e44a1eb1dce4a8a29f57.bundle.js.map → 78681.39694d37c0f75ea04df6.bundle.js.map} +1 -1
- package/dist/79329.5a5cbfa466d1c62af915.bundle.js +2 -0
- package/dist/79329.5a5cbfa466d1c62af915.bundle.js.map +1 -0
- package/dist/82206.8ec983edcf675cfd4531.bundle.js +2 -0
- package/dist/82206.8ec983edcf675cfd4531.bundle.js.map +1 -0
- package/dist/82896.9aed45baf67510717c6f.bundle.js +2 -0
- package/dist/82896.9aed45baf67510717c6f.bundle.js.map +1 -0
- package/dist/{82926.f625cc022724426fb8fb.bundle.js → 82926.93dbf44f2bcccba34e9b.bundle.js} +2 -2
- package/dist/{82926.f625cc022724426fb8fb.bundle.js.map → 82926.93dbf44f2bcccba34e9b.bundle.js.map} +1 -1
- package/dist/85281.27b5a1eb8e7ac2cf8459.bundle.js +2 -0
- package/dist/85281.27b5a1eb8e7ac2cf8459.bundle.js.map +1 -0
- package/dist/{88206.fbbcf8ccd9460c579e87.bundle.js → 88206.28c337e2edbf17928836.bundle.js} +2 -2
- package/dist/88206.28c337e2edbf17928836.bundle.js.map +1 -0
- package/dist/9062.d9049833d076191d3e1a.bundle.js +2 -0
- package/dist/9062.d9049833d076191d3e1a.bundle.js.map +1 -0
- package/dist/99379.be6c85ef305af6667dc1.bundle.js +2 -0
- package/dist/99379.be6c85ef305af6667dc1.bundle.js.map +1 -0
- package/dist/99448.314018d0afb1af150ddf.bundle.js +2 -0
- package/dist/99448.314018d0afb1af150ddf.bundle.js.map +1 -0
- package/dist/api/error/error-base.d.ts +1 -1
- package/dist/api/ontotext-workbench-api.js +1 -1
- package/dist/api/ontotext-workbench-api.js.map +1 -1
- package/dist/i18n/locale-en.json +31 -0
- package/dist/i18n/locale-fr.json +31 -0
- package/dist/index.html +8 -8
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/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/core/templates/editable-content/editable-content.html +1 -1
- package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
- package/dist/js/angular/core/templates/search-resource-input.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +4 -3
- 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 +1 -1
- 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/security/templates/user.html +2 -2
- 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/modal/external-integration-configuration-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/legacyWorkbench.57fc12c172f6350ac4c5.js +3 -0
- package/dist/{legacyWorkbench.ad1d42d21ac42beabeb4.js.map → legacyWorkbench.57fc12c172f6350ac4c5.js.map} +1 -1
- package/dist/{main.400f2248f076a2d31d80.js → main.b9a83da68ffc43c91de0.js} +3 -3
- package/dist/{main.400f2248f076a2d31d80.js.map → main.b9a83da68ffc43c91de0.js.map} +1 -1
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/login.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +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/plugins.js +1 -1
- package/dist/res/swagger5/css/onto-theme.css +1 -1
- package/dist/res/swagger5/index.html +11 -11
- package/dist/shared-components/cjs/onto-cookie-consent_2.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-dialog_2.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-dropdown.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-footer_6.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/translate-label.cjs.entry.js +1 -1
- package/dist/shared-components/collection/components/dialogs/onto-cookie-policy-dialog/onto-cookie-policy-dialog.js +1 -1
- package/dist/shared-components/collection/components/dialogs/onto-dialog.js +1 -1
- package/dist/shared-components/collection/components/onto-cookie-consent/onto-cookie-consent.js +1 -1
- package/dist/shared-components/collection/components/onto-dropdown/onto-dropdown.js +1 -1
- package/dist/shared-components/collection/components/onto-footer/onto-footer.js +1 -1
- package/dist/shared-components/collection/components/onto-header/onto-header.js +1 -1
- package/dist/shared-components/collection/components/onto-language-selector/onto-language-selector.js +1 -1
- package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
- package/dist/shared-components/collection/components/onto-navbar/navbar-model.js +1 -1
- package/dist/shared-components/collection/components/onto-navbar/navbar-service.js +1 -1
- package/dist/shared-components/collection/components/onto-operations-notification/onto-operations-notification.js +1 -1
- package/dist/shared-components/collection/components/onto-rdf-search/onto-rdf-search.js +1 -1
- package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.js +1 -1
- package/dist/shared-components/collection/components/onto-search-icon/onto-search-icon.js +1 -1
- package/dist/shared-components/collection/components/onto-search-resource-input/onto-search-resource-input.js +1 -1
- package/dist/shared-components/collection/components/onto-toastr/onto-toastr.js +1 -1
- package/dist/shared-components/collection/components/onto-toggle-switch/onto-toggle-switch.js +1 -1
- package/dist/shared-components/collection/components/onto-tooltip/onto-tooltip.js +1 -1
- package/dist/shared-components/collection/components/translate-label/translate-label.js +1 -1
- package/dist/shared-components/esm/onto-cookie-consent_2.entry.js +1 -1
- package/dist/shared-components/esm/onto-dialog_2.entry.js +1 -1
- package/dist/shared-components/esm/onto-dropdown.entry.js +1 -1
- package/dist/shared-components/esm/onto-footer_6.entry.js +1 -1
- package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
- package/dist/shared-components/esm/onto-layout.entry.js +1 -1
- package/dist/shared-components/esm/translate-label.entry.js +1 -1
- package/dist/shared-components/shared-components/p-17bac1e3.entry.js +1 -0
- package/dist/shared-components/shared-components/p-1bc2ac8e.entry.js +1 -0
- package/dist/shared-components/shared-components/p-2433b25f.entry.js +1 -0
- package/dist/shared-components/shared-components/p-25fa0ee5.entry.js +1 -0
- package/dist/shared-components/shared-components/{p-a4e82a3f.entry.js → p-6266be98.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-eed8b067.entry.js → p-91ad7f7f.entry.js} +1 -1
- package/dist/shared-components/shared-components/p-aef0b970.entry.js +1 -0
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/dist/shared-components/types/components/onto-dropdown/onto-dropdown.d.ts +2 -2
- package/dist/shared-components/types/components/onto-navbar/navbar-model.d.ts +4 -1
- package/dist/shared-components/types/components/onto-navbar/navbar-toggled-event.d.ts +1 -1
- package/dist/shared-components/types/components/onto-navbar/onto-navbar.d.ts +2 -2
- package/dist/shared-components/types/components/onto-test-context/onto-test-context.d.ts +23 -23
- package/dist/shared-components/types/components/onto-tooltip/models/onto-tooltip-configuration.d.ts +1 -2
- package/dist/shared-components/types/components.d.ts +4 -4
- package/dist/shared-components/types/models/component-event.d.ts +1 -1
- package/dist/shared-components/types/utils/function-utils.d.ts +1 -1
- package/dist/shared-components/types/utils/tooltip-util.d.ts +2 -2
- package/dist/workbench/workbench/workbenchApp.js +1 -1
- package/package.json +8 -2
- package/dist/10142.6a276ff32f58aa4d1b72.bundle.js +0 -2
- package/dist/10142.6a276ff32f58aa4d1b72.bundle.js.map +0 -1
- package/dist/10153.1532fddd43604bf408c3.bundle.js +0 -2
- package/dist/10153.1532fddd43604bf408c3.bundle.js.map +0 -1
- package/dist/10406.7fed4b667b0d2813b305.bundle.js +0 -2
- package/dist/12358.736ea9c178c92655de3a.bundle.js +0 -3
- package/dist/12358.736ea9c178c92655de3a.bundle.js.map +0 -1
- package/dist/12396.47201b3f37dcfe963353.bundle.js +0 -2
- package/dist/12396.47201b3f37dcfe963353.bundle.js.map +0 -1
- package/dist/14874.17bc671b6ff6123b9eb1.bundle.js +0 -2
- package/dist/14874.17bc671b6ff6123b9eb1.bundle.js.map +0 -1
- package/dist/15535.e3d3f8071a4cc462b5eb.bundle.js +0 -2
- package/dist/15535.e3d3f8071a4cc462b5eb.bundle.js.map +0 -1
- package/dist/16162.bc70365c3f546e70a3e9.bundle.js +0 -2
- package/dist/16162.bc70365c3f546e70a3e9.bundle.js.map +0 -1
- package/dist/20287.c3d0095a3a5f18cd0087.bundle.js +0 -2
- package/dist/20287.c3d0095a3a5f18cd0087.bundle.js.map +0 -1
- package/dist/21136.fb6d69cd9e6dd31a65b2.bundle.js +0 -2
- package/dist/21136.fb6d69cd9e6dd31a65b2.bundle.js.map +0 -1
- package/dist/21142.0589f58f1a3b49b4fcfa.bundle.js +0 -2
- package/dist/21142.0589f58f1a3b49b4fcfa.bundle.js.map +0 -1
- package/dist/21170.8126948c956555b4f9ff.bundle.js +0 -2
- package/dist/21170.8126948c956555b4f9ff.bundle.js.map +0 -1
- package/dist/21195.77df14ed68c1f286839a.bundle.js +0 -2
- package/dist/21195.77df14ed68c1f286839a.bundle.js.map +0 -1
- package/dist/25747.612b1bce6250300d137f.bundle.js +0 -2
- package/dist/25747.612b1bce6250300d137f.bundle.js.map +0 -1
- package/dist/27580.88bc1444d863327a3697.bundle.js +0 -2
- package/dist/27580.88bc1444d863327a3697.bundle.js.map +0 -1
- package/dist/28050.1359d262b2e2c497ad6d.bundle.js +0 -2
- package/dist/28050.1359d262b2e2c497ad6d.bundle.js.map +0 -1
- package/dist/31636.625df78d380dadd69c07.bundle.js +0 -2
- package/dist/31636.625df78d380dadd69c07.bundle.js.map +0 -1
- package/dist/32489.5f438460389d65300913.bundle.js +0 -2
- package/dist/32489.5f438460389d65300913.bundle.js.map +0 -1
- package/dist/32534.73081e468e918a03bd70.bundle.js +0 -2
- package/dist/32534.73081e468e918a03bd70.bundle.js.map +0 -1
- package/dist/32606.376e14770ba6e81b7159.bundle.js +0 -2
- package/dist/32606.376e14770ba6e81b7159.bundle.js.map +0 -1
- package/dist/34495.e0f8e26f32d7d8def627.bundle.js +0 -2
- package/dist/34495.e0f8e26f32d7d8def627.bundle.js.map +0 -1
- package/dist/38360.437a12fa59878d1d43b9.bundle.js.map +0 -1
- package/dist/38412.85b4c12f5ed5ffb6e4dd.bundle.js +0 -2
- package/dist/38412.85b4c12f5ed5ffb6e4dd.bundle.js.map +0 -1
- package/dist/38644.6e82d4276df028701834.bundle.js +0 -2
- package/dist/38644.6e82d4276df028701834.bundle.js.map +0 -1
- package/dist/38843.428e7caf2e6805840b83.bundle.js +0 -2
- package/dist/38843.428e7caf2e6805840b83.bundle.js.map +0 -1
- package/dist/39518.0ee809a85c83dba1f56a.bundle.js +0 -2
- package/dist/39539.2a03bf4161ee846817d3.bundle.js +0 -2
- package/dist/39539.2a03bf4161ee846817d3.bundle.js.map +0 -1
- package/dist/39874.c2d7cab1a65e5a869e78.bundle.js.map +0 -1
- package/dist/41453.5370acf9540ff5382268.bundle.js +0 -2
- package/dist/41453.5370acf9540ff5382268.bundle.js.map +0 -1
- package/dist/42129.02f0b477c276dceb732c.bundle.js +0 -2
- package/dist/42129.02f0b477c276dceb732c.bundle.js.map +0 -1
- package/dist/44444.57b74adca89db793b77c.bundle.js +0 -2
- package/dist/44444.57b74adca89db793b77c.bundle.js.map +0 -1
- package/dist/44874.60bab9adf89019b35654.bundle.js +0 -2
- package/dist/44874.60bab9adf89019b35654.bundle.js.map +0 -1
- package/dist/45758.4e363b98020c3460b4ff.bundle.js +0 -2
- package/dist/45758.4e363b98020c3460b4ff.bundle.js.map +0 -1
- package/dist/46591.ac9d19fd699104a9ed9b.bundle.js.map +0 -1
- package/dist/55862.81467f263f3c46d9d889.bundle.js +0 -2
- package/dist/55862.81467f263f3c46d9d889.bundle.js.map +0 -1
- package/dist/58163.747b20ea052b22b24bd0.bundle.js +0 -2
- package/dist/58163.747b20ea052b22b24bd0.bundle.js.map +0 -1
- package/dist/58306.0ca44cc562ab1135c44b.bundle.js +0 -2
- package/dist/58306.0ca44cc562ab1135c44b.bundle.js.map +0 -1
- package/dist/67888.cc78716f885f98366859.bundle.js +0 -2
- package/dist/67888.cc78716f885f98366859.bundle.js.map +0 -1
- package/dist/72379.4023fb8f5c0dd8f32faa.bundle.js +0 -2
- package/dist/72379.4023fb8f5c0dd8f32faa.bundle.js.map +0 -1
- package/dist/73667.6925315f2649c49bade2.bundle.js +0 -2
- package/dist/73667.6925315f2649c49bade2.bundle.js.map +0 -1
- package/dist/73779.c4608b73b63083cb3352.bundle.js +0 -2
- package/dist/73779.c4608b73b63083cb3352.bundle.js.map +0 -1
- package/dist/73793.0cd99844e3792d5beb8c.bundle.js +0 -2
- package/dist/73793.0cd99844e3792d5beb8c.bundle.js.map +0 -1
- package/dist/75282.1005c493f43b9d6dcc5a.bundle.js +0 -2
- package/dist/75282.1005c493f43b9d6dcc5a.bundle.js.map +0 -1
- package/dist/75849.39b30ee4eb2f1b35f762.bundle.js +0 -2
- package/dist/75849.39b30ee4eb2f1b35f762.bundle.js.map +0 -1
- package/dist/78250.8462f5662da1fd9ece0b.bundle.js +0 -2
- package/dist/78250.8462f5662da1fd9ece0b.bundle.js.map +0 -1
- package/dist/79329.cd81f51fd3aed8ca8359.bundle.js +0 -2
- package/dist/79329.cd81f51fd3aed8ca8359.bundle.js.map +0 -1
- package/dist/82206.b3b37c3e0cc1aa18148c.bundle.js +0 -2
- package/dist/82206.b3b37c3e0cc1aa18148c.bundle.js.map +0 -1
- package/dist/85281.049ddec87de0b8b07e79.bundle.js +0 -2
- package/dist/85281.049ddec87de0b8b07e79.bundle.js.map +0 -1
- package/dist/88206.fbbcf8ccd9460c579e87.bundle.js.map +0 -1
- package/dist/9062.2b577ad9fc05b48b64a3.bundle.js +0 -2
- package/dist/9062.2b577ad9fc05b48b64a3.bundle.js.map +0 -1
- package/dist/99379.d5dffb14dd46150e91f9.bundle.js +0 -2
- package/dist/99379.d5dffb14dd46150e91f9.bundle.js.map +0 -1
- package/dist/99448.98a68cbf8bf84857b615.bundle.js +0 -2
- package/dist/99448.98a68cbf8bf84857b615.bundle.js.map +0 -1
- package/dist/legacyWorkbench.ad1d42d21ac42beabeb4.js +0 -3
- package/dist/shared-components/shared-components/p-106d7df8.entry.js +0 -1
- package/dist/shared-components/shared-components/p-17ce51bb.entry.js +0 -1
- package/dist/shared-components/shared-components/p-306527cc.entry.js +0 -1
- package/dist/shared-components/shared-components/p-96e87635.entry.js +0 -1
- package/dist/shared-components/shared-components/p-af359495.entry.js +0 -1
- /package/dist/{12358.736ea9c178c92655de3a.bundle.js.LICENSE.txt → 12358.2061f29dc113149946a3.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{legacyWorkbench.ad1d42d21ac42beabeb4.js.LICENSE.txt → legacyWorkbench.57fc12c172f6350ac4c5.js.LICENSE.txt} +0 -0
- /package/dist/{main.400f2248f076a2d31d80.js.LICENSE.txt → main.b9a83da68ffc43c91de0.js.LICENSE.txt} +0 -0
- /package/dist/shared-components/cjs/{tooltip-util-CmDLnWqH.js → tooltip-util-CnEXLMnw.js} +0 -0
- /package/dist/shared-components/esm/{tooltip-util-C1So-qrf.js → tooltip-util-BqOc8q8q.js} +0 -0
- /package/dist/shared-components/shared-components/{p-Bisudk7O.js → p-DzOPDgzQ.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"32489.97fac2c3daa49b143d13.bundle.js","mappings":"uJAqBA,QApBW,8hG","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/operations-statuses-monitor.css?v=3.2.0-TR1\" rel=\"stylesheet\"/> <div ng-if=\"activeOperations && activeOperations.operations && activeOperations.operations.length > 0\" class=\"operations-statuses btn-group\"> <button type=\"button\" class=\"btn btn-secondary operations-statuses-dropdown-toggle dropdown-toggle\" data-toggle=\"dropdown\" ng-if=\"operationsSummary && operationsSummary.length > 0\" ng-class=\"{\n 'btn-fade-danger': OPERATION_STATUS.CRITICAL === activeOperations.status,\n 'btn-fade-warning': OPERATION_STATUS.WARNING === activeOperations.status\n }\"> <div class=\"operation-status-header\" ng-repeat=\"operationGroup in operationsSummary\"> <div ng-class=\"{\n 'icon-import': OPERATION_GROUP_TYPE.IMPORT_OPERATION === operationGroup.type,\n 'icon-exchange': OPERATION_GROUP_TYPE.QUERIES_OPERATION === operationGroup.type,\n 'fa fa-archive': OPERATION_GROUP_TYPE.BACKUP_AND_RESTORE_OPERATION === operationGroup.type,\n 'fa fa-sitemap': OPERATION_GROUP_TYPE.CLUSTER_OPERATION === operationGroup.type,\n 'status-critical': OPERATION_STATUS.CRITICAL === operationGroup.status,\n 'status-information': OPERATION_STATUS.INFORMATION === operationGroup.status,\n 'status-warning': OPERATION_STATUS.WARNING === operationGroup.status}\"> </div> <span ng-if=\"operationGroup.runningOperations\" class=\"running-operation-count\"> <sup class=\"tag-info\">{{operationGroup.runningOperations}}</sup> </span> </div> <span class=\"caret\"></span> </button> <ul role=\"menu\" class=\"dropdown-menu dropdown-menu-right\"> <div class=\"operations-statuses-content\"> <li ng-repeat=\"operationStatus in activeOperations.operations\"> <a class=\"operation-status-content btn btn-secondary row\" target=\"_blank\" ng-attr-href=\"{{operationStatus.monitoringViewUrl}}\" ng-class=\"{\n 'status-critical': OPERATION_STATUS.CRITICAL === operationStatus.status,\n 'status-information': OPERATION_STATUS.INFORMATION === operationStatus.status,\n 'status-warning': OPERATION_STATUS.WARNING === operationStatus.status\n }\"> <div class=\"operation-icon col-sm-1\" ng-style=\"noPadding\"> <div ng-class=\"{\n 'icon-import': OPERATION_TYPE.IMPORTS === operationStatus.type,\n 'icon-exchange': OPERATION_TYPE.QUERIES === operationStatus.type || OPERATION_TYPE.UPDATES === operationStatus.type,\n 'fa fa-archive': OPERATION_TYPE.BACKUP_RESTORE === operationStatus.type,\n 'fa fa-sitemap': OPERATION_TYPE.CLUSTER_STATUS === operationStatus.type}\"> </div> </div> <div class=\"col-sm-8 operation-status-label\"> {{ 'global.operations_statuses.' + operationStatus.titleLabelKey + '.title' | translate }} </div> <div class=\"operation-number col-sm-3\"> <div ng-if=\"operationStatus.runningOperationCount\" class=\"operation-status-running-operation-count tag-info\"> {{operationStatus.runningOperationCount}} </div> </div> </a> </li> </div> </ul> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_id__=32534;export const __webpack_ids__=[16747,21388,23864,30514,32534];export const __webpack_modules__={10406:(e,t,s)=>{s.r(t),s.d(t,{GraphqlEndpointConfiguration:()=>c,GraphqlEndpointParams:()=>S});var r=s(29646),i=s(82854),n=s(28379),o=s(16014),p=s(23864),a=s(30514),h=s(21388);class c{_schemaSourceType;_owlOrShaclSourceType;_selectedGraphqlSchemaShapes;_selectedGraphs;_params;_settings;constructor(){this._schemaSourceType=h.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES,this._owlOrShaclSourceType=h.OntologyShaclShapeSource.USE_ALL_GRAPHS,this._selectedGraphqlSchemaShapes=new r.GraphqlSchemaShapes,this._selectedGraphs=new i.GraphListOptions,this._params=new S({}),this._endpointConfigurationSettings=new n.GraphqlEndpointConfigurationSettings}generateFromGraphqlSchemaShapes(){return this.schemaSourceType===h.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES}generateFromShaclShapes(){return this.schemaSourceType===h.SchemaSourceType.SHACL_SHAPES}toCreateEndpointFromShapesRequest(e){return new p.CreateEndpointFromShapesRequest({fromRepo:e,shapes:this.selectedGraphqlSchemaShapes.getShapeIds(),config:this.settings.toFlatJSON()})}toCreateEndpointFromOwlRequest(e){const t=this._owlOrShaclSourceType===h.OntologyShaclShapeSource.USE_ALL_GRAPHS?[]:this.selectedGraphs.getGraphIds();return new a.CreateEndpointFromOwlRequest({id:this.params.endpointId,label:this.params.endpointLabel,description:this.params.endpointDescription,fromRepo:e,namedGraphs:t,vocabPrefix:this.params.vocPrefix,config:this.settings.toFlatJSON()})}getSelectedGraphqlSchemaShapesOverview(){return this.generateFromGraphqlSchemaShapes()?this.selectedGraphqlSchemaShapes.processShapes(e=>new o.GraphqlEndpointOverview({label:e.label||e.id,uri:e.id})):this.generateFromShaclShapes()?this.selectedGraphs.isEmpty?[new o.GraphqlEndpointOverview({label:`${this.params.endpointId}`})]:this.selectedGraphs.processGraphList(e=>new o.GraphqlEndpointOverview({label:e.label||e.uri,uri:e.uri})):void 0}getSelectedGraphqlSchemaShapesCount(){return this.selectedGraphqlSchemaShapes.shapes.length}hasSelectedGraphqlSchemaShapes(){return this.getSelectedGraphqlSchemaShapesCount()>0}getSelectedGraphsCount(){return this.selectedGraphs.graphList.length}hasSelectedGraphs(){return this.getSelectedGraphsCount()>0}get owlOrShaclSourceType(){return this._owlOrShaclSourceType}set owlOrShaclSourceType(e){this._owlOrShaclSourceType=e}get schemaSourceType(){return this._schemaSourceType}set schemaSourceType(e){this._schemaSourceType=e}get settings(){return this._settings}set settings(e){this._settings=e}get selectedGraphs(){return this._selectedGraphs}set selectedGraphs(e){this._selectedGraphs=e}get params(){return this._params}set params(e){this._params=e}get selectedGraphqlSchemaShapes(){return this._selectedGraphqlSchemaShapes}set selectedGraphqlSchemaShapes(e){this._selectedGraphqlSchemaShapes=e}}class S{_endpointId;_endpointLabel;_endpointDescription;_vocPrefix;constructor(e){this._endpointId=e.endpointId||"",this._endpointLabel=e.endpointLabel||"",this._vocPrefix=e.vocPrefix||"",this._endpointDescription=e.endpointDescription||""}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointLabel(){return this._endpointLabel}set endpointLabel(e){this._endpointLabel=e}get endpointDescription(){return this._endpointDescription}set endpointDescription(e){this._endpointDescription=e}get vocPrefix(){return this._vocPrefix}set vocPrefix(e){this._vocPrefix=e}toJSON(){return{endpointId:this.endpointId,endpointLabel:this.endpointLabel,vocPrefix:this.vocPrefix,description:this.endpointDescription}}}},16747:(e,t,s)=>{s.r(t),s.d(t,{Wizard:()=>r,WizardStep:()=>i});class r{#e=[];#t=0;constructor(e=[],t=0){this.#e=e,this.#t=t}addStep(e){return this.#e.push(e),this}getActiveStep(){return this.#e.find(e=>e.active)}isAPreviousStep(e){return this.#e.indexOf(e)<this.#t}setStepActive(e){this.#e.forEach(e=>e.active=!1),e.active=!0;const t=this.#e.indexOf(e);this.#t=t,this.#e.forEach((e,s)=>{e.visited=s<t})}previousStep(){this.#t>0&&this.#t--;const e=this.#e[this.#t];return this.setStepActive(e),e}nextStep(){this.#t<this.#e.length-1&&this.#t++;const e=this.#e[this.#t];return this.setStepActive(e),e}get steps(){return this.#e}set steps(e){this.#e=e}get currentStep(){return this.#t}set currentStep(e){this.#t=e}}class i{#s="";#r=!1;#i=!1;#n="";#o="";constructor(e,t,s,r=!1){this.#s=e,this.#r=r,this.#n=t,this.#o=s,this.#i=!1}get page(){return this.#o}set page(e){this.#o=e}get templateUrl(){return this.#n}set templateUrl(e){this.#n=e}get active(){return this.#r}set active(e){this.#r=e}get id(){return this.#s}set id(e){this.#s=e}get visited(){return this.#i}set visited(e){this.#i=e}}},21388:(e,t,s)=>{s.r(t),s.d(t,{ConfigureEndpointStep:()=>p,GenerateEndpointStep:()=>a,OntologyShaclShapeSource:()=>n,SchemaSourceType:()=>i,SelectSchemaSourceStep:()=>o});var r=s(16747);const i={GRAPHQL_SCHEMA_SHAPES:"graphql_schema_shapes",SHACL_SHAPES:"shacl_shapes"},n={USE_ALL_GRAPHS:"use_all_graphs",USE_SHACL_SHAPE_GRAPH:"use_shacl_shape_graph",PICK_GRAPHS:"pick_graphs"};class o extends r.WizardStep{_schemaSourceTypes=[{value:i.GRAPHQL_SCHEMA_SHAPES},{value:i.SHACL_SHAPES}];_schemaSourceType=this._schemaSourceTypes[0].value;_ontologyShaclShapeSources=[{value:n.USE_ALL_GRAPHS},{value:n.USE_SHACL_SHAPE_GRAPH},{value:n.PICK_GRAPHS}];_ontotlogyShaclShapeSource=this._ontologyShaclShapeSources[0].value;constructor(){super("select_schema_sources",void 0,"schema-sources",!0)}get ontotlogyShaclShapeSource(){return this._ontotlogyShaclShapeSource}set ontotlogyShaclShapeSource(e){this._ontotlogyShaclShapeSource=e}get ontologyShaclShapeSources(){return this._ontologyShaclShapeSources}set ontologyShaclShapeSources(e){this._ontologyShaclShapeSources=e}get schemaSourceType(){return this._schemaSourceType}set schemaSourceType(e){this._schemaSourceType=e}get schemaSourceTypes(){return this._schemaSourceTypes}set schemaSourceTypes(e){this._schemaSourceTypes=e}}class p extends r.WizardStep{constructor(){super("configure_endpoint",void 0,"endpoint-config",!1)}}class a extends r.WizardStep{constructor(){super("generate_endpoint",void 0,"generate-endpoint",!1)}}},23864:(e,t,s)=>{s.r(t),s.d(t,{CreateEndpointFromShapesRequest:()=>r});class r{_fromRepo;_shapes;_config;constructor(e){this._fromRepo=e.fromRepo||"",this._shapes=e.shapes||[],this._config=e.config||{}}toJSON(){return{fromRepo:this.fromRepo,shapes:this.shapes,config:this.config}}get fromRepo(){return this._fromRepo}set fromRepo(e){this._fromRepo=e}get shapes(){return this._shapes}set shapes(e){this._shapes=e}get config(){return this._config}set config(e){this._config=e}}},30514:(e,t,s)=>{s.r(t),s.d(t,{CreateEndpointFromOwlRequest:()=>r});class r{_fromRepo;_namedGraphs;_id;_label;_description;_vocPrefix;_config;constructor(e){this._id=e.id||"",this._label=e.label||"",this._description=e.description||"",this._fromRepo=e.fromRepo||"",this._namedGraphs=e.namedGraphs||[],this._vocPrefix=e.vocabPrefix||"",this._config=e.config||{}}toJSON(){return{id:this.id,label:this.label,description:this.description,fromRepo:this.fromRepo,namedGraphs:this.namedGraphs,vocabPrefix:this.vocPrefix,config:this.config}}get fromRepo(){return this._fromRepo}set fromRepo(e){this._fromRepo=e}get namedGraphs(){return this._namedGraphs}set namedGraphs(e){this._namedGraphs=e}get id(){return this._id}set id(e){this._id=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}get vocPrefix(){return this._vocPrefix}set vocPrefix(e){this._vocPrefix=e}get config(){return this._config}set config(e){this._config=e}}},32534:(e,t,s)=>{s.r(t),s.d(t,{GraphqlEventName:()=>o});var r=s(98980),i=s(10406);function n(e){let t,s,n;const p=()=>t,a=()=>n,h=(t,s)=>{e.emitSync(t,(0,r.cloneDeep)(s))},c=(t,s)=>e.subscribeSync(t,e=>s(e));return{resetContext:()=>{s=void 0,n=void 0},updateSourceRepository:e=>{t=e,h(o.SOURCE_REPOSITORY_UPDATED,p())},getSourceRepository:p,setSelectedEndpoint:e=>{s=e},getSelectedEndpoint:()=>(0,r.cloneDeep)(s),getNewEndpoint:a,createEndpointConfig:()=>{n=new i.GraphqlEndpointConfiguration,e.emitSync(o.ENDPOINT_CONFIG_CREATED,n)},onEndpointConfigCreated:e=>(n&&angular.isFunction(e)&&e(n),c(o.ENDPOINT_CONFIG_CREATED,t=>e(t))),startCreateEndpointWizard:()=>{h(o.START_CREATE_ENDPOINT_WIZARD,null)},generateEndpoint:()=>{h(o.GENERATE_ENDPOINT,a())},endpointGenerated:e=>{h(o.ENDPOINT_GENERATED,e)},exploreEndpointInPlayground:e=>{h(o.EXPLORE_ENDPOINT_IN_PLAYGROUND,e)},openEndpointGenerationReport:e=>{h(o.OPEN_ENDPOINT_GENERATION_REPORT,e)},deleteEndpointGenerationReport:e=>{h(o.DELETE_ENDPOINT_REPORT,e)},cancelEndpointCreation:()=>{h(o.CANCEL_ENDPOINT_CREATION,{})},finishGenerationWorkflow:()=>{h(o.FINISH_GENERATION_WORKFLOW,{})},nextEndpointCreationStep:()=>{h(o.NEXT_ENDPOINT_CREATION_STEP,{})},previousEndpointCreationStep:()=>{h(o.PREVIOUS_ENDPOINT_CREATION_STEP,{})},subscribe:c}}angular.module("graphdb.framework.graphql.services.graphql-context",[]).factory("GraphqlContextService",n),n.$inject=["EventEmitterService","GraphqlService"];const o={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"}}};
|
|
2
|
+
//# sourceMappingURL=32534.fb6ef715bfb44761ec63.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"32534.fb6ef715bfb44761ec63.bundle.js","mappings":"iTAQO,MAAMA,EAMTC,kBAOAC,sBAIAC,6BAKAC,gBAKAC,QAMAC,UAEAC,WAAAA,GACIC,KAAKP,kBAAoBQ,EAAAA,iBAAiBC,sBAC1CF,KAAKN,sBAAwBS,EAAAA,yBAAyBC,eACtDJ,KAAKL,6BAA+B,IAAIU,EAAAA,oBACxCL,KAAKJ,gBAAkB,IAAIU,EAAAA,iBAC3BN,KAAKH,QAAU,IAAIU,EAAsB,CAAC,GAC1CP,KAAKQ,+BAAiC,IAAIC,EAAAA,oCAC9C,CAMAC,+BAAAA,GACI,OAAOV,KAAKW,mBAAqBV,EAAAA,iBAAiBC,qBACtD,CAMAU,uBAAAA,GACI,OAAOZ,KAAKW,mBAAqBV,EAAAA,iBAAiBY,YACtD,CAOAC,iCAAAA,CAAkCC,GAC9B,OAAO,IAAIC,EAAAA,gCAAgC,CACvCC,SAAUF,EACVG,OAAQlB,KAAKmB,4BAA4BC,cACzCC,OAAQrB,KAAKsB,SAASC,cAE9B,CAOAC,8BAAAA,CAA+BT,GAE3B,MAAMU,EAAczB,KAAKN,wBAA0BS,EAAAA,yBAAyBC,eAAiB,GAAKJ,KAAK0B,eAAeC,cACtH,OAAO,IAAIC,EAAAA,6BAA6B,CACpCC,GAAI7B,KAAK8B,OAAOC,WAChBC,MAAOhC,KAAK8B,OAAOG,cACnBC,YAAalC,KAAK8B,OAAOK,oBACzBlB,SAAUF,EACVU,YAAaA,EACbW,YAAapC,KAAK8B,OAAOO,UACzBhB,OAAQrB,KAAKsB,SAASC,cAE9B,CAMAe,sCAAAA,GACI,OA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EAAKW,EAAiBa,kBAAmBzB,MAmEzC0B,kBA5DuBC,IACvB1B,EAAKW,EAAiBgB,mBAAoBD,IA4D1CE,4BArDiCd,IACjCd,EAAKW,EAAiBkB,+BAAgCf,IAqDtDgB,6BA9CkCC,IAClC/B,EAAKW,EAAiBqB,gCAAiCD,IA8CvDE,+BAvCoCF,IACpC/B,EAAKW,EAAiBuB,uBAAwBH,IAuC9CI,uBAxF2BA,KAC3BnC,EAAKW,EAAiByB,yBAA0B,CAAC,IAwFjDC,yBArF6BA,KAC7BrC,EAAKW,EAAiB2B,2BAA4B,CAAC,IAqFnDC,yBAlF6BA,KAC7BvC,EAAKW,EAAiB6B,4BAA6B,CAAC,IAkFpDC,6BA/EiCA,KACjCzC,EAAKW,EAAiB+B,gCAAiC,CAAC,IA+ExDrC,YAER,CA9LAc,QACKwB,OAAO,qDAAsD,IAC7DC,QAAQ,wBAAyBnD,GAEtCA,EAAsBoD,QAAU,CAAC,sBAAuB,kBA4LjD,MAAMlC,EAAmB,CAI5BC,0BAA2B,0BAI3BU,6BAA8B,4BAI9BL,wBAAyB,sBAIzBO,kBAAmB,mBAInBG,mBAAoB,oBAIpBS,yBAA0B,yBAI1BE,2BAA4B,2BAI5BT,+BAAgC,8BAIhCG,gCAAiC,+BAIjCE,uBAAwB,uBAIxBM,4BAA6B,2BAI7BE,gCAAiC,+B","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/graphql-endpoint-configuration.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/wizard.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/create-endpoint-wizard-steps.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/create-endpoint-from-shapes-request.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/create-endpoint-from-owl-request.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/services/graphql-context.service.js"],"sourcesContent":["import {GraphqlSchemaShapes} from \"./graphql-schema-shapes\";\nimport {GraphListOptions} from \"../graphs/graph-list-options\";\nimport {GraphqlEndpointConfigurationSettings} from \"./graphql-endpoint-configuration-setting\";\nimport {GraphqlEndpointOverview} from \"./graphql-endpoint-overview-list\";\nimport {CreateEndpointFromShapesRequest} from \"./create-endpoint-from-shapes-request\";\nimport {CreateEndpointFromOwlRequest} from \"./create-endpoint-from-owl-request\";\nimport {OntologyShaclShapeSource, SchemaSourceType} from \"./create-endpoint-wizard-steps\";\n\nexport class GraphqlEndpointConfiguration {\n /**\n * One of SchemaSourceType.GRAPHQL_SCHEMA_SHAPES or SchemaSourceType.SHACL_SHAPES\n * @type {string}\n * @private\n */\n _schemaSourceType;\n /**\n * One of OntologyShaclShapeSource.USE_ALL_GRAPHS or OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH or\n * OntologyShaclShapeSource.PICK_GRAPHS\n * @type {string}\n * @private\n */\n _owlOrShaclSourceType;\n /**\n * @type {GraphqlSchemaShapes}\n */\n _selectedGraphqlSchemaShapes;\n /**\n * @type {GraphListOptions}\n * @private\n */\n _selectedGraphs;\n /**\n * @type {GraphqlEndpointParams}\n * @private\n */\n _params;\n /**\n * The endpoint configuration settings model.\n * @type {GraphqlEndpointConfigurationSettings|undefined}\n * @private\n */\n _settings ;\n\n constructor() {\n this._schemaSourceType = SchemaSourceType.GRAPHQL_SCHEMA_SHAPES;\n this._owlOrShaclSourceType = OntologyShaclShapeSource.USE_ALL_GRAPHS;\n this._selectedGraphqlSchemaShapes = new GraphqlSchemaShapes();\n this._selectedGraphs = new GraphListOptions();\n this._params = new GraphqlEndpointParams({});\n this._endpointConfigurationSettings = new GraphqlEndpointConfigurationSettings();\n }\n\n /**\n * Returns if the endpoint will be generated from the GraphQL schema shapes.\n * @returns {boolean}\n */\n generateFromGraphqlSchemaShapes() {\n return this.schemaSourceType === SchemaSourceType.GRAPHQL_SCHEMA_SHAPES;\n }\n\n /**\n * Returns if the endpoint will be generated from ontologies or SHACL shapes.\n * @returns {boolean}\n */\n generateFromShaclShapes() {\n return this.schemaSourceType === SchemaSourceType.SHACL_SHAPES;\n }\n\n /**\n * Builds an endpoint create request from the current configuration.\n * @param {string} sourceRepositoryId The source repository ID.\n * @returns {CreateEndpointFromShapesRequest}\n */\n toCreateEndpointFromShapesRequest(sourceRepositoryId) {\n return new CreateEndpointFromShapesRequest({\n fromRepo: sourceRepositoryId,\n shapes: this.selectedGraphqlSchemaShapes.getShapeIds(),\n config: this.settings.toFlatJSON()\n })\n }\n\n /**\n * Builds an endpoint create request from the current configuration.\n * @param {string} sourceRepositoryId The source repository ID.\n * @returns {CreateEndpointFromOwlRequest}\n */\n toCreateEndpointFromOwlRequest(sourceRepositoryId) {\n // when using all graphs, we don't need to send them all to the server\n const namedGraphs = this._owlOrShaclSourceType === OntologyShaclShapeSource.USE_ALL_GRAPHS ? [] : this.selectedGraphs.getGraphIds();\n return new CreateEndpointFromOwlRequest({\n id: this.params.endpointId,\n label: this.params.endpointLabel,\n description: this.params.endpointDescription,\n fromRepo: sourceRepositoryId,\n namedGraphs: namedGraphs,\n vocabPrefix: this.params.vocPrefix,\n config: this.settings.toFlatJSON()\n });\n }\n\n /**\n * Returns an array of GraphQL endpoint overview models for the selected shapes.\n * @returns {GraphqlEndpointOverview[]}\n */\n getSelectedGraphqlSchemaShapesOverview() {\n if (this.generateFromGraphqlSchemaShapes()) {\n return this.selectedGraphqlSchemaShapes.processShapes((shape) => {\n return new GraphqlEndpointOverview({\n label: shape.label || shape.id,\n uri: shape.id\n });\n });\n }\n if (this.generateFromShaclShapes()) {\n if (this.selectedGraphs.isEmpty) {\n return [new GraphqlEndpointOverview({\n label: `${this.params.endpointId}`\n })];\n }\n return this.selectedGraphs.processGraphList((graph) => {\n return new GraphqlEndpointOverview({\n label: graph.label || graph.uri,\n uri: graph.uri\n });\n });\n }\n }\n\n /**\n * Returns the count of selected GraphQL schema shapes.\n * @returns {number} The count of selected GraphQL schema shapes.\n */\n getSelectedGraphqlSchemaShapesCount() {\n return this.selectedGraphqlSchemaShapes.shapes.length;\n }\n\n /**\n * Returns if there are selected GraphQL schema shapes.\n * @returns {boolean} True if there are selected GraphQL schema shapes, false otherwise.\n */\n hasSelectedGraphqlSchemaShapes() {\n return this.getSelectedGraphqlSchemaShapesCount() > 0;\n }\n\n /**\n * Returns the count of selected graphs.\n * @returns {number} The count of selected graphs.\n */\n getSelectedGraphsCount() {\n return this.selectedGraphs.graphList.length;\n }\n\n /**\n * Returns if there are selected graphs.\n * @returns {boolean} True if there are selected graphs, false otherwise.\n */\n hasSelectedGraphs() {\n return this.getSelectedGraphsCount() > 0;\n }\n\n get owlOrShaclSourceType() {\n return this._owlOrShaclSourceType;\n }\n\n set owlOrShaclSourceType(value) {\n this._owlOrShaclSourceType = value;\n }\n\n get schemaSourceType() {\n return this._schemaSourceType;\n }\n\n set schemaSourceType(value) {\n this._schemaSourceType = value;\n }\n\n get settings() {\n return this._settings;\n }\n\n set settings(value) {\n this._settings = value;\n }\n\n get selectedGraphs() {\n return this._selectedGraphs;\n }\n\n set selectedGraphs(value) {\n this._selectedGraphs = value;\n }\n\n get params() {\n return this._params;\n }\n\n set params(value) {\n this._params = value;\n }\n\n get selectedGraphqlSchemaShapes() {\n return this._selectedGraphqlSchemaShapes;\n }\n\n set selectedGraphqlSchemaShapes(value) {\n this._selectedGraphqlSchemaShapes = value;\n }\n}\n\nexport class GraphqlEndpointParams {\n /**\n * @type {string}\n * @private\n */\n _endpointId;\n /**\n * @type {string}\n * @private\n */\n _endpointLabel;\n /**\n * @type {string}\n * @private\n */\n _endpointDescription;\n /**\n * @type {string}\n * @private\n */\n _vocPrefix;\n\n constructor(data) {\n this._endpointId = data.endpointId || '';\n this._endpointLabel = data.endpointLabel || '';\n this._vocPrefix = data.vocPrefix || '';\n this._endpointDescription = data.endpointDescription || '';\n }\n\n get endpointId() {\n return this._endpointId;\n }\n\n set endpointId(value) {\n this._endpointId = value;\n }\n\n get endpointLabel() {\n return this._endpointLabel;\n }\n\n set endpointLabel(value) {\n this._endpointLabel = value;\n }\n\n get endpointDescription() {\n return this._endpointDescription;\n }\n\n set endpointDescription(value) {\n this._endpointDescription = value;\n }\n\n get vocPrefix() {\n return this._vocPrefix;\n }\n\n set vocPrefix(value) {\n this._vocPrefix = value;\n }\n\n toJSON() {\n return {\n endpointId: this.endpointId,\n endpointLabel: this.endpointLabel,\n vocPrefix: this.vocPrefix,\n description: this.endpointDescription\n };\n }\n}\n","export class Wizard {\n /**\n * @type {WizardStep[]}\n */\n #steps = [];\n /**\n * The current step of the wizard.\n * @type {number}\n */\n #currentStep = 0;\n\n /**\n * @param {WizardStep[]} steps The steps of the wizard.\n * @param {number} currentStep The current step of the wizard.\n */\n constructor(steps= [], currentStep = 0) {\n this.#steps = steps;\n this.#currentStep = currentStep;\n }\n\n /**\n * Adds a step to the wizard.\n * @param {WizardStep} step\n * @returns {Wizard}\n */\n addStep(step) {\n this.#steps.push(step);\n return this;\n }\n\n getActiveStep() {\n return this.#steps.find((step) => step.active);\n }\n\n isAPreviousStep(step) {\n return this.#steps.indexOf(step) < this.#currentStep;\n }\n\n /**\n * Makes a step active.\n * @param {WizardStep} step\n */\n setStepActive(step) {\n this.#steps.forEach((wizardStep) => wizardStep.active = false);\n step.active = true;\n\n const stepIndex = this.#steps.indexOf(step);\n this.#currentStep = stepIndex;\n\n // Reset all visited statuses\n this.#steps.forEach((current, currentStepIndex) => {\n // Mark steps as visited only if they come before the current step\n current.visited = currentStepIndex < stepIndex;\n });\n }\n\n /**\n * Makes the previous step active if there is one.\n * @return {WizardStep}\n */\n previousStep() {\n if (this.#currentStep > 0) {\n this.#currentStep--;\n }\n const previousStep = this.#steps[this.#currentStep];\n this.setStepActive(previousStep);\n return previousStep;\n }\n\n /**\n * Makes the next step active if there is one.\n * @return {WizardStep}\n */\n nextStep() {\n if (this.#currentStep < this.#steps.length - 1) {\n this.#currentStep++;\n }\n const nextStep = this.#steps[this.#currentStep];\n this.setStepActive(nextStep);\n return nextStep;\n }\n\n get steps() {\n return this.#steps;\n }\n\n set steps(value) {\n this.#steps = value;\n }\n\n get currentStep() {\n return this.#currentStep;\n }\n\n set currentStep(value) {\n this.#currentStep = value;\n }\n}\n\nexport class WizardStep {\n /**\n * The id of the step. It must be unique.\n * @type {string}\n */\n #id = '';\n /**\n * The active status of the step.\n * @type {boolean}\n */\n #active = false;\n /**\n * The visited status of the step.\n * @type {boolean}\n */\n #visited = false;\n /**\n * The URL of the template of the step.\n * @type {string}\n */\n #templateUrl = '';\n /**\n * The page url of the step. This will be appended to the route.\n * @type {string}\n */\n #page = '';\n\n constructor(id, templateUrl, page, active = false) {\n this.#id = id;\n this.#active = active;\n this.#templateUrl = templateUrl;\n this.#page = page;\n this.#visited = false;\n }\n\n get page() {\n return this.#page;\n }\n\n set page(value) {\n this.#page = value;\n }\n\n get templateUrl() {\n return this.#templateUrl;\n }\n\n set templateUrl(value) {\n this.#templateUrl = value;\n }\n\n get active() {\n return this.#active;\n }\n\n set active(value) {\n this.#active = value;\n }\n\n get id() {\n return this.#id;\n }\n\n set id(value) {\n this.#id = value;\n }\n\n get visited() {\n return this.#visited;\n }\n\n set visited(value) {\n this.#visited = value;\n }\n}\n","import {WizardStep} from \"./wizard\";\n\nexport const SchemaSourceType = {\n GRAPHQL_SCHEMA_SHAPES: 'graphql_schema_shapes',\n SHACL_SHAPES: 'shacl_shapes'\n};\n\nexport const OntologyShaclShapeSource = {\n USE_ALL_GRAPHS: 'use_all_graphs',\n USE_SHACL_SHAPE_GRAPH: 'use_shacl_shape_graph',\n PICK_GRAPHS: 'pick_graphs'\n}\n\nexport class SelectSchemaSourceStep extends WizardStep {\n _schemaSourceTypes = [\n {value: SchemaSourceType.GRAPHQL_SCHEMA_SHAPES},\n {value: SchemaSourceType.SHACL_SHAPES}\n ];\n _schemaSourceType = this._schemaSourceTypes[0].value;\n\n _ontologyShaclShapeSources = [\n {value: OntologyShaclShapeSource.USE_ALL_GRAPHS},\n {value: OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH},\n {value: OntologyShaclShapeSource.PICK_GRAPHS}\n ];\n _ontotlogyShaclShapeSource = this._ontologyShaclShapeSources[0].value;\n\n constructor() {\n super('select_schema_sources', undefined, 'schema-sources',true);\n }\n\n get ontotlogyShaclShapeSource() {\n return this._ontotlogyShaclShapeSource;\n }\n\n set ontotlogyShaclShapeSource(value) {\n this._ontotlogyShaclShapeSource = value;\n }\n\n get ontologyShaclShapeSources() {\n return this._ontologyShaclShapeSources;\n }\n\n set ontologyShaclShapeSources(value) {\n this._ontologyShaclShapeSources = value;\n }\n\n get schemaSourceType() {\n return this._schemaSourceType;\n }\n\n set schemaSourceType(value) {\n this._schemaSourceType = value;\n }\n\n get schemaSourceTypes() {\n return this._schemaSourceTypes;\n }\n\n set schemaSourceTypes(value) {\n this._schemaSourceTypes = value;\n }\n}\n\nexport class ConfigureEndpointStep extends WizardStep {\n constructor() {\n super('configure_endpoint', undefined, 'endpoint-config', false);\n }\n}\n\nexport class GenerateEndpointStep extends WizardStep {\n constructor() {\n super('generate_endpoint', undefined, 'generate-endpoint', false);\n }\n}\n","export class CreateEndpointFromShapesRequest {\n /**\n * @type {string}\n * @private\n */\n _fromRepo;\n /**\n * @type {string[]}\n * @private\n */\n _shapes;\n /**\n * @type {Object.<string, *>}\n * @private\n */\n _config;\n\n constructor(data) {\n this._fromRepo = data.fromRepo || '';\n this._shapes = data.shapes || [];\n this._config = data.config || {};\n }\n\n toJSON() {\n return {\n fromRepo: this.fromRepo,\n shapes: this.shapes,\n config: this.config\n };\n }\n\n get fromRepo() {\n return this._fromRepo;\n }\n\n set fromRepo(value) {\n this._fromRepo = value;\n }\n\n get shapes() {\n return this._shapes;\n }\n\n set shapes(value) {\n this._shapes = value;\n }\n\n get config() {\n return this._config;\n }\n\n set config(value) {\n this._config = value;\n }\n}\n","export class CreateEndpointFromOwlRequest {\n /**\n * The source repository ID from which the schema will be generated. If empty, the current repository is used.\n * @type {string}\n * @private\n */\n _fromRepo;\n /**\n * A list of named graphs to be included in the schema generation process. If empty, all repository data is considered.\n * @type {string[]}\n * @private\n */\n _namedGraphs;\n /**\n * A unique identifier for the generated schema.\n * @type {string}\n * @private\n */\n _id;\n /**\n * A user-friendly name for the schema.\n * @type {string}\n * @private\n */\n _label;\n /**\n * A description of the schema for documentation purposes.\n * @type {string}\n * @private\n */\n _description;\n /**\n * A prefix used for vocabulary terms in the schema.\n * @type {string}\n * @private\n */\n _vocPrefix;\n /**\n * The schema configuration settings, including details such as schema ID, label, description, and vocabulary prefix.\n * @type {Object.<string, *>}\n * @private\n */\n _config;\n\n constructor(data) {\n this._id = data.id || '';\n this._label = data.label || '';\n this._description = data.description || '';\n this._fromRepo = data.fromRepo || '';\n this._namedGraphs = data.namedGraphs || [];\n this._vocPrefix = data.vocabPrefix || '';\n this._config = data.config || {};\n }\n\n toJSON() {\n return {\n id: this.id,\n label: this.label,\n description: this.description,\n fromRepo: this.fromRepo,\n namedGraphs: this.namedGraphs,\n vocabPrefix: this.vocPrefix,\n config: this.config\n };\n }\n\n get fromRepo() {\n return this._fromRepo;\n }\n\n set fromRepo(value) {\n this._fromRepo = value;\n }\n\n get namedGraphs() {\n return this._namedGraphs;\n }\n\n set namedGraphs(value) {\n this._namedGraphs = value;\n }\n\n get id() {\n return this._id;\n }\n\n set id(value) {\n this._id = value;\n }\n\n get label() {\n return this._label;\n }\n\n set label(value) {\n this._label = value;\n }\n\n get description() {\n return this._description;\n }\n\n set description(value) {\n this._description = value;\n }\n\n get vocPrefix() {\n return this._vocPrefix;\n }\n\n set vocPrefix(value) {\n this._vocPrefix = value;\n }\n\n get config() {\n return this._config;\n }\n\n set config(value) {\n this._config = value;\n }\n}\n","import {cloneDeep} from 'lodash';\nimport {GraphqlEndpointConfiguration} from \"../../models/graphql/graphql-endpoint-configuration\";\nimport {EndpointGenerationReportList} from \"../../models/graphql/endpoint-generation-report\";\n\nangular\n .module('graphdb.framework.graphql.services.graphql-context', [])\n .factory('GraphqlContextService', GraphqlContextService);\n\nGraphqlContextService.$inject = ['EventEmitterService', 'GraphqlService'];\n\nfunction GraphqlContextService(EventEmitterService) {\n /**\n * The source repository from which the sources for the GraphQL schema generation are retrieved.\n * @type {string|undefined}`\n */\n let _sourceRepository = undefined;\n\n /**\n * The selected GraphQL endpoint info. The endpoint is selected when the user clicks on an endpoint in the endpoint\n * management view.\n * @type {GraphqlEndpointInfo|undefined}\n * @private\n */\n let _selectedEndpoint = undefined;\n\n /**\n * The new GraphQL endpoint is present when a new endpoint is being created.\n * @type {GraphqlEndpointConfiguration|undefined}\n * @private\n */\n let _newEndpointConfiguration = undefined;\n\n /**\n * Returns the value of the source repository.\n * @returns {string|undefined}\n */\n const getSourceRepository = () => {\n return _sourceRepository;\n };\n\n /**\n * Updates the source repository and emits an event with the new repository id.\n * @param {string} repositoryId The new source repository id.\n */\n const updateSourceRepository = (repositoryId) => {\n _sourceRepository = repositoryId;\n emit(GraphqlEventName.SOURCE_REPOSITORY_UPDATED, getSourceRepository());\n };\n\n /**\n * Returns the value of the new GraphQL endpoint.\n * @returns {GraphqlEndpointConfiguration|undefined}\n */\n const getNewEndpoint = () => {\n return _newEndpointConfiguration;\n };\n\n /**\n * Resets the context by clearing all the stored values.\n */\n const resetContext = () => {\n _selectedEndpoint = undefined;\n _newEndpointConfiguration = undefined;\n };\n\n /**\n * Sets the selected GraphQL endpoint.\n * @param {GraphqlEndpointInfo|EndpointGenerationReport} endpoint The selected endpoint.\n */\n const setSelectedEndpoint = (endpoint) => {\n _selectedEndpoint = endpoint;\n };\n\n /**\n * Returns a clone value of the selected GraphQL endpoint.\n * @return {GraphqlEndpointInfo|undefined}\n */\n const getSelectedEndpoint = () => {\n return cloneDeep(_selectedEndpoint);\n };\n\n /**\n * Initializes the new endpoint configuration and emits an event with the new endpoint configuration.\n */\n const createEndpointConfig = () => {\n _newEndpointConfiguration = new GraphqlEndpointConfiguration();\n EventEmitterService.emitSync(GraphqlEventName.ENDPOINT_CONFIG_CREATED, _newEndpointConfiguration);\n }\n\n const onEndpointConfigCreated = (callback) => {\n if (_newEndpointConfiguration && angular.isFunction(callback)) {\n callback(_newEndpointConfiguration);\n }\n return subscribe(GraphqlEventName.ENDPOINT_CONFIG_CREATED, (endpoint) => callback(endpoint));\n };\n\n const startCreateEndpointWizard = () => {\n emit(GraphqlEventName.START_CREATE_ENDPOINT_WIZARD, null);\n };\n\n const cancelEndpointCreation = () => {\n emit(GraphqlEventName.CANCEL_ENDPOINT_CREATION, {});\n }\n\n const finishGenerationWorkflow = () => {\n emit(GraphqlEventName.FINISH_GENERATION_WORKFLOW, {});\n }\n\n const nextEndpointCreationStep = () => {\n emit(GraphqlEventName.NEXT_ENDPOINT_CREATION_STEP, {});\n }\n\n const previousEndpointCreationStep = () => {\n emit(GraphqlEventName.PREVIOUS_ENDPOINT_CREATION_STEP, {});\n }\n\n const generateEndpoint = () => {\n emit(GraphqlEventName.GENERATE_ENDPOINT, getNewEndpoint());\n }\n\n /**\n * Emits an event when the endpoint generation is completed.\n * @param {EndpointGenerationReportList} endpointGenerationReportList The list of endpoint generation reports.\n */\n const endpointGenerated = (endpointGenerationReportList) => {\n emit(GraphqlEventName.ENDPOINT_GENERATED, endpointGenerationReportList);\n }\n\n /**\n * Emits an event to explore the generated endpoint in the GraphQL Playground.\n * @param endpoint\n */\n const exploreEndpointInPlayground = (endpoint) => {\n emit(GraphqlEventName.EXPLORE_ENDPOINT_IN_PLAYGROUND, endpoint);\n }\n\n /**\n * Emits an event to open the endpoint generation report.\n * @param {EndpointGenerationReport} endpointReport The endpoint generation report.\n */\n const openEndpointGenerationReport = (endpointReport) => {\n emit(GraphqlEventName.OPEN_ENDPOINT_GENERATION_REPORT, endpointReport);\n }\n\n /**\n * Emits an event to delete the endpoint generation report.\n * @param {EndpointGenerationReport} endpointReport The endpoint generation report.\n */\n const deleteEndpointGenerationReport = (endpointReport) => {\n emit(GraphqlEventName.DELETE_ENDPOINT_REPORT, endpointReport);\n }\n\n /**\n * Emits an event with a deep-cloned payload using the EventEmitterService.\n *\n * @param {string} event - The name of the event to emit. It must be a value from {@link GraphqlEventName}.\n * @param {*} payload - The data to emit with the event. The payload is deep-cloned before emission.\n */\n const emit = (event, payload) => {\n EventEmitterService.emitSync(event, cloneDeep(payload));\n };\n\n /**\n * Subscribes to an event with the specified callback using the EventEmitterService.\n *\n * @param {string} event - The name of the event to subscribe to. It must be a value from {@link GraphqlEventName}.\n * @param {function} callback - The function to call when the event is emitted.\n * @return {function} - Returns a function that can be called to unsubscribe from the event.\n */\n const subscribe = (event, callback) => {\n return EventEmitterService.subscribeSync(event, (payload) => callback(payload));\n };\n\n return {\n resetContext,\n updateSourceRepository,\n getSourceRepository,\n setSelectedEndpoint,\n getSelectedEndpoint,\n getNewEndpoint,\n createEndpointConfig,\n onEndpointConfigCreated,\n startCreateEndpointWizard,\n generateEndpoint,\n endpointGenerated,\n exploreEndpointInPlayground,\n openEndpointGenerationReport,\n deleteEndpointGenerationReport,\n cancelEndpointCreation,\n finishGenerationWorkflow,\n nextEndpointCreationStep,\n previousEndpointCreationStep,\n subscribe\n };\n}\n\nexport const GraphqlEventName = {\n /**\n * The event emitted when the source repository is updated.\n */\n SOURCE_REPOSITORY_UPDATED: 'sourceRepositoryUpdated',\n /**\n * The event emitted when the user wants to start the create endpoint wizard.\n */\n START_CREATE_ENDPOINT_WIZARD: 'startCreateEndpointWizard',\n /**\n * The event emitted when an endpoint configuration is created.\n */\n ENDPOINT_CONFIG_CREATED: 'updateConfigCreated',\n /**\n * The event emitted when a new GraphQL endpoint should be generated.\n */\n GENERATE_ENDPOINT: 'generateEndpoint',\n /**\n * The event emitted when the GraphQL endpoint generation completes.\n */\n ENDPOINT_GENERATED: 'endpointGenerated',\n /**\n * The event emitted when the user wants to cancel the endpoint creation.\n */\n CANCEL_ENDPOINT_CREATION: 'cancelEndpointCreation',\n /**\n * The event emitted when the user wants to finish the endpoint generation workflow.\n */\n FINISH_GENERATION_WORKFLOW: 'finishGenerationWorkflow',\n /**\n * The event emitted when the user wants to explore the generated endpoint in the GraphQL Playground.\n */\n EXPLORE_ENDPOINT_IN_PLAYGROUND: 'exploreEndpointInPlayground',\n /**\n * The event emitted when the user wants to open the endpoint generation report.\n */\n OPEN_ENDPOINT_GENERATION_REPORT: 'openEndpointGenerationReport',\n /**\n * The event emitted when the user wants to delete the endpoint generation report.\n */\n DELETE_ENDPOINT_REPORT: 'deleteEndpointReport',\n /**\n * The event emitted when the user wants to move to the next step in the create endpoint wizard.\n */\n NEXT_ENDPOINT_CREATION_STEP: 'nextEndpointCreationStep',\n /**\n * The event emitted when the user wants to move to the previous step in the create endpoint wizard.\n */\n PREVIOUS_ENDPOINT_CREATION_STEP: 'previousEndpointCreationStep'\n};\n"],"names":["GraphqlEndpointConfiguration","_schemaSourceType","_owlOrShaclSourceType","_selectedGraphqlSchemaShapes","_selectedGraphs","_params","_settings","constructor","this","SchemaSourceType","GRAPHQL_SCHEMA_SHAPES","OntologyShaclShapeSource","USE_ALL_GRAPHS","GraphqlSchemaShapes","GraphListOptions","GraphqlEndpointParams","_endpointConfigurationSettings","GraphqlEndpointConfigurationSettings","generateFromGraphqlSchemaShapes","schemaSourceType","generateFromShaclShapes","SHACL_SHAPES","toCreateEndpointFromShapesRequest","sourceRepositoryId","CreateEndpointFromShapesRequest","fromRepo","shapes","selectedGraphqlSchemaShapes","getShapeIds","config","settings","toFlatJSON","toCreateEndpointFromOwlRequest","namedGraphs","selectedGraphs","getGraphIds","CreateEndpointFromOwlRequest","id","params","endpointId","label","endpointLabel","description","endpointDescription","vocabPrefix","vocPrefix","getSelectedGraphqlSchemaShapesOverview","processShapes","shape","GraphqlEndpointOverview","uri","isEmpty","processGraphList","graph","getSelectedGraphqlSchemaShapesCount","length","hasSelectedGraphqlSchemaShapes","getSelectedGraphsCount","graphList","hasSelectedGraphs","owlOrShaclSourceType","value","_endpointId","_endpointLabel","_endpointDescription","_vocPrefix","data","toJSON","Wizard","steps","currentStep","addStep","step","push","getActiveStep","find","active","isAPreviousStep","indexOf","setStepActive","forEach","wizardStep","stepIndex","current","currentStepIndex","visited","previousStep","nextStep","WizardStep","templateUrl","page","USE_SHACL_SHAPE_GRAPH","PICK_GRAPHS","SelectSchemaSourceStep","_schemaSourceTypes","_ontologyShaclShapeSources","_ontotlogyShaclShapeSource","super","undefined","ontotlogyShaclShapeSource","ontologyShaclShapeSources","schemaSourceTypes","ConfigureEndpointStep","GenerateEndpointStep","_fromRepo","_shapes","_config","_namedGraphs","_id","_label","_description","GraphqlContextService","EventEmitterService","_sourceRepository","_selectedEndpoint","_newEndpointConfiguration","getSourceRepository","getNewEndpoint","emit","event","payload","emitSync","cloneDeep","subscribe","callback","subscribeSync","resetContext","updateSourceRepository","repositoryId","GraphqlEventName","SOURCE_REPOSITORY_UPDATED","setSelectedEndpoint","endpoint","getSelectedEndpoint","createEndpointConfig","ENDPOINT_CONFIG_CREATED","onEndpointConfigCreated","angular","isFunction","startCreateEndpointWizard","START_CREATE_ENDPOINT_WIZARD","generateEndpoint","GENERATE_ENDPOINT","endpointGenerated","endpointGenerationReportList","ENDPOINT_GENERATED","exploreEndpointInPlayground","EXPLORE_ENDPOINT_IN_PLAYGROUND","openEndpointGenerationReport","endpointReport","OPEN_ENDPOINT_GENERATION_REPORT","deleteEndpointGenerationReport","DELETE_ENDPOINT_REPORT","cancelEndpointCreation","CANCEL_ENDPOINT_CREATION","finishGenerationWorkflow","FINISH_GENERATION_WORKFLOW","nextEndpointCreationStep","NEXT_ENDPOINT_CREATION_STEP","previousEndpointCreationStep","PREVIOUS_ENDPOINT_CREATION_STEP","module","factory","$inject"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_id__=34495;export const __webpack_ids__=[34495];export const __webpack_modules__={34495:(t,o,e)=>{e.r(o),e.d(o,{default:()=>a});const a='<link href="css/ttyg/external-integration-configuration-modal.css?v=3.2.0-TR1" rel="stylesheet"/> <div class="modal-header"> <button type="button" class="close" ng-click="close()"></button> <h4 class="modal-title">{{\'ttyg.agent.external_integration_config_modal.title\' | translate}}</h4> </div> <div class="modal-body"> <h6 class="modal-title"> {{ \'ttyg.agent.external_integration_config_modal.label\' | translate:{agentName: agentName} }} </h6> <form class="form-horizontal"> <div class="form-group"> <label for="agentId" class="control-label"> {{ \'ttyg.agent.external_integration_config_modal.agent_id_label\' | translate }} </label> <div class="input-group"> <input type="text" class="form-control" id="agentId" ng-model="agentId" readonly="readonly"> <span class="input-group-addon" gdb-tooltip="{{ \'ttyg.agent.external_integration_config_modal.copy_tooltip\' | translate }}"> <copy-to-clipboard text-to-copy="{{agentId}}" success-message="{{ \'ttyg.agent.external_integration_config_modal.agent_copied_tooltip\' | translate }}"> </copy-to-clipboard> </span> </div> </div> <div class="form-group"> <label for="queryMethods" class="control-label"> {{ \'ttyg.agent.external_integration_config_modal.query_methods\' | translate }} </label> <div class="input-group"> <input type="text" class="form-control" id="queryMethods" ng-model="queryMethods" readonly="readonly"> <span class="input-group-addon" gdb-tooltip="{{ \'ttyg.agent.external_integration_config_modal.copy_tooltip\' | translate }}"> <copy-to-clipboard text-to-copy="{{queryMethods}}" success-message="{{ \'ttyg.agent.external_integration_config_modal.openAPI_copied_tooltip\' | translate }}"> </copy-to-clipboard> </span> </div> </div> <div class="form-group"> <label for="difyExtension" class="control-label"> {{ \'ttyg.agent.external_integration_config_modal.dify_extension\' | translate }} </label> <div class="input-group"> <input type="text" class="form-control" id="difyExtension" ng-model="difyExtension" readonly="readonly"> <span class="input-group-addon" gdb-tooltip="{{ \'ttyg.agent.external_integration_config_modal.copy_tooltip\' | translate }}"> <copy-to-clipboard text-to-copy="{{difyExtension}}" success-message="{{ \'ttyg.agent.external_integration_config_modal.dify_extension_copied_tooltip\' | translate }}"> </copy-to-clipboard> </span> </div> </div> </form> </div> '}};
|
|
2
|
+
//# sourceMappingURL=34495.cfa15bda8009fa37c6ff.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"34495.cfa15bda8009fa37c6ff.bundle.js","mappings":"uJAGA,QAFW,qzE","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/ttyg/external-integration-configuration-modal.css?v=3.2.0-TR1\" rel=\"stylesheet\"/> <div class=\"modal-header\"> <button type=\"button\" class=\"close\" ng-click=\"close()\"></button> <h4 class=\"modal-title\">{{'ttyg.agent.external_integration_config_modal.title' | translate}}</h4> </div> <div class=\"modal-body\"> <h6 class=\"modal-title\"> {{ 'ttyg.agent.external_integration_config_modal.label' | translate:{agentName: agentName} }} </h6> <form class=\"form-horizontal\"> <div class=\"form-group\"> <label for=\"agentId\" class=\"control-label\"> {{ 'ttyg.agent.external_integration_config_modal.agent_id_label' | translate }} </label> <div class=\"input-group\"> <input type=\"text\" class=\"form-control\" id=\"agentId\" ng-model=\"agentId\" readonly=\"readonly\"> <span class=\"input-group-addon\" gdb-tooltip=\"{{ 'ttyg.agent.external_integration_config_modal.copy_tooltip' | translate }}\"> <copy-to-clipboard text-to-copy=\"{{agentId}}\" success-message=\"{{ 'ttyg.agent.external_integration_config_modal.agent_copied_tooltip' | translate }}\"> </copy-to-clipboard> </span> </div> </div> <div class=\"form-group\"> <label for=\"queryMethods\" class=\"control-label\"> {{ 'ttyg.agent.external_integration_config_modal.query_methods' | translate }} </label> <div class=\"input-group\"> <input type=\"text\" class=\"form-control\" id=\"queryMethods\" ng-model=\"queryMethods\" readonly=\"readonly\"> <span class=\"input-group-addon\" gdb-tooltip=\"{{ 'ttyg.agent.external_integration_config_modal.copy_tooltip' | translate }}\"> <copy-to-clipboard text-to-copy=\"{{queryMethods}}\" success-message=\"{{ 'ttyg.agent.external_integration_config_modal.openAPI_copied_tooltip' | translate }}\"> </copy-to-clipboard> </span> </div> </div> <div class=\"form-group\"> <label for=\"difyExtension\" class=\"control-label\"> {{ 'ttyg.agent.external_integration_config_modal.dify_extension' | translate }} </label> <div class=\"input-group\"> <input type=\"text\" class=\"form-control\" id=\"difyExtension\" ng-model=\"difyExtension\" readonly=\"readonly\"> <span class=\"input-group-addon\" gdb-tooltip=\"{{ 'ttyg.agent.external_integration_config_modal.copy_tooltip' | translate }}\"> <copy-to-clipboard text-to-copy=\"{{difyExtension}}\" success-message=\"{{ 'ttyg.agent.external_integration_config_modal.dify_extension_copied_tooltip' | translate }}\"> </copy-to-clipboard> </span> </div> </div> </form> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __webpack_id__=38360;export const __webpack_ids__=[38360];export const __webpack_modules__={38360:(t,e,n)=>{n.r(e),n.d(e,{default:()=>_});const _='<link href="css/markdown-content.css?v=3.
|
|
2
|
-
//# sourceMappingURL=38360.
|
|
1
|
+
export const __webpack_id__=38360;export const __webpack_ids__=[38360];export const __webpack_modules__={38360:(t,e,n)=>{n.r(e),n.d(e,{default:()=>_});const _='<link href="css/markdown-content.css?v=3.2.0-TR1" rel="stylesheet"/> <div class="markdown-content" ng-bind-html="markdownContent"></div> '}};
|
|
2
|
+
//# sourceMappingURL=38360.0a90e77042876c86b279.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"38360.0a90e77042876c86b279.bundle.js","mappings":"uJAGA,QAFW,2I","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/templates/markdown-content/markdown-content.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/markdown-content.css?v=3.2.0-TR1\" rel=\"stylesheet\"/> <div class=\"markdown-content\" ng-bind-html=\"markdownContent\"></div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_id__=38412;export const __webpack_ids__=[38412,73779];export const __webpack_modules__={38412:(e,a,t)=>{t.r(a);var n=t(69289),i=t(73779);angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",r),r.$inject=["$http","Upload"];const l=!1;function r(e,a){const t=new i.GraphqlRestServiceMock;return{getEndpoints:a=>l?t.getEndpointsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/endpoints`),getEndpointsInfo:(a,i)=>l?t.getEndpointsInfoMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/list`),getGraphqlSchemaShapes:a=>l?t.getGraphqlSchemaShapesMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/graphql_shapes`),getPrefixes:a=>l?t.getPrefixesMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/prefixes`),getShaclShapeGraphs:a=>l?t.getShaclGraphsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/shacl_graphs`),getGraphqlGenerationSettings:a=>l?t.getGraphqlGenerationSettingsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/config`),getGraphqlEndpointConfigurationSettings:(a,i)=>l?t.getEndpointConfigurationMock():e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}/config`),getEndpointConfiguration:(a,i)=>l?t.getEndpointConfiguration():e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`),editEndpointConfiguration:(a,i,r)=>l?t.saveEndpointConfigurationMock():e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`,r),deleteEndpoint:(a,i)=>l?t.deleteEndpointMock(a,i):e.delete(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`),generateEndpointFromGraphqlShapes:(a,i)=>l?t.generateEndpointFromGraphqlShapesMock(i):e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/graphql_shapes`,i),generateEndpointFromOwl:(a,i)=>l?t.generateEndpointFromOwl(i):e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/owl_shacl`,i),exportEndpointDefinition:(a,t)=>e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${t}/export`,{responseType:"blob"}),importEndpointDefinition:(e,t)=>a.http({url:`${n.REPOSITORIES_ENDPOINT}/${e}/graphql/manage/endpoints/import`,data:t,headers:{"Content-Type":void 0}}),deleteEndpointGenerationReport:(a,t)=>e.patch(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${t}/messages`)}}},73779:(e,a,t)=>{t.r(a),t.d(a,{GraphqlRestServiceMock:()=>l});var n=t(98980);const i=200;class l{getEndpointsMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(r)}),200)})}getEndpointsInfoMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(s)}),i)})}getGraphqlSchemaShapesMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(o)}),i)})}getEndpointConfigurationMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(c)}),i)})}getGraphqlGenerationSettingsMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(p)}),i)})}}const r={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}]},s={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:""}]},o={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}]},c={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}]},p={configs:[{key:"stringMode",value:"stringOrLangString",label:"stringMode",description:"Specifies the default string mode for data properties without a range definition",type:"string",collection:!1,values:["string","langString","stringOrLangString"],required:!0,regex:null,group:"generic",hidden:!1},{key:"useUnions",value:!0,label:"useUnions",description:"Should GraphQL Unions be used in the result model",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!1},{key:"forceInterfaceTypes",value:!1,label:"forceInterfaceTypes",description:"Decide if parent types are always interfaces or split with interface and subclass",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!1},{key:"defaultMaxCardinality",value:"inf",label:"defaultMaxCardinality",description:"The default maximum cardinality for all values. This defines if properties without explicit cardinality configuration are by default multi or single valued.",type:"string",collection:!1,values:null,required:!1,regex:"^\\d+|inf$",group:"generic",hidden:!1},{key:"readShaclPropertyLabels",value:!0,label:"readShaclPropertyLabels",description:"If the labels and description for the sh:PropertyShape should be used over the sh:path label and description",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!0},{key:"removeUnknownRanges",value:!0,label:"removeUnknownRanges",description:"Should remove the invalid and undefined ranges ",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"cleanInvalidInverseOf",value:!0,label:"cleanInvalidInverseOf",description:"Try to fix invalid owl:inverseOf relations",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"includeDeactivatedShapes",value:!1,label:"includeDeactivatedShapes",description:"Include the sh:deactivated shapes in the model",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"readRBACRules",value:!0,label:"readRBACRules",description:"Read RBAC rules from the models",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"enterprise",hidden:!0}]}}};
|
|
2
|
+
//# sourceMappingURL=38412.fa86361561ffa367709f.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"38412.fa86361561ffa367709f.bundle.js","mappings":"gKAGAA,QACKC,OAAO,yCAA0C,IACjDC,QAAQ,qBAAsBC,GAEnCA,EAAmBC,QAAU,CAAC,QAAS,UAGvC,MAAMC,GAAc,EAEpB,SAASF,EAAmBG,EAAOC,GAC/B,MAAMC,EAAe,IAAIC,EAAAA,uBA+LzB,MAAO,CACHC,aAzLkBC,GACdN,EACOG,EAAaI,iBAAiBD,GAElCL,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBH,uBAsL7CI,iBA7KqBA,CAACJ,EAAcK,IAChCX,EACOG,EAAaS,qBAAqBN,GAEtCL,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBH,yBA0K7CO,uBAlK4BP,GACxBN,EACOG,EAAaW,2BAA2BR,GAE5CL,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBH,mCA+J7CS,YAvJiBT,GACbN,EACOG,EAAaa,gBAAgBV,GAEjCL,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBH,6BAoJ7CW,oBA5IyBX,GACrBN,EACOG,EAAae,mBAAmBZ,GAEpCL,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBH,iCAyI7Ca,6BAjIkCC,GAC9BpB,EACOG,EAAakB,iCAAiCD,GAElDnB,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBW,oCA8H7CE,wCArH4CA,CAAChB,EAAciB,IACvDvB,EACOG,EAAaqB,+BAEjBvB,EAAMO,IAAI,GAAGC,EAAAA,yBAAyBH,8BAAyCiB,YAkHtFE,yBAzG6BA,CAACnB,EAAciB,IACxCvB,EACOG,EAAasB,2BAEjBxB,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f,KAAQ,SACR,YAAc,EACd,OAAU,CACN,SACA,aACA,sBAEJ,UAAY,EACZ,MAAS,KACT,MAAS,UACT,QAAU,GAEd,CACI,IAAO,YACP,OAAS,EACT,MAAS,YACT,YAAe,oDACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,UACT,QAAU,GAEd,CACI,IAAO,sBACP,OAAS,EACT,MAAS,sBACT,YAAe,oFACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,UACT,QAAU,GAEd,CACI,IAAO,wBACP,MAAS,MACT,MAAS,wBACT,YAAe,+JACf,KAAQ,SACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,aACT,MAAS,UACT,QAAU,GAEd,CACI,IAAO,0BACP,OAAS,EACT,MAAS,0BACT,YAAe,+GACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,UACT,QAAU,GAEd,CACI,IAAO,sBACP,OAAS,EACT,MAAS,sBACT,YAAe,kDACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,cACT,QAAU,GAEd,CACI,IAAO,wBACP,OAAS,EACT,MAAS,wBACT,YAAe,6CACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,cACT,QAAU,GAEd,CACI,IAAO,2BACP,OAAS,EACT,MAAS,2BACT,YAAe,iDACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,cACT,QAAU,GAEd,CACI,IAAO,gBACP,OAAS,EACT,MAAS,gBACT,YAAe,kCACf,KAAQ,UACR,YAAc,EACd,OAAU,KACV,UAAY,EACZ,MAAS,KACT,MAAS,aACT,QAAU,I","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/rest/graphql.rest.service.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/rest/mock-backend/graphql-rest-service-mock.js"],"sourcesContent":["import {REPOSITORIES_ENDPOINT} from './repositories.rest.service';\nimport {GraphqlRestServiceMock} from \"./mock-backend/graphql-rest-service-mock\";\n\nangular\n .module('graphdb.framework.rest.graphql.service', [])\n .factory('GraphqlRestService', GraphqlRestService);\n\nGraphqlRestService.$inject = ['$http', 'Upload'];\n\n// const DEVELOPMENT = true;\nconst DEVELOPMENT = false;\n\nfunction GraphqlRestService($http, Upload) {\n const _mockBackend = new GraphqlRestServiceMock();\n\n /**\n * Get the GraphQL endpoints for the given repository.\n * @param {string} repositoryId The repository ID.\n * @return {*|Promise<unknown>}\n */\n const getEndpoints = (repositoryId) => {\n if (DEVELOPMENT) {\n return _mockBackend.getEndpointsMock(repositoryId);\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/endpoints`);\n };\n\n /**\n * Get the GraphQL endpoints info for the given repository.\n * @param {string} repositoryId The repository ID.\n * @param {string|undefined} lastModified The last modified date.\n * @return {*|Promise<unknown>}\n */\n const getEndpointsInfo = (repositoryId, lastModified) => {\n if (DEVELOPMENT) {\n return _mockBackend.getEndpointsInfoMock(repositoryId);\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/list`);\n };\n\n /**\n * Get the GraphQL schema shapes for the given repository.\n * @param {string} repositoryId The repository ID.\n * @returns {*|Promise<unknown>}\n */\n const getGraphqlSchemaShapes = (repositoryId) => {\n if (DEVELOPMENT) {\n return _mockBackend.getGraphqlSchemaShapesMock(repositoryId);\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/graphql_shapes`);\n };\n\n /**\n * Get the prefixes for the given repository.\n * @param {string} repositoryId The repository ID.\n * @returns {*|Promise<unknown>}\n */\n const getPrefixes = (repositoryId) => {\n if (DEVELOPMENT) {\n return _mockBackend.getPrefixesMock(repositoryId);\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/prefixes`);\n };\n\n /**\n * Get the SHACL shape graphs for the given repository.\n * @param {string} repositoryId The repository ID.\n * @returns {*|Promise<unknown>} The SHACL shape graphs response.\n */\n const getShaclShapeGraphs = (repositoryId) => {\n if (DEVELOPMENT) {\n return _mockBackend.getShaclGraphsMock(repositoryId);\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/shacl_graphs`);\n };\n\n /**\n * Get the GraphQL generation settings from the backend.\n * @param {string} selectedSourceRepository The selected source repository.\n * @returns {*|Promise<unknown>}\n */\n const getGraphqlGenerationSettings = (selectedSourceRepository) => {\n if (DEVELOPMENT) {\n return _mockBackend.getGraphqlGenerationSettingsMock(selectedSourceRepository);\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${selectedSourceRepository}/graphql/manage/generate/config`);\n };\n\n /**\n * Get the GraphQL endpoint configuration settings from the backend.\n * @param {string} repositoryId The repository ID.\n * @param {string} endpointId The endpoint ID.\n * @returns {*|Promise<unknown>}\n */\n const getGraphqlEndpointConfigurationSettings = (repositoryId, endpointId) => {\n if (DEVELOPMENT) {\n return _mockBackend.getEndpointConfigurationMock();\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/${endpointId}/config`);\n };\n\n /**\n * Get the GraphQL endpoint configuration from the backend.\n * @param {string} repositoryId The repository ID.\n * @param {string} endpointId The endpoint ID.\n * @returns {*|Promise<unknown>}\n */\n const getEndpointConfiguration = (repositoryId, endpointId) => {\n if (DEVELOPMENT) {\n return _mockBackend.getEndpointConfiguration();\n }\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/${endpointId}`);\n };\n\n /**\n * Edit the GraphQL endpoint configuration.\n * @param {string} repositoryId The repository ID.\n * @param {string} endpointId The endpoint ID.\n * @param {*} data The request payload.\n * @returns {*|Promise<unknown>}\n */\n const editEndpointConfiguration = (repositoryId, endpointId, data) => {\n if (DEVELOPMENT) {\n return _mockBackend.saveEndpointConfigurationMock();\n }\n return $http.post(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/${endpointId}`, data);\n };\n\n /**\n * Delete the GraphQL endpoint.\n * @param {string} repositoryId The repository ID.\n * @param {string} endpointId The endpoint ID.\n * @returns {*|Promise<unknown>}\n */\n const deleteEndpoint = (repositoryId, endpointId) => {\n if (DEVELOPMENT) {\n return _mockBackend.deleteEndpointMock(repositoryId, endpointId);\n }\n return $http.delete(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/${endpointId}`);\n };\n\n /**\n * Generate the GraphQL endpoint from the GraphQL schema shapes.\n * @param {string} repositoryId The active repository ID.\n * @param {*} payload The request payload for the generation.\n * @returns {*|Promise<unknown>}\n */\n const generateEndpointFromGraphqlShapes = (repositoryId, payload) => {\n if (DEVELOPMENT) {\n return _mockBackend.generateEndpointFromGraphqlShapesMock(payload);\n }\n return $http.post(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/generate/graphql_shapes`, payload);\n };\n\n /**\n * Generate the GraphQL endpoint from the OWL ontologies.\n * @param {string} repositoryId The active repository ID.\n * @param {*} payload The request payload for the generation.\n * @returns {*|Promise<unknown>}\n */\n const generateEndpointFromOwl = (repositoryId, payload) => {\n if (DEVELOPMENT) {\n return _mockBackend.generateEndpointFromOwl(payload);\n }\n return $http.post(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/generate/owl_shacl`, payload);\n };\n\n /**\n * Export the endpoint definition.\n * @param {string} repositoryId The repository ID.\n * @param {string} endpointId The endpoint ID.\n * @returns {Promise<unknown>} The response from the backend.\n */\n const exportEndpointDefinition = (repositoryId, endpointId) => {\n return $http.get(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/${endpointId}/export`, {responseType: 'blob'});\n };\n\n /**\n * Import the endpoint definitions, either as a single file or as multiple files where the file type can be either\n * yaml or zip.\n * @param {string} repositoryId The repository ID.\n * @param {FormData|File} payload The request payload.\n * @returns {Promise<unknown>} The response from the backend.\n */\n const importEndpointDefinition = (repositoryId, payload) => {\n return Upload.http({\n url: `${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/import`,\n data: payload,\n headers: {\n 'Content-Type': undefined,\n },\n });\n };\n\n /**\n * Deletes the endpoint generation report by calling the backend.\n * @param {string} repositoryId The repository ID.\n * @param {string} endpointId The endpoint ID.\n * @returns {Promise<unknown>} The response from the backend.\n */\n const deleteEndpointGenerationReport = (repositoryId, endpointId) => {\n return $http.patch(`${REPOSITORIES_ENDPOINT}/${repositoryId}/graphql/manage/endpoints/${endpointId}/messages`);\n };\n\n return {\n getEndpoints,\n getEndpointsInfo,\n getGraphqlSchemaShapes,\n getPrefixes,\n getShaclShapeGraphs,\n getGraphqlGenerationSettings,\n getGraphqlEndpointConfigurationSettings,\n getEndpointConfiguration,\n editEndpointConfiguration,\n deleteEndpoint,\n generateEndpointFromGraphqlShapes,\n generateEndpointFromOwl,\n exportEndpointDefinition,\n importEndpointDefinition,\n deleteEndpointGenerationReport,\n };\n}\n","import {cloneDeep} from \"lodash\";\n\nconst GET_ENDPOINTS_DELAY = 200;\nconst GET_ENDPOINTS_INFO_DELAY = 200;\n\nexport class GraphqlRestServiceMock {\n getEndpointsMock(repositoryId) {\n return new Promise((resolve) => {\n setTimeout(() => resolve({data: cloneDeep(endpoints)}), GET_ENDPOINTS_DELAY);\n });\n }\n\n getEndpointsInfoMock(repositoryId) {\n return new Promise((resolve) => {\n setTimeout(() => resolve({data: cloneDeep(endpointsInfo)}), GET_ENDPOINTS_INFO_DELAY);\n // setTimeout(() => resolve({data: cloneDeep(emptyEndpointsInfo)}), GET_ENDPOINTS_INFO_DELAY);\n });\n }\n\n getGraphqlSchemaShapesMock(repositoryId) {\n return new Promise((resolve) => {\n setTimeout(() => resolve({data: cloneDeep(graphqlSchemaShapes)}), GET_ENDPOINTS_INFO_DELAY);\n });\n }\n\n getEndpointConfigurationMock() {\n return new Promise((resolve) => {\n setTimeout(() => resolve({data: cloneDeep(endpointConfiguration)}), GET_ENDPOINTS_INFO_DELAY);\n });\n }\n\n getGraphqlGenerationSettingsMock() {\n return new Promise((resolve) => {\n setTimeout(() => resolve({data: cloneDeep(configSettingsForRepo)}), GET_ENDPOINTS_INFO_DELAY);\n });\n }\n}\n\nconst endpoints = {\n \"repository\": \"swapi\",\n \"endpoints\": [\n {\n \"id\": \"swapi\",\n \"graphQL\": \"/rest/repositories/swapi/graphql/swapi\",\n \"active\": true,\n \"default\": true,\n },\n {\n \"id\": \"film-restricted\",\n \"graphQL\": \"/rest/repositories/swapi/graphql/film-restricted\",\n \"active\": true,\n \"default\": false,\n },\n {\n \"id\": \"swapi-charcters\",\n \"graphQL\": \"/rest/repositories/swapi/graphql/swapi-charcters\",\n \"active\": false,\n \"default\": false,\n },\n ],\n};\n\n// eslint-disable-next-line no-unused-vars\nconst emptyEndpointsInfo = {\n \"endpoints\": [],\n};\n\nconst endpointsInfo = {\n \"endpoints\": [\n {\n \"id\": \"gqlendpoint1\",\n \"endpointId\": \"swapi\",\n \"endpointURI\": \"/rest/repositories/swapi/graphql/swapi\",\n \"label\": \"SWAPI GraphQL endpoint\",\n \"description\": \"SWAPI GraphQL endpoint description\",\n \"default\": false,\n \"active\": true,\n \"lastModified\": \"2025-01-28\",\n \"objects_count\": 10,\n \"properties_count\": 120,\n \"warnings\": 0,\n \"errors\": 0,\n \"status\": \"\",\n },\n {\n \"id\": \"gqlendpoint2\",\n \"endpointId\": \"film-restricted\",\n \"endpointURI\": \"/rest/repositories/swapi/graphql/film-restricted\",\n \"label\": \"SWAPI GraphQL endpoint with restricted film relations\",\n \"description\": \"SWAPI GraphQL endpoint with restricted film relations description\",\n \"default\": true,\n \"active\": true,\n \"lastModified\": \"2025-01-28\",\n \"objects_count\": 13,\n \"properties_count\": 133,\n \"warnings\": 0,\n \"errors\": 0,\n \"status\": \"\",\n },\n {\n \"id\": \"gqlendpoint3\",\n \"endpointId\": \"swapi-characters\",\n \"endpointURI\": \"/rest/repositories/swapi/graphql/swapi-characters\",\n \"label\": \"SWAPI GraphQL endpoint for swapi characters\",\n \"description\": \"SWAPI GraphQL endpoint for swapi characters description\",\n \"default\": false,\n \"active\": false,\n \"lastModified\": \"2025-01-28\",\n \"objects_count\": 3,\n \"properties_count\": 20,\n \"warnings\": 0,\n \"errors\": 0,\n \"status\": \"\",\n },\n ],\n};\n\nconst graphqlSchemaShapes = {\n \"shapes\": [\n {\n \"id\": \"https://schema.ubs.net/schema/AIModelSchema\",\n \"name\": \"AI Model Schema\",\n \"label\": \"AI Model Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/AIProductSchema\",\n \"name\": \"AI Product Schema\",\n \"label\": \"AI Product Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DatabaseSchema\",\n \"name\": null,\n \"label\": \"Database Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/BbsPermissionSchema\",\n \"name\": null,\n \"label\": \"BBS Permissions\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DataProductBasicSchema\",\n \"name\": null,\n \"label\": \"Data Product Basic Schema No Policy and No Provenance\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DataQualityMetricSchema\",\n \"name\": null,\n \"label\": \"Data Quality Metric Schema\",\n \"description\": \"This is the basic schema for DQV initiated from Metric class\",\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DataQualityObservationSchema\",\n \"name\": null,\n \"label\": \"Data Quality Observation Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DatasetSchema\",\n \"name\": null,\n \"label\": \"Dataset Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/ApplicationSchema\",\n \"name\": null,\n \"label\": \"Application Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/PolicyBasicSchema\",\n \"name\": null,\n \"label\": \"Policy Basic Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DataQualityMeasurementSchema\",\n \"name\": null,\n \"label\": \"Data Quality Measurement Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/DataProductFullSchema\",\n \"name\": null,\n \"label\": \"Data Product Schema where datasets can also be defined\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/ValidationSchema\",\n \"name\": null,\n \"label\": \"Validation Schema\",\n \"description\": null,\n },\n {\n \"id\": \"https://schema.ubs.net/schema/WMAAccountSchema\",\n \"name\": null,\n \"label\": \"WMA Account Schema\",\n \"description\": null,\n },\n ],\n};\n\nconst endpointConfiguration = {\n configs: [\n {\n key: 'str',\n label: 'String',\n type: 'string',\n collection: false,\n value: 'strValue',\n values: [],\n regex: '^(?:ALL:?)?(?:(?:-?[\\\\w]{2}(?:-[\\\\w]*)?~?|-?NONE|ANY|BROWSER)?(?:,(?:-?[\\\\w]{2}(?:-[\\\\w]*)?~?|-?NONE|ANY|BROWSER))*)$',\n },\n {\n key: 'bool',\n label: 'Boolean value',\n description: '',\n type: 'boolean',\n collection: false,\n value: false,\n values: [],\n },\n {\n key: 'select',\n label: 'Select',\n type: '',\n collection: false,\n value: 'Two',\n values: ['One', 'Two', 'Three'],\n },\n {\n key: 'multiselect',\n label: 'Multiselect',\n type: '',\n collection: true,\n value: ['Angular', 'JavaScript'],\n values: ['Angular', 'JavaScript', 'WebDevelopment'],\n },\n {\n key: 'json',\n label: 'JSON',\n type: 'json',\n collection: false,\n value: '{\"foo\": \"bar\"}',\n values: [],\n required: true,\n },\n ],\n};\n\nconst configSettingsForRepo = {\n \"configs\": [\n {\n \"key\": \"stringMode\",\n \"value\": \"stringOrLangString\",\n \"label\": \"stringMode\",\n \"description\": \"Specifies the default string mode for data properties without a range definition\",\n \"type\": \"string\",\n \"collection\": false,\n \"values\": [\n \"string\",\n \"langString\",\n \"stringOrLangString\",\n ],\n \"required\": true,\n \"regex\": null,\n \"group\": \"generic\",\n \"hidden\": false,\n },\n {\n \"key\": \"useUnions\",\n \"value\": true,\n \"label\": \"useUnions\",\n \"description\": \"Should GraphQL Unions be used in the result model\",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"generic\",\n \"hidden\": false,\n },\n {\n \"key\": \"forceInterfaceTypes\",\n \"value\": false,\n \"label\": \"forceInterfaceTypes\",\n \"description\": \"Decide if parent types are always interfaces or split with interface and subclass\",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"generic\",\n \"hidden\": false,\n },\n {\n \"key\": \"defaultMaxCardinality\",\n \"value\": \"inf\",\n \"label\": \"defaultMaxCardinality\",\n \"description\": \"The default maximum cardinality for all values. This defines if properties without explicit cardinality configuration are by default multi or single valued.\",\n \"type\": \"string\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": \"^\\\\d+|inf$\",\n \"group\": \"generic\",\n \"hidden\": false,\n },\n {\n \"key\": \"readShaclPropertyLabels\",\n \"value\": true,\n \"label\": \"readShaclPropertyLabels\",\n \"description\": \"If the labels and description for the sh:PropertyShape should be used over the sh:path label and description\",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"generic\",\n \"hidden\": true,\n },\n {\n \"key\": \"removeUnknownRanges\",\n \"value\": true,\n \"label\": \"removeUnknownRanges\",\n \"description\": \"Should remove the invalid and undefined ranges \",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"dataCleanup\",\n \"hidden\": true,\n },\n {\n \"key\": \"cleanInvalidInverseOf\",\n \"value\": true,\n \"label\": \"cleanInvalidInverseOf\",\n \"description\": \"Try to fix invalid owl:inverseOf relations\",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"dataCleanup\",\n \"hidden\": true,\n },\n {\n \"key\": \"includeDeactivatedShapes\",\n \"value\": false,\n \"label\": \"includeDeactivatedShapes\",\n \"description\": \"Include the sh:deactivated shapes in the model\",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"dataCleanup\",\n \"hidden\": true,\n },\n {\n \"key\": \"readRBACRules\",\n \"value\": true,\n \"label\": \"readRBACRules\",\n \"description\": \"Read RBAC rules from the models\",\n \"type\": \"boolean\",\n \"collection\": false,\n \"values\": null,\n \"required\": false,\n \"regex\": null,\n \"group\": \"enterprise\",\n \"hidden\": true,\n },\n ],\n};\n"],"names":["angular","module","factory","GraphqlRestService","$inject","DEVELOPMENT","$http","Upload","_mockBackend","GraphqlRestServiceMock","getEndpoints","repositoryId","getEndpointsMock","get","REPOSITORIES_ENDPOINT","getEndpointsInfo","lastModified","getEndpointsInfoMock","getGraphqlSchemaShapes","getGraphqlSchemaShapesMock","getPrefixes","getPrefixesMock","getShaclShapeGraphs","getShaclGraphsMock","getGraphqlGenerationSettings","selectedSourceRepository","getGraphqlGenerationSettingsMock","getGraphqlEndpointConfigurationSettings","endpointId","getEndpointConfigurationMock","getEndpointConfiguration","editEndpointConfiguration","data","saveEndpointConfigurationMock","post","deleteEndpoint","deleteEndpointMock","delete","generateEndpointFromGraphqlShapes","payload","generateEndpointFromGraphqlShapesMock","generateEndpointFromOwl","exportEndpointDefinition","responseType","importEndpointDefinition","http","url","headers","undefined","deleteEndpointGenerationReport","patch","GET_ENDPOINTS_INFO_DELAY","Promise","resolve","setTimeout","cloneDeep","endpoints","endpointsInfo","graphqlSchemaShapes","endpointConfiguration","configSettingsForRepo","configs","key","label","type","collection","value","values","regex","description","required"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_id__=38644;export const __webpack_ids__=[38644];export const __webpack_modules__={38644:(t,e,r)=>{r.r(e);var a=r(88141),n=r(19935),o=(r(32150),r(93462));function s(t,e,r,s,c,i,l,d,p,u,f,g,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const f=d(function(){!function(u){var f=1200,y=f/18,x=f/110,m=x/2,v=f/90,k=1.2,b=o.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),w=o.forceSimulation(),E=o.drag().subject(function(t){return t}).on("start",function(t,e){w.stop(),e.fx=t.x,e.fy=t.y,o.select(this).classed("selected",!0)}).on("end",function(t,e){e.fx=null,e.fy=null,o.select(this).classed("selected",!1),C?(w.alpha(.2).restart(),C=!1):w.restart()}).on("drag",function(t,e){C=!0,w.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y}),N=b.append("defs");N.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),o.select("#download-svg").on("mouseover",function(){var t=a.A.Export.getCSSRules("css/domain-range-graph.css?v=3.2.0-TR1");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=a.A.Export.generateBase64ImageSource("#domain-range svg");o.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})}),function(){var t=f/7,e=205.7142857142857,r=o.select(".legend-container").append("svg").attr("viewBox","0 0 "+t+" "+e).attr("preserveAspectRatio","xMidYMid meet");r.append("rect").attrs({width:t,height:e}).style("fill","rgba(235, 235, 235, 0.9)");var a=16,n=42.66666666666667,s=n+f/90,i=v/1.1,l=(r.append("circle").attrs({class:"legend-class-node",cx:29.333333333333336,cy:30,r:y/4.5}),30+f/370);r.append("text").attrs({x:s,y:l}).style("font-size",i+"px").text("main class node"),r.append("circle").attrs({class:"legend-object-node",cx:29.333333333333336,cy:70,r:8.727272727272727});var d=l+40;r.append("text").attrs({x:s,y:d}).style("font-size",i+"px").text("class node");var p=70+f/45;r.append("circle").attrs({class:"legend-datatype-node",cx:29.333333333333336,cy:p,r:m});var u=d+f/45;r.append("text").attrs({x:s,y:u}).style("font-size",i+"px").text("datatype node");var g=123.33333333333334;r.append("line").attrs({class:"property-arrow",x1:a,y1:g,x2:n,y2:g}).style("stroke-width",k).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:126.57657657657658}).style("font-size",i+"px").text("explicit property");var h=150;r.append("line").attrs({class:"implicit-property-arrow",x1:a,y1:h,x2:n,y2:h}).style("stroke-width",k).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:153.24324324324326}).style("font-size",i+"px").text("implicit property");var x=176.66666666666666;r.append("line").attrs({class:"collapsed-property-arrow",x1:a,y1:x,x2:n,y2:x}).style("stroke-width",2).attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)"),r.append("text").attrs({x:s,y:179.9099099099099}).style("font-size",i+"px").text("collapsed property")}();var R=c.search().uri,A=c.search().name;const L=c.search().collapsed;(function(t,e){s.getDomainRangeData(t,e).success(function(t,e,r){u.domainRangeGraphData=t}).error(function(t){p.error("Request for "+A+" failed!")})})(R,L),$(window).on("popstate",function(){i.set(l.DOMAIN_RANGE_WENT_BACK,!0)}),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",function(){angular.isUndefined(u.collapseEdges)||(i.set(l.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==i.get(l.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:R,name:A,collapsed:e})}(u.collapseEdges),i.remove(l.DOMAIN_RANGE_WENT_BACK))}),u.$watch("domainRangeGraphData",function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const S=r.nodes,I=r.links;w.nodes(S).force("x",o.forceX(600)).force("y",o.forceY(300)).force("charge",o.forceManyBody().strength(-800)).force("link",o.forceLink(I).distance(f/3.5));var a=b.selectAll(".link").data(I).enter().append("g");function B(t){t.style("stroke",g),t.style("stroke-width",2),t.attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)")}var s,i,l=0;a.each(function(t){if(t.objectPropNodeClassUri!==R)s=a.append("line").attrs({class:"link","marker-end":"url("+c.absUrl()+"#arrow)"}).style("stroke-width",k).each(function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=y;break;case"objectRight":t.targetRadius=x;break;case"datatype":t.targetRadius=m;break;default:t.targetRadius=0}var e=o.select(this);t.targetNodeEdgeCount>1?B(e):t.implicit&&e.style("stroke-dasharray","3, 3")});else{if(angular.isUndefined(i)){var e=y/2;i=o.select(this).append("path").attrs({d:"M 0 0 A "+e+" "+e+" 0 1 1 0 "+e,class:"loop-link",fill:"none","marker-end":"url("+c.absUrl()+"#arrow-loop)"}).style("stroke-width",k)}(l+=t.targetNodeEdgeCount)>1&&B(o.select(".loop-link"))}});var p={};function G(){$.isEmptyObject(p)||(p.text.style("fill","black"),p.background.style("fill","#f0f0f0"))}function W(t,e){G(),p.text=o.select(this),p.background=o.select(this.previousSibling),p.text.style("fill","white"),p.background.style("fill",g),d(function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e}),t.stopPropagation()}$("document").ready(function(){$("#domain-range").bind("click",G)});var N=a.append("text").attr("class",function(t){return t.objectPropNodeClassUri===R?"loop-link-property-name":"property-name"}).attr("dx",function(t){return y/2*("objectLeft"===t.propertyType?1:-1)}).style("text-anchor",function(t){return"objectLeft"===t.propertyType?"end":"start"}).style("font-size",v).text(function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name});N.each(function(t){var r=o.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",W):r.on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")})});var L=a.append("rect").attr("class",function(t){return t.objectPropNodeClassUri!==R?"link-background":"loop-link-background"}).attr("width",function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4}).attr("height",function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2}).attr("transform",function(t){var e=2-y/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"}).on("click",function(t){t.stopPropagation()}),C=b.selectAll(".node").data(S).enter().append("g"),P=C.filter(function(t){return t.objectPropClassUri!==R}).append("circle").each(function(t){var e=o.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:y}).attr("marker-end","url("+c.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:m}):e.attrs({class:"object-prop-node",r:x})}).call(E);function z(e,r,a){u.$apply(function(){t.$broadcast("reloadDomainRangeGraphView",r,a)})}o.selectAll(".object-prop-node").on("dblclick",z),C.filter(function(t){return t.objectPropClassName&&t.objectPropClassUri!==R}).append("text").attr("class",function(t){return t.classPosition+"-class-label"}).style("font-size",v).text(function(t){return t.objectPropClassName}).on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")});var U=C.select("text");b.select(".class-node").each(function(){o.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",function(t){return n.A.Text.calcFontSize(A,y)}).text(A).on("click",function(){e.open("resource?uri="+encodeURIComponent(R),"_blank")})});var j=b.select(".class-node + text"),T=o.select(".class-node"),M=o.selectAll(".loop-link-background"),O=o.selectAll(".loop-link-property-name");if(N=o.selectAll(".property-name"),!angular.isUndefined(i)){var D=[];M.each(function(t,e){o.select(this),D.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})})}function F(t){var e=8*w.alpha();function r(t){var e=t.x+2*y,r=t.y-35.08771929824562;var a=[];M.each(function(n,s){a.push(n),s<h?function(a,n){var o=$.grep(D,function(t){return t.idx==n});n>0&&(e+=parseFloat(n*(o[0].height/(n/1.4)))),a.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(o.select(this),s):o.select(this).remove()}),function(t){var e;o.select(".view-more-preds-label").style("font-weight","bold").each(function(r){r.target.allEdges=t,e=this.getComputedTextLength()}).on("click",W),o.select(".view-more-preds-rect").attr("height",e+4)}(a)}s.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.targetX}).attr("y2",function(t){return t.targetY}).each(function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius}),P.each(function(t){"main"!==t.classPosition||angular.isUndefined(i)||(function(t){var e=t.x+64,r=t.y-y/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var a=$.grep(D,function(t){return t.idx==r}),n=0;r>0&&(n=parseFloat(2*r*(a[0].height/1.4)));var o=t.x,s=t.y-2.1*y-n;e.attrs({x:o,y:s}).moveToFront()}O.each(function(t,r){var a=o.select(this),n=O.size()-h;n<0?e(a,r):(0==r&&!u.collapseEdges&&n>1&&(function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(a,o.select(this.nextSibling),n),e(a,r)),r<h?e(a,r):a.remove())})}(t),r(t)),t.objectPropClassUri!==R&&o.select(this).attr("cx",function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=T.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x}).attr("cy",function(t){return t.y})}),j.attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).moveToFront(),L.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),N.attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),U.attr("x",function(t){return"right"===t.classPosition?t.x+13.09090909090909:t.x-13.09090909090909}).attr("y",function(t){return t.y}).moveToFront()}w.on("tick",F)}});let C=!1}(u)},50);u.$on("$destroy",function(){d.cancel(f)})}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",s),s.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"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K,GACjB,MAAwB,UAApBA,EAAEqI,cACKrI,EAAEI,EAAIhB,kBAENY,EAAEI,EAAIhB,iBAErB,GACCO,KAAK,IAAK,SAAUK,GACjB,OAAOA,EAAEM,CACb,GACCkL,aACT,CAEA3L,EAAMD,GAAG,OAAQ2J,EAErB,CACJ,GAEA,IAAI9I,GAAY,CAiCpB,CAz5BQ+L,CAAuB5N,EAC3B,EAAG,IAEHA,EAAM6N,IAAI,WAAY,WAClBrO,EAASsO,OAAOzN,EACpB,EACJ,EAo5BJ,CAr7BAiG,QACKyH,OAAO,wDAAyD,CAC7D,yDACA,gDAEHC,SAAS,WAAY,wBACrBA,SAAS,aAAc,yBACvBA,SAAS,YAAa,0BACtBA,SAAS,qCAAsC,GAC/CC,UAAU,mBAAoBjP,GAEnCA,EAA0BkP,QAAU,CAAC,aAAc,UAAW,gBAAiB,uBAAwB,YAAa,sBAAuB,SAAU,WAAY,SAAU,WAAY,aAAc,YAAa,qC","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/graphexplore/directives/domain-range-graph.directive.js"],"sourcesContent":["import SVG from 'lib/common/svg-export';\nimport D3 from 'lib/common/d3-utils';\nimport 'angular/utils/local-storage-adapter';\nimport * as d3 from 'd3';\n\nangular\n .module('graphdb.framework.graphexplore.directives.domainrange', [\n 'graphdb.framework.graphexplore.controllers.domainrange',\n 'graphdb.framework.utils.localstorageadapter'\n ])\n .constant('ONTO_RED', 'var(--primary-color)')\n .constant('ONTO_GREEN', 'var(--tertiary-color)')\n .constant('ONTO_BLUE', 'var(--secondary-color)')\n .constant('NON_COLLAPSED_REFLEXIVE_LINK_LIMIT', 6)\n .directive('domainRangeGraph', domainRangeGraphDirective);\n\ndomainRangeGraphDirective.$inject = ['$rootScope', '$window', '$repositories', 'GraphDataRestService', '$location', 'LocalStorageAdapter', 'LSKeys', '$timeout', 'toastr', 'ONTO_RED', 'ONTO_GREEN', 'ONTO_BLUE', 'NON_COLLAPSED_REFLEXIVE_LINK_LIMIT'];\n\nfunction domainRangeGraphDirective($rootScope, $window, $repositories, GraphDataRestService, $location, LocalStorageAdapter, LSKeys, $timeout, toastr, ONTO_RED, ONTO_GREEN, ONTO_BLUE, NON_COLLAPSED_REFLEXIVE_LINK_LIMIT) {\n return {\n restrict: 'AE',\n template: '<div id=\"domain-range\"></div>',\n scope: {\n showPredicatesInfoPanel: '=',\n selectedPredicate: '=',\n collapseEdges: '='\n },\n link: linkFunc\n };\n\n function linkFunc(scope) {\n const timer = $timeout(function () {\n renderDomainRangeGraph(scope);\n }, 50);\n\n scope.$on(\"$destroy\", function () {\n $timeout.cancel(timer);\n });\n }\n\n function renderDomainRangeGraph(scope) {\n var width = 1200,\n height = 600;\n\n var mainClassSize = width / 18,\n otherClassSize = width / 110,\n datatypeSize = otherClassSize / 2,\n labelFontSize = width / 90,\n basicArrowStrokeWidth = width / 1000,\n collapsedArrowStrokeWidth = width / 600;\n\n var svg = d3.select(\"#domain-range\")\n .append(\"svg\")\n .attr(\"viewBox\", \"0 0 \" + width + \" \" + height)\n .attr(\"preserveAspectRatio\", \"xMidYMid meet\")\n .on(\"dblclick.zoom\", null);\n\n var force = d3.forceSimulation();\n\n var drag = d3.drag()\n .subject(function (d) {\n return d;\n })\n .on(\"start\", dragStart)\n .on(\"end\", dragEnd)\n .on(\"drag\", dragged);\n\n var defs = svg.append(\"defs\");\n generateMarkers(defs);\n\n function generateMarkers(defElement) {\n defs.append(\"marker\")\n .attrs({\n id: \"arrow\",\n viewBox: \"0 -5 10 10\",\n refX: 10,\n refY: 0,\n markerUnits: \"strokeWidth\",\n markerWidth: 5,\n markerHeight: 5,\n orient: \"auto\",\n fill: ONTO_BLUE\n })\n .append(\"path\")\n .attrs({\n d: \"M0,-5L10,0L0,5\",\n class: \"arrowHead\"\n });\n\n defs.append(\"marker\")\n .attrs({\n id: \"collapsed-arrow\",\n viewBox: \"0 -5 10 10\",\n refX: 9,\n refY: 0,\n markerUnits: \"strokeWidth\",\n markerWidth: 4,\n markerHeight: 4,\n orient: \"auto\",\n fill: ONTO_BLUE\n })\n .append(\"path\")\n .attrs({\n d: \"M0,-5L10,0L0,5\",\n class: \"arrowHead\"\n });\n\n defs.append(\"marker\")\n .attrs({\n id: \"arrow-loop\",\n viewBox: \"0 -5 10 10\",\n refX: 7,\n refY: 0,\n markerUnits: \"strokeWidth\",\n markerWidth: 5,\n markerHeight: 5,\n orient: \"auto\",\n fill: ONTO_BLUE\n })\n .append(\"path\")\n .attrs({\n d: \"M0,-5L10,0L0,5\",\n class: \"arrowHead\"\n });\n }\n\n /*\n * Prepares SVG document image export by adding xml namespaces and\n * additional style information\n */\n function prepareForSVGImageExport() {\n // get css rules for the diagram\n var cssRules = SVG.Export.getCSSRules(\"css/domain-range-graph.css?v=3.2.0-TR1\");\n\n // inline css rules in a defs tag\n $(\"defs\").append('<style type=\"text/css\"><![CDATA[' + cssRules + ']]></style>');\n\n // convert selected html to base64\n var imgSrc = SVG.Export.generateBase64ImageSource(\"#domain-range svg\");\n\n // set the binary image and a name for the downloadable file on the export button\n d3.select(this).attrs({\n href: imgSrc,\n download: \"domain-range-graph-\" + $repositories.getActiveRepository() + \".svg\"\n });\n }\n\n d3.select(\"#download-svg\")\n .on(\"mouseover\", prepareForSVGImageExport);\n\n generateLegend();\n\n function generateLegend() {\n // start of code for legend\n\n var legendBackgroundWidth = width / 7;\n var legendBackgroundHeight = legendBackgroundWidth * 1.2;\n\n var svgLegend = d3.select(\".legend-container\")\n .append(\"svg\")\n .attr(\"viewBox\", \"0 0 \" + legendBackgroundWidth + \" \" + legendBackgroundHeight)\n .attr(\"preserveAspectRatio\", \"xMidYMid meet\");\n\n var legendCellGroup = svgLegend;\n\n legendCellGroup.append(\"rect\")\n .attrs({\n width: legendBackgroundWidth,\n height: legendBackgroundHeight\n })\n .style(\"fill\", \"rgba(235, 235, 235, 0.9)\");\n\n var sourceX = width / 75;\n var sourceY = width / 40;\n var targetX = sourceX + mainClassSize / 2.5;\n var targetY = sourceY;\n\n var legendTextX = targetX + width / 90;\n var legendLabelFontSize = labelFontSize / 1.1;\n\n var classNodeY = sourceY;\n var legendClassNode = legendCellGroup\n .append(\"circle\")\n .attrs({\n class: \"legend-class-node\",\n cx: (sourceX + targetX) / 2,\n cy: classNodeY,\n r: mainClassSize / 4.5\n });\n\n var classNodeTextY = targetY + width / 370;\n legendCellGroup\n .append(\"text\")\n .attrs({\n x: legendTextX,\n y: classNodeTextY\n })\n .style('font-size', legendLabelFontSize + 'px')\n .text(\"main class node\");\n\n var objectNodeY = classNodeY + width / 30;\n legendCellGroup\n .append(\"circle\")\n .attrs({\n class: \"legend-object-node\",\n cx: (sourceX + targetX) / 2,\n cy: objectNodeY,\n r: otherClassSize / 1.25\n });\n\n var objectNodeTextY = classNodeTextY + width / 30;\n legendCellGroup\n .append(\"text\")\n .attrs({\n x: legendTextX,\n y: objectNodeTextY\n })\n .style('font-size', legendLabelFontSize + 'px')\n .text(\"class node\");\n\n var datatypeNodeY = objectNodeY + width / 45;\n legendCellGroup\n .append(\"circle\")\n .attrs({\n class: \"legend-datatype-node\",\n cx: (sourceX + targetX) / 2,\n cy: datatypeNodeY,\n r: datatypeSize\n });\n\n var datatypeNodeTextY = objectNodeTextY + width / 45;\n legendCellGroup\n .append(\"text\")\n .attrs({\n x: legendTextX,\n y: datatypeNodeTextY\n })\n .style('font-size', legendLabelFontSize + 'px')\n .text(\"datatype node\");\n\n var basicPropertyArrowY = datatypeNodeY + width / 45;\n legendCellGroup\n .append(\"line\")\n .attrs({\n class: \"property-arrow\",\n x1: sourceX,\n y1: basicPropertyArrowY,\n x2: targetX,\n y2: basicPropertyArrowY\n })\n .style(\"stroke-width\", basicArrowStrokeWidth)\n .attr(\"marker-end\", \"url(\" + $location.absUrl() + \"#arrow)\");\n\n legendCellGroup\n .append(\"text\")\n .attrs({\n x: legendTextX,\n y: basicPropertyArrowY + (width / 370)\n })\n .style('font-size', legendLabelFontSize + 'px')\n .text(\"explicit property\");\n\n var implicitPropArrowY = basicPropertyArrowY + width / 45;\n legendCellGroup\n .append(\"line\")\n .attrs({\n class: \"implicit-property-arrow\",\n x1: sourceX,\n y1: implicitPropArrowY,\n x2: targetX,\n y2: implicitPropArrowY\n })\n .style(\"stroke-width\", basicArrowStrokeWidth)\n .attr(\"marker-end\", \"url(\" + $location.absUrl() + \"#arrow)\");\n\n legendCellGroup\n .append(\"text\")\n .attrs({\n x: legendTextX,\n y: implicitPropArrowY + (width / 370)\n })\n .style('font-size', legendLabelFontSize + 'px')\n .text(\"implicit property\");\n\n var collapsedPropArrowY = implicitPropArrowY + width / 45;\n legendCellGroup\n .append(\"line\")\n .attrs({\n class: \"collapsed-property-arrow\",\n x1: sourceX,\n y1: collapsedPropArrowY,\n x2: targetX,\n y2: collapsedPropArrowY\n })\n .style(\"stroke-width\", collapsedArrowStrokeWidth)\n .attr(\"marker-end\", \"url(\" + $location.absUrl() + \"#collapsed-arrow)\");\n\n legendCellGroup\n .append(\"text\")\n .attrs({\n x: legendTextX,\n y: collapsedPropArrowY + (width / 370)\n })\n .style('font-size', legendLabelFontSize + 'px')\n .text(\"collapsed property\");\n // end of code for legend\n }\n\n var selectedRdfUri = $location.search().uri;\n var classNodeLabel = $location.search().name;\n const collapsed = $location.search().collapsed;\n\n getDomainRangeData(selectedRdfUri, collapsed);\n\n function getDomainRangeData(selectedRdfUri, collapsed) {\n GraphDataRestService.getDomainRangeData(selectedRdfUri, collapsed)\n .success(function (response, status, headers) {\n scope.domainRangeGraphData = response;\n }).error(function (response) {\n toastr.error(\"Request for \" + classNodeLabel + \" failed!\");\n });\n }\n\n function switchEdgeMode(collapsed) {\n $rootScope.$broadcast('switchEdgeMode', {\n uri: selectedRdfUri,\n name: classNodeLabel,\n collapsed: collapsed\n });\n }\n\n // intercept back button press and set action to local storage\n $(window).on('popstate', function () {\n LocalStorageAdapter.set(LSKeys.DOMAIN_RANGE_WENT_BACK, true);\n });\n\n $window.onpopstate = function (event) {\n if (event.state) {\n $rootScope.$broadcast(\"changeCollapsedEdgesState\", event.state.collapsed);\n }\n };\n\n scope.$watch('collapseEdges', function () {\n if (!angular.isUndefined(scope.collapseEdges)) {\n LocalStorageAdapter.set(LSKeys.DOMAIN_RANGE_COLLAPSE_EDGES, scope.collapseEdges);\n\n // if the back button has not been pressed, then switch to collapsed or non collapsed mode\n // otherwise skip, because back button will not function properly and will not pop the entire\n // history stack\n if (LocalStorageAdapter.get(LSKeys.DOMAIN_RANGE_WENT_BACK) !== \"true\") {\n switchEdgeMode(scope.collapseEdges);\n }\n\n // after back button status has been checked, remove the action from local storage in order\n // to be clean for next check\n LocalStorageAdapter.remove(LSKeys.DOMAIN_RANGE_WENT_BACK);\n }\n });\n\n scope.$watch('domainRangeGraphData', function () {\n if (scope.domainRangeGraphData) {\n var graph = _.cloneDeep(scope.domainRangeGraphData);\n\n const nodes = graph.nodes;\n const links = graph.links;\n\n force.nodes(nodes)\n .force('x', d3.forceX(width / 2))\n .force('y', d3.forceY(height / 2))\n .force(\"charge\", d3.forceManyBody().strength(-800))\n .force(\"link\", d3.forceLink(links).distance(width / 3.5))\n\n var linkGroup = svg.selectAll(\".link\")\n .data(links)\n .enter()\n .append(\"g\");\n\n function styleArrowsInCollapsedMode(sel) {\n sel.style(\"stroke\", ONTO_BLUE);\n sel.style(\"stroke-width\", collapsedArrowStrokeWidth);\n sel.attr(\"marker-end\", \"url(\" + $location.absUrl() + \"#collapsed-arrow)\");\n }\n\n var link,\n loopLink,\n loopLinkEdgeCount = 0;\n\n\n linkGroup\n .each(function (d) {\n if (d.objectPropNodeClassUri !== selectedRdfUri) {\n link = linkGroup\n .append(\"line\")\n .attrs({\n class: \"link\",\n // absolute url needed because angular inserts a <base> tag\n \"marker-end\": \"url(\" + $location.absUrl() + \"#arrow)\"\n })\n .style(\"stroke-width\", basicArrowStrokeWidth)\n .each(function (d) {\n switch (d.propertyType) {\n case \"objectLeft\":\n d.targetRadius = mainClassSize;\n break;\n case \"objectRight\":\n d.targetRadius = otherClassSize;\n break;\n case \"datatype\":\n d.targetRadius = datatypeSize;\n break;\n default:\n d.targetRadius = 0;\n }\n var sel = d3.select(this);\n if (d.targetNodeEdgeCount > 1) {\n styleArrowsInCollapsedMode(sel);\n } else if (d.implicit) {\n sel.style(\"stroke-dasharray\", \"3, 3\");\n }\n });\n } else {\n if (angular.isUndefined(loopLink)) {\n var loopLinkSize = mainClassSize / 2;\n loopLink = d3.select(this)\n .append(\"path\")\n .attrs({\n d: \"M 0 0 A \" + loopLinkSize + \" \" + loopLinkSize + \" 0 1 1 0 \" + loopLinkSize,\n class: \"loop-link\",\n fill: \"none\",\n \"marker-end\": \"url(\" + $location.absUrl() + \"#arrow-loop)\"\n })\n .style(\"stroke-width\", basicArrowStrokeWidth);\n }\n\n loopLinkEdgeCount += d.targetNodeEdgeCount;\n if (loopLinkEdgeCount > 1) {\n styleArrowsInCollapsedMode(d3.select(\".loop-link\"));\n }\n }\n });\n\n var previousPropertyNameSelection = {};\n\n function disableCollapsedPredicateLabelHightlighting() {\n if (!$.isEmptyObject(previousPropertyNameSelection)) {\n previousPropertyNameSelection.text.style(\"fill\", \"black\");\n previousPropertyNameSelection.background.style(\"fill\", \"#f0f0f0\");\n }\n }\n\n // when clicking anywhere else but the collapsed labels disable highlighting\n // of the currently selected one\n $(\"document\").ready(function () {\n $(\"#domain-range\").bind(\"click\", disableCollapsedPredicateLabelHightlighting);\n });\n\n function onCollapsedPropertyNameClick(event, d) {\n disableCollapsedPredicateLabelHightlighting();\n previousPropertyNameSelection.text = d3.select(this);\n\n previousPropertyNameSelection.background = d3.select(this.previousSibling);\n previousPropertyNameSelection.text.style(\"fill\", \"white\");\n\n previousPropertyNameSelection.background.style(\"fill\", ONTO_BLUE);\n $timeout(function () {\n scope.showPredicatesInfoPanel = true;\n scope.selectedPredicate = d;\n });\n event.stopPropagation();\n }\n\n\n var propertyNames = linkGroup\n .append(\"text\")\n .attr(\"class\", function (d) {\n return d.objectPropNodeClassUri === selectedRdfUri ? \"loop-link-property-name\" : \"property-name\";\n })\n .attr(\"dx\", function (d) {\n // offset text more towards the main class\n return mainClassSize / 2 * (d.propertyType === \"objectLeft\" ? 1 : -1);\n })\n .style(\"text-anchor\", function (d) {\n return d.propertyType === \"objectLeft\" ? \"end\" : \"start\";\n })\n .style(\"font-size\", labelFontSize)\n .text(function (d) {\n return d.targetNodeEdgeCount > 1 ? d.targetNodeEdgeCount + \" predicates\" : d.name;\n });\n\n\n propertyNames\n .each(function (d) {\n var sel = d3.select(this);\n var isCompoundEdge = /\\d\\spredicates/.test(sel.text());\n\n // handle collapsed predicates by making their font bold, make them highlight when clicked\n // and make them trigger the side panel to display the collapsed edges\n if (isCompoundEdge) {\n sel\n .style(\"font-weight\", \"bold\")\n .on(\"click\", onCollapsedPropertyNameClick);\n } else {\n // for regular predicate labels just attach a link to the \"Resources\" view\n // for more helpful information regarding them\n sel.on(\"click\", function (event, d) {\n $window.open(\"resource?uri=\" + encodeURIComponent(d.uri), \"_blank\");\n });\n }\n });\n var textPadding = width / 600;\n\n\n var linkRect = linkGroup\n .append(\"rect\")\n .attr(\"class\", function (d) {\n return d.objectPropNodeClassUri !== selectedRdfUri ? \"link-background\" : \"loop-link-background\"\n })\n .attr(\"width\", function (d) {\n d.calculatedWidth = this.previousSibling.getBBox().width;\n return d.calculatedWidth + textPadding * 2;\n })\n .attr(\"height\", function (d) {\n d.calculatedHeight = this.previousSibling.getBBox().height;\n return d.calculatedHeight + textPadding;\n })\n .attr(\"transform\", function (d) {\n // offset rect by the same amount as text (besides the padding)\n var translateX = textPadding - mainClassSize / 2 * (d.propertyType === \"objectLeft\" ? 1 : -1);\n if (d.propertyType === \"objectLeft\") {\n translateX += d.calculatedWidth;\n }\n return \"translate(-\" + translateX + \",-\" + (textPadding + d.calculatedHeight / 2) + \")\";\n })\n .on(\"click\", function (event) {\n event.stopPropagation();\n });\n\n\n var nodeGroup = svg.selectAll(\".node\")\n .data(nodes)\n .enter()\n .append(\"g\");\n\n var node = nodeGroup\n .filter(function (d) {\n return d.objectPropClassUri !== selectedRdfUri;\n })\n .append(\"circle\")\n .each(function (d) {\n var sel = d3.select(this);\n if (d.classPosition === \"main\") {\n sel.attrs({\n class: \"class-node\",\n r: mainClassSize\n })\n .attr(\"marker-end\", \"url(\" + $location.absUrl() + \"#loop-link)\");\n } else if (d.objectPropClassName === null) {\n sel.attrs({\n class: \"datatype-node\",\n r: datatypeSize\n });\n } else {\n sel.attrs({\n class: \"object-prop-node\",\n r: otherClassSize\n });\n }\n })\n .call(drag);\n\n\n function reloadDomainRangeGraphView(event, d, collapsed) {\n scope.$apply(function () {\n $rootScope.$broadcast('reloadDomainRangeGraphView', d, collapsed);\n });\n }\n\n d3.selectAll(\".object-prop-node\")\n .on(\"dblclick\", reloadDomainRangeGraphView);\n\n\n nodeGroup\n .filter(function (d) {\n return d.objectPropClassName && d.objectPropClassUri !== selectedRdfUri;\n })\n .append(\"text\")\n .attr(\"class\", function (d) {\n return d.classPosition + \"-class-label\";\n })\n .style(\"font-size\", labelFontSize)\n .text(function (d) {\n return d.objectPropClassName;\n })\n .on(\"click\", function (event, d) {\n $window.open(\"resource?uri=\" + encodeURIComponent(d.objectPropClassUri), \"_blank\");\n });\n\n var objectPropClassName = nodeGroup.select(\"text\");\n\n svg.select(\".class-node\")\n .each(function () {\n d3.select(this.parentNode)\n .append(\"text\")\n .attr(\"class\", \"rdf-class-label\")\n .style(\"font-size\", function (d) {\n return D3.Text.calcFontSize(classNodeLabel, mainClassSize)\n })\n .text(classNodeLabel)\n .on(\"click\", function () {\n $window.open(\"resource?uri=\" + encodeURIComponent(selectedRdfUri), \"_blank\");\n });\n });\n\n\n var rdfClassName = svg.select(\".class-node + text\"),\n classNode = d3.select(\".class-node\"),\n loopLinkBackgroundSel = d3.selectAll(\".loop-link-background\"),\n loopLinkPropertyName = d3.selectAll(\".loop-link-property-name\");\n\n propertyNames = d3.selectAll(\".property-name\");\n\n if (!angular.isUndefined(loopLink)) {\n var loopLinkBackgroundProps = [];\n\n loopLinkBackgroundSel.each(function (d, i) {\n var sel = d3.select(this);\n loopLinkBackgroundProps.push({\n idx: i,\n width: d.calculatedWidth,\n height: d.calculatedHeight\n });\n });\n }\n\n function tick(e) {\n var k = 8 * force.alpha();\n\n function pushEdgesToLeftAndRight(d) {\n if (d.propertyType === \"objectLeft\") {\n d.source.x -= 8 * k;\n d.source.y -= k / 9;\n } else {\n d.target.x += 8 * k;\n d.target.y -= k / 9;\n }\n }\n\n link\n .filter(function (d) {\n return d.objectPropNodeClassUri !== selectedRdfUri;\n })\n .attr(\"x1\", function (d) {\n return d.source.x;\n })\n .attr(\"y1\", function (d) {\n return d.source.y;\n })\n .attr(\"x2\", function (d) {\n return d.targetX;\n })\n .attr(\"y2\", function (d) {\n return d.targetY;\n })\n .each(function (d) {\n pushEdgesToLeftAndRight(d);\n\n // shortens the line to compensate for the circle at the target\n var angle = Math.atan2(d.target.y - d.source.y, d.target.x - d.source.x);\n d.targetX = d.target.x - Math.cos(angle) * d.targetRadius;\n d.targetY = d.target.y - Math.sin(angle) * d.targetRadius;\n });\n\n function positionLoopLink(d) {\n var loopTranslateX = d.x + mainClassSize * 0.96,\n loopTranslateY = d.y - mainClassSize / 5.7 - 5;\n loopLink.attr(\"transform\", \"rotate(270, \" + d.x + \",\" + d.y + \") translate(\" + loopTranslateX + \",\" + loopTranslateY + \")\");\n }\n\n function positionLoopLinkLabels(d) {\n function reposition(sel, i) {\n var foundLoopLinkBackgroundProps =\n $.grep(loopLinkBackgroundProps, function (obj) {\n return obj.idx == i;\n });\n var currentBackgroundHeight = 0;\n if (i > 0) {\n currentBackgroundHeight = parseFloat(2 * i * (foundLoopLinkBackgroundProps[0].height / 1.4));\n }\n\n var loopLinkLabelX = d.x,\n loopLinkLabelY = d.y - mainClassSize * 2.1 - currentBackgroundHeight;\n\n sel\n .attrs({\n x: loopLinkLabelX,\n y: loopLinkLabelY\n })\n .moveToFront();\n }\n\n /**\n * Create a \"View more\" label to depict that the are more reflexive link labels\n * left that could be seen in the side panel when clicking this label.\n *\n * @param labelSel\n * d3 selection of the text label\n * @param backgroundSel\n * d3 selection of the rectangle element background\n * @param predicatesLeft\n * number of predicates left that are collapsed\n */\n function createViewMorePredicatesLabel(labelSel, backgroundSel, predicatesLeft) {\n labelSel\n .classed(\"view-more-preds-label\", true)\n .text(predicatesLeft + \" predicates more ...\");\n if (this.nextSibling !== null) {\n backgroundSel\n .classed(\"view-more-preds-rect\", true);\n }\n }\n\n loopLinkPropertyName.each(function (dd, i) {\n var sel = d3.select(this);\n\n var predicatesLeft = loopLinkPropertyName.size() - NON_COLLAPSED_REFLEXIVE_LINK_LIMIT;\n if (predicatesLeft < 0) {\n reposition(sel, i);\n } else {\n if (i == 0 && !scope.collapseEdges && predicatesLeft > 1) {\n createViewMorePredicatesLabel(sel, d3.select(this.nextSibling), predicatesLeft);\n reposition(sel, i);\n }\n\n if (i < NON_COLLAPSED_REFLEXIVE_LINK_LIMIT) {\n reposition(sel, i);\n } else {\n sel.remove();\n }\n }\n });\n // loopLinkPropertyName.each(function (dd, i) {\n // var sel = d3.select(this);\n // if (i < NON_COLLAPSED_REFLEXIVE_LINK_LIMIT) {\n // reposition(sel, i);\n // } else if (i == NON_COLLAPSED_REFLEXIVE_LINK_LIMIT) {\n // createViewMorePredicatesLabel(sel, d3.select(this.nextSibling));\n // reposition(sel, i);\n // } else {\n // sel.remove();\n // }\n // });\n }\n\n function positionLoopLinkBackgrounds(d) {\n var loopLinkBackgroundY = d.x + mainClassSize * 2,\n loopLinkBackgroundX = d.y - mainClassSize / 1.9;\n\n function reposition(sel, i) {\n var foundLoopLinkBackgroundProps =\n $.grep(loopLinkBackgroundProps, function (obj) {\n return obj.idx == i;\n });\n if (i > 0) {\n loopLinkBackgroundY += parseFloat(i * (foundLoopLinkBackgroundProps[0].height / (i / 1.4)));\n }\n\n sel\n .attrs({\n transform: \"rotate(270, \" + d.x + \",\" + d.y + \") translate(\" + loopLinkBackgroundY + \",\" + loopLinkBackgroundX + \")\",\n width: foundLoopLinkBackgroundProps[0].height,\n height: foundLoopLinkBackgroundProps[0].width\n });\n }\n\n /**\n * Adjust new width of \"View more\" label background and add all reflexive link metadata the this\n * label in order to render them in the side panel.\n *\n * @param allLoopLinkEdges\n * all reflexive links to the current class\n */\n function adjustViewMorePredicatesLabel(allLoopLinkEdges) {\n var viewMoreTextWidth;\n d3.select(\".view-more-preds-label\")\n // make label bold to resemble a collapsed label\n .style(\"font-weight\", \"bold\")\n .each(function (d) {\n // attach all reflexive links to the \"view more\" collapsed predicate\n // because in non collapsed mode the backend does not provide them\n d.target.allEdges = allLoopLinkEdges;\n\n // calculate text width in pixels in order to adjust background width accordingly\n viewMoreTextWidth = this.getComputedTextLength();\n })\n .on(\"click\", onCollapsedPropertyNameClick);\n\n d3.select(\".view-more-preds-rect\")\n // we modify height property instead of width because they are reversed\n // when we repositioned loop link labels\n .attr(\"height\", viewMoreTextWidth + 2 * textPadding);\n }\n\n var allLoopLinkEdges = [];\n loopLinkBackgroundSel.each(function (dd, i) {\n allLoopLinkEdges.push(dd);\n if (i < NON_COLLAPSED_REFLEXIVE_LINK_LIMIT) {\n reposition(d3.select(this), i);\n } else {\n d3.select(this).remove();\n }\n });\n\n adjustViewMorePredicatesLabel(allLoopLinkEdges);\n }\n\n\n function centerClassNode(d) {\n if (!(window.ActiveXObject) && \"ActiveXObject\" in window) {\n Math.log10 = function (x) {\n return Math.log(x) / Math.LN10;\n };\n }\n var absDiff = classNode.attr(\"cx\") - width / 2,\n logOffset = Math.log10(Math.abs(absDiff)) * 0.5;\n d.x += absDiff > 0 ? -logOffset : logOffset;\n return d.x;\n }\n\n node\n .each(function (d) {\n if (d.classPosition === \"main\" && !angular.isUndefined(loopLink)) {\n positionLoopLink(d);\n positionLoopLinkLabels(d);\n positionLoopLinkBackgrounds(d);\n }\n\n if (d.objectPropClassUri !== selectedRdfUri) {\n d3.select(this)\n .attr(\"cx\", function (d) {\n // pushes the main class circle to the centre\n if (d.classPosition === \"main\") {\n return centerClassNode(d);\n }\n return d.x;\n })\n .attr(\"cy\", function (d) {\n return d.y;\n });\n }\n });\n\n\n rdfClassName\n .attr(\"x\", function (d) {\n return d.x;\n })\n .attr(\"y\", function (d) {\n return d.y;\n })\n .moveToFront();\n\n\n linkRect\n .filter(function (d) {\n return d.objectPropNodeClassUri !== selectedRdfUri;\n })\n .attr(\"x\", function (d) {\n if (d.target.x > d.source.x) {\n return (d.source.x + (d.target.x - d.source.x) / 2);\n } else {\n return (d.target.x + (d.source.x - d.target.x) / 2);\n }\n })\n .attr(\"y\", function (d) {\n if (d.target.y > d.source.y) {\n return (d.source.y + (d.target.y - d.source.y) / 2);\n } else {\n return (d.target.y + (d.source.y - d.target.y) / 2);\n }\n })\n .moveToFront();\n\n\n propertyNames\n .attr(\"x\", function (d) {\n if (d.target.x > d.source.x) {\n return (d.source.x + (d.target.x - d.source.x) / 2);\n } else {\n return (d.target.x + (d.source.x - d.target.x) / 2);\n }\n })\n .attr(\"y\", function (d) {\n if (d.target.y > d.source.y) {\n return (d.source.y + (d.target.y - d.source.y) / 2);\n } else {\n return (d.target.y + (d.source.y - d.target.y) / 2);\n }\n })\n .moveToFront();\n\n\n objectPropClassName\n .attr(\"x\", function (d) {\n if (d.classPosition === \"right\") {\n return d.x + otherClassSize * 1.2;\n } else {\n return d.x - otherClassSize * 1.2;\n }\n })\n .attr(\"y\", function (d) {\n return d.y;\n })\n .moveToFront();\n }\n\n force.on(\"tick\", tick)\n\n }\n });\n\n let isDragged = false;\n\n function dragStart(event, d) {\n force.stop();\n d.fx = event.x;\n d.fy = event.y;\n d3.select(this).classed(\"selected\", true);\n\n }\n\n // Update the subject (dragged node) position during drag.\n function dragged(event, d) {\n isDragged = true;\n\n force.alphaTarget(0).restart();\n d.fx = event.x;\n d.fy = event.y;\n }\n\n // Restore the target alpha so the simulation cools after dragging ends.\n // Unfix the subject position now that it’s no longer being dragged.\n function dragEnd(event, d) {\n d.fx = null;\n d.fy = null;\n d3.select(this).classed(\"selected\", false);\n if (isDragged) {\n force.alpha(0.2).restart();\n isDragged = false;\n } else {\n force.restart();\n }\n }\n\n }\n}\n"],"names":["domainRangeGraphDirective","$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT","restrict","template","scope","showPredicatesInfoPanel","selectedPredicate","collapseEdges","link","timer","width","mainClassSize","otherClassSize","datatypeSize","labelFontSize","basicArrowStrokeWidth","svg","d3","append","attr","on","force","drag","subject","d","event","stop","fx","x","fy","y","this","classed","isDragged","alpha","restart","alphaTarget","defs","attrs","id","viewBox","refX","refY","markerUnits","markerWidth","markerHeight","orient","fill","class","cssRules","SVG","Export","getCSSRules","$","imgSrc","generateBase64ImageSource","href","download","getActiveRepository","legendBackgroundWidth","legendBackgroundHeight","legendCellGroup","height","style","sourceX","targetX","legendTextX","legendLabelFontSize","classNodeTextY","cx","cy","r","text","classNodeY","objectNodeTextY","datatypeNodeY","datatypeNodeTextY","basicPropertyArrowY","x1","y1","x2","y2","absUrl","implicitPropArrowY","collapsedPropArrowY","generateLegend","selectedRdfUri","search","uri","classNodeLabel","name","collapsed","getDomainRangeData","success","response","status","headers","domainRangeGraphData","error","window","set","DOMAIN_RANGE_WENT_BACK","onpopstate","state","$broadcast","$watch","angular","isUndefined","DOMAIN_RANGE_COLLAPSE_EDGES","get","switchEdgeMode","remove","graph","_","cloneDeep","nodes","links","strength","distance","linkGroup","selectAll","data","enter","styleArrowsInCollapsedMode","sel","loopLink","loopLinkEdgeCount","each","objectPropNodeClassUri","propertyType","targetRadius","targetNodeEdgeCount","implicit","loopLinkSize","previousPropertyNameSelection","disableCollapsedPredicateLabelHightlighting","isEmptyObject","background","onCollapsedPropertyNameClick","previousSibling","stopPropagation","ready","bind","propertyNames","test","open","encodeURIComponent","linkRect","calculatedWidth","getBBox","textPadding","calculatedHeight","translateX","nodeGroup","node","filter","objectPropClassUri","classPosition","objectPropClassName","call","reloadDomainRangeGraphView","$apply","select","parentNode","D3","Text","calcFontSize","rdfClassName","classNode","loopLinkBackgroundSel","loopLinkPropertyName","loopLinkBackgroundProps","i","push","idx","tick","e","k","positionLoopLinkBackgrounds","loopLinkBackgroundY","loopLinkBackgroundX","allLoopLinkEdges","dd","foundLoopLinkBackgroundProps","grep","obj","parseFloat","transform","reposition","viewMoreTextWidth","target","allEdges","getComputedTextLength","adjustViewMorePredicatesLabel","source","targetY","pushEdgesToLeftAndRight","angle","Math","atan2","cos","sin","loopTranslateX","loopTranslateY","positionLoopLink","currentBackgroundHeight","loopLinkLabelX","loopLinkLabelY","moveToFront","predicatesLeft","size","labelSel","backgroundSel","nextSibling","createViewMorePredicatesLabel","positionLoopLinkLabels","ActiveXObject","log10","log","LN10","absDiff","logOffset","abs","centerClassNode","renderDomainRangeGraph","$on","cancel","module","constant","directive","$inject"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_id__=38843;export const __webpack_ids__=[38843];export const __webpack_modules__={38843:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});const i='<link href="css/graphql/create-graphql-endpoint.css?v=3.2.0-TR1" rel="stylesheet"/> <link href="css/wizard.css?v=3.2.0-TR1" rel="stylesheet"/> <div class="create-graphql-endpoint-view"> <h1 id="title-container"> <span>{{title}}</span> <page-info-tooltip></page-info-tooltip> </h1> <div class="core-errors-container" core-errors write></div> <div class="create-graphql-endpoint-container"> <div class="content" ng-if="selectedSourceRepository"> <div class="toolbar"> <div class="form-inline"> <label for="sourceRepositorySelector">{{\'graphql.create_endpoint.toolbar.source_repository_selector.label\' | translate}}</label> <select id="sourceRepositorySelector" ng-model="selectedSourceRepository" ng-options="repository as repository.label for repository in sourceRepositories" ng-change="onSelectedSourceRepositoryChange(selectedSourceRepository)" ng-disabled="generatingEndpoint" class="form-control source-repository-selector" gdb-tooltip="{{\'graphql.create_endpoint.toolbar.source_repository_selector.tooltip\' | translate}}" tooltip-placement="top"> </select> </div> </div> <div class="wizard-container mt-2"> <div class="wizard"> <div class="wizard-steps"> <div ng-repeat="step in wizardModel.steps" ng-click="onStepClick(step); $event.preventDefault()" class="wizard-step" ng-class="{active: step.active, completed: step.visited}"> <span class="step-title">{{\'graphql.create_endpoint.wizard_steps.\' + step.id + \'.title\' | translate}}</span> <span class="fa fa-chevron-right step-decoration"></span> </div> </div> <div class="wizard-content"> <div ng-repeat="step in wizardModel.steps" ng-if="step.active" class="wizard-step-content"> <div ng-switch="step.id"> <div ng-switch-when="select_schema_sources"> <select-schema-sources step-definition="step"></select-schema-sources> </div> <div ng-switch-when="configure_endpoint"> <configure-endpoint step-definition="step" selected-source-repository="selectedSourceRepository.data.repository"></configure-endpoint> </div> <div ng-switch-when="generate_endpoint"> <generate-endpoint step-definition="step"></generate-endpoint> </div> </div> </div> </div> </div> </div> </div> </div> </div> '}};
|
|
2
|
+
//# sourceMappingURL=38843.5ef7a063337524ce3bb2.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"38843.5ef7a063337524ce3bb2.bundle.js","mappings":"uJAGA,QAFW,omE","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/templates/create-graphql-endpoint.html"],"sourcesContent":["// Module\nvar code = `<link href=\"css/graphql/create-graphql-endpoint.css?v=3.2.0-TR1\" rel=\"stylesheet\"/> <link href=\"css/wizard.css?v=3.2.0-TR1\" rel=\"stylesheet\"/> <div class=\"create-graphql-endpoint-view\"> <h1 id=\"title-container\"> <span>{{title}}</span> <page-info-tooltip></page-info-tooltip> </h1> <div class=\"core-errors-container\" core-errors write></div> <div class=\"create-graphql-endpoint-container\"> <div class=\"content\" ng-if=\"selectedSourceRepository\"> <div class=\"toolbar\"> <div class=\"form-inline\"> <label for=\"sourceRepositorySelector\">{{'graphql.create_endpoint.toolbar.source_repository_selector.label' | translate}}</label> <select id=\"sourceRepositorySelector\" ng-model=\"selectedSourceRepository\" ng-options=\"repository as repository.label for repository in sourceRepositories\" ng-change=\"onSelectedSourceRepositoryChange(selectedSourceRepository)\" ng-disabled=\"generatingEndpoint\" class=\"form-control source-repository-selector\" gdb-tooltip=\"{{'graphql.create_endpoint.toolbar.source_repository_selector.tooltip' | translate}}\" tooltip-placement=\"top\"> </select> </div> </div> <div class=\"wizard-container mt-2\"> <div class=\"wizard\"> <div class=\"wizard-steps\"> <div ng-repeat=\"step in wizardModel.steps\" ng-click=\"onStepClick(step); \\$event.preventDefault()\" class=\"wizard-step\" ng-class=\"{active: step.active, completed: step.visited}\"> <span class=\"step-title\">{{'graphql.create_endpoint.wizard_steps.' + step.id + '.title' | translate}}</span> <span class=\"fa fa-chevron-right step-decoration\"></span> </div> </div> <div class=\"wizard-content\"> <div ng-repeat=\"step in wizardModel.steps\" ng-if=\"step.active\" class=\"wizard-step-content\"> <div ng-switch=\"step.id\"> <div ng-switch-when=\"select_schema_sources\"> <select-schema-sources step-definition=\"step\"></select-schema-sources> </div> <div ng-switch-when=\"configure_endpoint\"> <configure-endpoint step-definition=\"step\" selected-source-repository=\"selectedSourceRepository.data.repository\"></configure-endpoint> </div> <div ng-switch-when=\"generate_endpoint\"> <generate-endpoint step-definition=\"step\"></generate-endpoint> </div> </div> </div> </div> </div> </div> </div> </div> </div> `;\n// Exports\nexport default code;"],"names":[],"sourceRoot":""}
|