graphdb-workbench 3.2.0-TR1 → 3.2.0-cypress-config
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/10142.dae0223e0a1d85ad72fe.bundle.js +2 -0
- package/dist/10142.dae0223e0a1d85ad72fe.bundle.js.map +1 -0
- package/dist/{10376.e89fa63ff898d45f45fd.bundle.js → 10376.2723c52982b51c64bffb.bundle.js} +2 -2
- package/dist/10376.2723c52982b51c64bffb.bundle.js.map +1 -0
- package/dist/12396.bcdc888b199dd039747f.bundle.js +2 -0
- package/dist/12396.bcdc888b199dd039747f.bundle.js.map +1 -0
- package/dist/12940.7a45ae43d5f3ba6e7d83.bundle.js +2 -0
- package/dist/12940.7a45ae43d5f3ba6e7d83.bundle.js.map +1 -0
- package/dist/14824.a3bc164c5bf4313f5276.bundle.js +2 -0
- package/dist/14824.a3bc164c5bf4313f5276.bundle.js.map +1 -0
- package/dist/15535.17701ea195962c5d2fba.bundle.js +2 -0
- package/dist/15535.17701ea195962c5d2fba.bundle.js.map +1 -0
- package/dist/16162.01738ef78ed04320fa38.bundle.js +2 -0
- package/dist/16162.01738ef78ed04320fa38.bundle.js.map +1 -0
- package/dist/18961.5e34171366c281038fe5.bundle.js +2 -0
- package/dist/18961.5e34171366c281038fe5.bundle.js.map +1 -0
- package/dist/20227.a9333aa1320edea7264b.bundle.js +2 -0
- package/dist/20227.a9333aa1320edea7264b.bundle.js.map +1 -0
- package/dist/20287.f3abdf0f06edf0c82f8e.bundle.js +2 -0
- package/dist/20287.f3abdf0f06edf0c82f8e.bundle.js.map +1 -0
- package/dist/21136.a1287df4a34cfeaac8ff.bundle.js +2 -0
- package/dist/21136.a1287df4a34cfeaac8ff.bundle.js.map +1 -0
- package/dist/21142.1f577c8d547d32860906.bundle.js +2 -0
- package/dist/21142.1f577c8d547d32860906.bundle.js.map +1 -0
- package/dist/21170.9801db7bd74eb61c7f3f.bundle.js +2 -0
- package/dist/21170.9801db7bd74eb61c7f3f.bundle.js.map +1 -0
- package/dist/21195.28f163f2893dbd697334.bundle.js +2 -0
- package/dist/21195.28f163f2893dbd697334.bundle.js.map +1 -0
- package/dist/25747.66474ed6ef59a39e7a12.bundle.js +2 -0
- package/dist/25747.66474ed6ef59a39e7a12.bundle.js.map +1 -0
- package/dist/27580.96dd68d0484687b8425c.bundle.js +2 -0
- package/dist/27580.96dd68d0484687b8425c.bundle.js.map +1 -0
- package/dist/{28050.8ca1fa760c892bfc5466.bundle.js → 28050.6960a4a0961a07a94743.bundle.js} +2 -2
- package/dist/28050.6960a4a0961a07a94743.bundle.js.map +1 -0
- package/dist/31636.969ddabe580c28777d20.bundle.js +2 -0
- package/dist/31636.969ddabe580c28777d20.bundle.js.map +1 -0
- package/dist/32489.c00a6026a8e341d13a63.bundle.js +2 -0
- package/dist/32489.c00a6026a8e341d13a63.bundle.js.map +1 -0
- package/dist/33524.79f7e98ef89a46d4aa58.bundle.js +2 -0
- package/dist/33524.79f7e98ef89a46d4aa58.bundle.js.map +1 -0
- package/dist/34495.b1caa9ff52396adec899.bundle.js +2 -0
- package/dist/34495.b1caa9ff52396adec899.bundle.js.map +1 -0
- package/dist/38360.30a38710a483db56ec47.bundle.js +2 -0
- package/dist/38360.30a38710a483db56ec47.bundle.js.map +1 -0
- package/dist/38644.ce67c3226374ed2fe8ee.bundle.js +2 -0
- package/dist/38644.ce67c3226374ed2fe8ee.bundle.js.map +1 -0
- package/dist/38843.13763d8362f774b601cf.bundle.js +2 -0
- package/dist/38843.13763d8362f774b601cf.bundle.js.map +1 -0
- package/dist/39518.36f3863a01e9cd2d93fd.bundle.js +2 -0
- package/dist/{39518.4199684f3273d29d9105.bundle.js.map → 39518.36f3863a01e9cd2d93fd.bundle.js.map} +1 -1
- package/dist/39539.f5526b59067e9d7bd7bf.bundle.js +2 -0
- package/dist/39539.f5526b59067e9d7bd7bf.bundle.js.map +1 -0
- package/dist/41453.ea5e51814e73b6ab91cf.bundle.js +2 -0
- package/dist/41453.ea5e51814e73b6ab91cf.bundle.js.map +1 -0
- package/dist/41621.624ba3d867bc05b5c3cc.bundle.js +2 -0
- package/dist/41621.624ba3d867bc05b5c3cc.bundle.js.map +1 -0
- package/dist/42129.0c8e8c51e0f7d12bbfff.bundle.js +2 -0
- package/dist/42129.0c8e8c51e0f7d12bbfff.bundle.js.map +1 -0
- package/dist/44444.d31281d11bf389e4611a.bundle.js +2 -0
- package/dist/44444.d31281d11bf389e4611a.bundle.js.map +1 -0
- package/dist/45069.82993bf600a550fac275.bundle.js +2 -0
- package/dist/45069.82993bf600a550fac275.bundle.js.map +1 -0
- package/dist/{456.6118cb99d130f4c0410c.bundle.js → 456.634597f220a97bfbeab8.bundle.js} +2 -2
- package/dist/456.634597f220a97bfbeab8.bundle.js.map +1 -0
- package/dist/45758.9ffd8e7d5f99e2c394a2.bundle.js +2 -0
- package/dist/45758.9ffd8e7d5f99e2c394a2.bundle.js.map +1 -0
- package/dist/{52264.99261393a7f6e631da3b.bundle.js → 52264.4cf2f1a18d16484f0af1.bundle.js} +2 -2
- package/dist/52264.4cf2f1a18d16484f0af1.bundle.js.map +1 -0
- package/dist/54419.aec242a64c27ceda6e02.bundle.js +2 -0
- package/dist/54419.aec242a64c27ceda6e02.bundle.js.map +1 -0
- package/dist/5470.58e107e4c61ae7c22d48.bundle.js +2 -0
- package/dist/5470.58e107e4c61ae7c22d48.bundle.js.map +1 -0
- package/dist/55862.4dcac3805b87be57091a.bundle.js +2 -0
- package/dist/55862.4dcac3805b87be57091a.bundle.js.map +1 -0
- package/dist/58306.9ba4893fcd0036471123.bundle.js +2 -0
- package/dist/58306.9ba4893fcd0036471123.bundle.js.map +1 -0
- package/dist/58334.8a2bdb0560e0ce23f792.bundle.js +2 -0
- package/dist/58334.8a2bdb0560e0ce23f792.bundle.js.map +1 -0
- package/dist/60560.2ef51d3e2d9674450419.bundle.js +2 -0
- package/dist/60560.2ef51d3e2d9674450419.bundle.js.map +1 -0
- package/dist/64118.fb6952c8ef6fc9117f35.bundle.js +2 -0
- package/dist/64118.fb6952c8ef6fc9117f35.bundle.js.map +1 -0
- package/dist/66014.d9f7b86d6829ebfe9d0e.bundle.js +2 -0
- package/dist/66014.d9f7b86d6829ebfe9d0e.bundle.js.map +1 -0
- package/dist/67888.244385f782b0bd79cec6.bundle.js +2 -0
- package/dist/67888.244385f782b0bd79cec6.bundle.js.map +1 -0
- package/dist/69724.56df2d5b2ba312cb8118.bundle.js +2 -0
- package/dist/69724.56df2d5b2ba312cb8118.bundle.js.map +1 -0
- package/dist/72379.37d5331a19aa21492b89.bundle.js +2 -0
- package/dist/72379.37d5331a19aa21492b89.bundle.js.map +1 -0
- package/dist/73667.17d61d7fcf790947f7c6.bundle.js +2 -0
- package/dist/73667.17d61d7fcf790947f7c6.bundle.js.map +1 -0
- package/dist/73793.47292e9aa96be488faaa.bundle.js +2 -0
- package/dist/73793.47292e9aa96be488faaa.bundle.js.map +1 -0
- package/dist/75282.55f10c1c73bb36f201be.bundle.js +2 -0
- package/dist/75282.55f10c1c73bb36f201be.bundle.js.map +1 -0
- package/dist/75849.7e40d09cd95631117dc0.bundle.js +2 -0
- package/dist/75849.7e40d09cd95631117dc0.bundle.js.map +1 -0
- package/dist/77143.e0cb9ab61d798d7b5e0b.bundle.js +2 -0
- package/dist/77143.e0cb9ab61d798d7b5e0b.bundle.js.map +1 -0
- package/dist/78070.21b221881c2b49603eb9.bundle.js +2 -0
- package/dist/78070.21b221881c2b49603eb9.bundle.js.map +1 -0
- package/dist/78250.19b064e34121d373f0dc.bundle.js +2 -0
- package/dist/78250.19b064e34121d373f0dc.bundle.js.map +1 -0
- package/dist/78681.7b1c9100e03c2346550a.bundle.js +2 -0
- package/dist/78681.7b1c9100e03c2346550a.bundle.js.map +1 -0
- package/dist/79329.d8780313009804cacb6c.bundle.js +2 -0
- package/dist/79329.d8780313009804cacb6c.bundle.js.map +1 -0
- package/dist/81837.a989b5e255a0ce6176b2.bundle.js +2 -0
- package/dist/81837.a989b5e255a0ce6176b2.bundle.js.map +1 -0
- package/dist/82206.fd868720394b9dc2adac.bundle.js +2 -0
- package/dist/82206.fd868720394b9dc2adac.bundle.js.map +1 -0
- package/dist/82293.5e41c8378272aabf99f6.bundle.js +2 -0
- package/dist/82293.5e41c8378272aabf99f6.bundle.js.map +1 -0
- package/dist/82896.4787d205b19befaf263a.bundle.js +2 -0
- package/dist/82896.4787d205b19befaf263a.bundle.js.map +1 -0
- package/dist/{82926.93dbf44f2bcccba34e9b.bundle.js → 82926.dabee9e2f4418f5ad605.bundle.js} +2 -2
- package/dist/{82926.93dbf44f2bcccba34e9b.bundle.js.map → 82926.dabee9e2f4418f5ad605.bundle.js.map} +1 -1
- package/dist/{83136.56d692623cbc60048e03.bundle.js → 83136.4941a19a85eb34ca370a.bundle.js} +2 -2
- package/dist/83136.4941a19a85eb34ca370a.bundle.js.map +1 -0
- package/dist/{84727.b93b2f9857352d39b241.bundle.js → 84727.2e3214ad60bd59f435e2.bundle.js} +2 -2
- package/dist/84727.2e3214ad60bd59f435e2.bundle.js.map +1 -0
- package/dist/85281.76d06e1c26137bb4b417.bundle.js +2 -0
- package/dist/85281.76d06e1c26137bb4b417.bundle.js.map +1 -0
- package/dist/{86639.ab85108411ef0f006e10.bundle.js → 86639.d28da26b8f138f5eb19b.bundle.js} +2 -2
- package/dist/86639.d28da26b8f138f5eb19b.bundle.js.map +1 -0
- package/dist/89647.219c4eb306757647ae1c.bundle.js +2 -0
- package/dist/89647.219c4eb306757647ae1c.bundle.js.map +1 -0
- package/dist/9062.1e7bcccd40724f467269.bundle.js +2 -0
- package/dist/9062.1e7bcccd40724f467269.bundle.js.map +1 -0
- package/dist/95953.44049d81dd4879f745f9.bundle.js +2 -0
- package/dist/95953.44049d81dd4879f745f9.bundle.js.map +1 -0
- package/dist/96248.83e4f0c66a9f58161a66.bundle.js +2 -0
- package/dist/96248.83e4f0c66a9f58161a66.bundle.js.map +1 -0
- package/dist/98494.969124a68766ebbdee3c.bundle.js +3 -0
- package/dist/98494.969124a68766ebbdee3c.bundle.js.map +1 -0
- package/dist/99379.1b108abf4421ccee2973.bundle.js +2 -0
- package/dist/99379.1b108abf4421ccee2973.bundle.js.map +1 -0
- package/dist/99448.81c627c633d9b9526b45.bundle.js +2 -0
- package/dist/99448.81c627c633d9b9526b45.bundle.js.map +1 -0
- package/dist/99893.6ac254ca3f59996b2a52.bundle.js +2 -0
- package/dist/99893.6ac254ca3f59996b2a52.bundle.js.map +1 -0
- package/dist/api/models/configuration/configuration.d.ts +5 -0
- package/dist/api/models/logging/log-level.d.ts +7 -0
- package/dist/api/models/logging/logger-config.d.ts +19 -0
- package/dist/api/models/logging/logger-definitions.d.ts +7 -0
- package/dist/api/models/logging/logger-type.d.ts +3 -0
- package/dist/api/models/logging/logger.d.ts +15 -0
- package/dist/api/models/storage/storage-data.d.ts +1 -0
- package/dist/api/ontotext-workbench-api.d.ts +1 -0
- package/dist/api/ontotext-workbench-api.js +1 -1
- package/dist/api/ontotext-workbench-api.js.map +1 -1
- package/dist/api/services/logging/console/console-logger.service.d.ts +19 -0
- package/dist/api/services/logging/index.d.ts +2 -0
- package/dist/api/services/logging/logger-provider.d.ts +11 -0
- package/dist/api/services/logging/logger-service.d.ts +63 -0
- package/dist/api/services/logging/loggers.d.ts +15 -0
- package/dist/api/services/logging/test/loggers.spec.d.ts +1 -0
- package/dist/api/services/plugins/plugins-rest.service.d.ts +1 -0
- package/dist/api/services/plugins/plugins.service.d.ts +1 -0
- package/dist/api/services/repository/repository-storage.service.d.ts +1 -0
- package/dist/api/services/storage/local-storage-subscription-handler.service.d.ts +1 -0
- package/dist/assets/configuration.default.json +5 -1
- 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 +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +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.c3f39a4fe72b2fdbc029.js +3 -0
- package/dist/{legacyWorkbench.57fc12c172f6350ac4c5.js.map → legacyWorkbench.c3f39a4fe72b2fdbc029.js.map} +1 -1
- package/dist/{main.b9a83da68ffc43c91de0.js → main.948b97a64249c87809bf.js} +3 -3
- package/dist/main.948b97a64249c87809bf.js.map +1 -0
- 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/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/translate-label.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/translation.service-CC6jY4U-.js +1 -0
- package/dist/shared-components/collection/components/dialogs/onto-cookie-policy-dialog/onto-cookie-policy-dialog.js +1 -1
- package/dist/shared-components/collection/components/onto-dropdown/onto-dropdown.js +1 -1
- package/dist/shared-components/collection/components/onto-navbar/navbar-service.js +1 -1
- package/dist/shared-components/collection/services/logger-provider.js +1 -0
- package/dist/shared-components/collection/services/translation.service.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/translate-label.entry.js +1 -1
- package/dist/shared-components/esm/translation.service-nljGIprK.js +1 -0
- package/dist/shared-components/shared-components/p-09a97d11.entry.js +1 -0
- package/dist/shared-components/shared-components/p-21b82a97.entry.js +1 -0
- package/dist/shared-components/shared-components/p-8d20ae56.entry.js +1 -0
- package/dist/shared-components/shared-components/{p-91ad7f7f.entry.js → p-9131b137.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-1bc2ac8e.entry.js → p-e454ffc9.entry.js} +1 -1
- package/dist/shared-components/shared-components/{p-17bac1e3.entry.js → p-f9aa2123.entry.js} +1 -1
- package/dist/shared-components/shared-components/p-nljGIprK.js +1 -0
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/dist/shared-components/types/components/dialogs/onto-cookie-policy-dialog/onto-cookie-policy-dialog.d.ts +1 -0
- package/dist/shared-components/types/components/onto-dropdown/onto-dropdown.d.ts +1 -0
- package/dist/shared-components/types/services/logger-provider.d.ts +11 -0
- package/dist/shared-components/types/services/translation.service.d.ts +1 -0
- package/dist/workbench/workbench/workbenchApp.js +1 -1
- package/package.json +1 -1
- package/dist/10142.f47cd2aec05492fce7ce.bundle.js +0 -2
- package/dist/10142.f47cd2aec05492fce7ce.bundle.js.map +0 -1
- package/dist/10376.e89fa63ff898d45f45fd.bundle.js.map +0 -1
- package/dist/12396.4c26c8da50c790b0f39a.bundle.js +0 -2
- package/dist/12396.4c26c8da50c790b0f39a.bundle.js.map +0 -1
- package/dist/12940.5b35c2cf5958d8769c0a.bundle.js +0 -2
- package/dist/12940.5b35c2cf5958d8769c0a.bundle.js.map +0 -1
- package/dist/14824.5d5041c05fca4c0373fa.bundle.js +0 -2
- package/dist/14824.5d5041c05fca4c0373fa.bundle.js.map +0 -1
- package/dist/15535.ce8d657c04f3401b9539.bundle.js +0 -2
- package/dist/15535.ce8d657c04f3401b9539.bundle.js.map +0 -1
- package/dist/16162.8f482628d1b34d41d496.bundle.js +0 -2
- package/dist/16162.8f482628d1b34d41d496.bundle.js.map +0 -1
- package/dist/18961.c6505525fb0491b48f8b.bundle.js +0 -2
- package/dist/18961.c6505525fb0491b48f8b.bundle.js.map +0 -1
- package/dist/19968.fdb823f9a12e11a633ec.bundle.js +0 -2
- package/dist/19968.fdb823f9a12e11a633ec.bundle.js.map +0 -1
- package/dist/20227.ab5dfaab392dbb16ba31.bundle.js +0 -2
- package/dist/20227.ab5dfaab392dbb16ba31.bundle.js.map +0 -1
- package/dist/20287.c42f9d1d913c36e46931.bundle.js +0 -2
- package/dist/20287.c42f9d1d913c36e46931.bundle.js.map +0 -1
- package/dist/21136.199caea09a1c9ad90393.bundle.js +0 -2
- package/dist/21136.199caea09a1c9ad90393.bundle.js.map +0 -1
- package/dist/21142.b690e00c8884fddb2bb3.bundle.js +0 -2
- package/dist/21142.b690e00c8884fddb2bb3.bundle.js.map +0 -1
- package/dist/21170.d5e3041241741d21080c.bundle.js +0 -2
- package/dist/21170.d5e3041241741d21080c.bundle.js.map +0 -1
- package/dist/21195.267abc9d42b711d0f17a.bundle.js +0 -2
- package/dist/21195.267abc9d42b711d0f17a.bundle.js.map +0 -1
- package/dist/25747.4e00941ec221c4d6ce8f.bundle.js +0 -2
- package/dist/25747.4e00941ec221c4d6ce8f.bundle.js.map +0 -1
- package/dist/27580.f71ebbc69dd1c7785ef3.bundle.js +0 -2
- package/dist/27580.f71ebbc69dd1c7785ef3.bundle.js.map +0 -1
- package/dist/28050.8ca1fa760c892bfc5466.bundle.js.map +0 -1
- package/dist/31636.e34ccc2d6f2dec577446.bundle.js +0 -2
- package/dist/31636.e34ccc2d6f2dec577446.bundle.js.map +0 -1
- package/dist/32489.97fac2c3daa49b143d13.bundle.js +0 -2
- package/dist/32489.97fac2c3daa49b143d13.bundle.js.map +0 -1
- package/dist/33524.35fe079bcb99a78babaf.bundle.js +0 -2
- package/dist/33524.35fe079bcb99a78babaf.bundle.js.map +0 -1
- package/dist/34495.cfa15bda8009fa37c6ff.bundle.js +0 -2
- package/dist/34495.cfa15bda8009fa37c6ff.bundle.js.map +0 -1
- package/dist/38360.0a90e77042876c86b279.bundle.js +0 -2
- package/dist/38360.0a90e77042876c86b279.bundle.js.map +0 -1
- package/dist/38644.3a0954c798ec413a3810.bundle.js +0 -2
- package/dist/38644.3a0954c798ec413a3810.bundle.js.map +0 -1
- package/dist/38843.5ef7a063337524ce3bb2.bundle.js +0 -2
- package/dist/38843.5ef7a063337524ce3bb2.bundle.js.map +0 -1
- package/dist/39518.4199684f3273d29d9105.bundle.js +0 -2
- package/dist/39539.c23e4878044d73f2505b.bundle.js +0 -2
- package/dist/39539.c23e4878044d73f2505b.bundle.js.map +0 -1
- package/dist/41453.8bb4c783da2c5077a6e9.bundle.js +0 -2
- package/dist/41453.8bb4c783da2c5077a6e9.bundle.js.map +0 -1
- package/dist/41621.68c5ebc2104a62e2b41d.bundle.js +0 -2
- package/dist/41621.68c5ebc2104a62e2b41d.bundle.js.map +0 -1
- package/dist/42129.f44b7b20f9cd376c6e59.bundle.js +0 -2
- package/dist/42129.f44b7b20f9cd376c6e59.bundle.js.map +0 -1
- package/dist/44444.ad66c8256bc5b653de1a.bundle.js +0 -2
- package/dist/44444.ad66c8256bc5b653de1a.bundle.js.map +0 -1
- package/dist/456.6118cb99d130f4c0410c.bundle.js.map +0 -1
- package/dist/45758.6ceb731cbe0576149f31.bundle.js +0 -2
- package/dist/45758.6ceb731cbe0576149f31.bundle.js.map +0 -1
- package/dist/52264.99261393a7f6e631da3b.bundle.js.map +0 -1
- package/dist/54419.f09240da9349be115ab3.bundle.js +0 -2
- package/dist/54419.f09240da9349be115ab3.bundle.js.map +0 -1
- package/dist/5470.7c17c7d3b58c8c0d0786.bundle.js +0 -2
- package/dist/5470.7c17c7d3b58c8c0d0786.bundle.js.map +0 -1
- package/dist/55862.1fb5abd075ba11a7e93c.bundle.js +0 -2
- package/dist/55862.1fb5abd075ba11a7e93c.bundle.js.map +0 -1
- package/dist/58306.ba9545cbaee021ebcbce.bundle.js +0 -2
- package/dist/58306.ba9545cbaee021ebcbce.bundle.js.map +0 -1
- package/dist/58334.6fdc74532b5f755916d8.bundle.js +0 -2
- package/dist/58334.6fdc74532b5f755916d8.bundle.js.map +0 -1
- package/dist/60560.37740d97b418899a5d21.bundle.js +0 -2
- package/dist/60560.37740d97b418899a5d21.bundle.js.map +0 -1
- package/dist/64118.9841bd3b9724868b8a63.bundle.js +0 -2
- package/dist/64118.9841bd3b9724868b8a63.bundle.js.map +0 -1
- package/dist/66014.336bc4291da2fbc96cd1.bundle.js +0 -2
- package/dist/66014.336bc4291da2fbc96cd1.bundle.js.map +0 -1
- package/dist/67888.7d4966e0a22ba655f1b8.bundle.js +0 -2
- package/dist/67888.7d4966e0a22ba655f1b8.bundle.js.map +0 -1
- package/dist/69724.1a97fa707ee1379409e9.bundle.js +0 -2
- package/dist/69724.1a97fa707ee1379409e9.bundle.js.map +0 -1
- package/dist/72379.bac50d0011665a85b6cd.bundle.js +0 -2
- package/dist/72379.bac50d0011665a85b6cd.bundle.js.map +0 -1
- package/dist/73667.3dd4f377e7ef54fd8758.bundle.js +0 -2
- package/dist/73667.3dd4f377e7ef54fd8758.bundle.js.map +0 -1
- package/dist/73793.6d80d47c26ed60a587fd.bundle.js +0 -2
- package/dist/73793.6d80d47c26ed60a587fd.bundle.js.map +0 -1
- package/dist/75282.88819e851ed18720b275.bundle.js +0 -2
- package/dist/75282.88819e851ed18720b275.bundle.js.map +0 -1
- package/dist/75849.51ade15bf0074eab76f3.bundle.js +0 -2
- package/dist/75849.51ade15bf0074eab76f3.bundle.js.map +0 -1
- package/dist/77143.f23d8a7fa51df083741c.bundle.js +0 -2
- package/dist/77143.f23d8a7fa51df083741c.bundle.js.map +0 -1
- package/dist/78070.b5e22ffae27cc3ca7a6f.bundle.js +0 -2
- package/dist/78070.b5e22ffae27cc3ca7a6f.bundle.js.map +0 -1
- package/dist/78250.6db42146a120459280e4.bundle.js +0 -2
- package/dist/78250.6db42146a120459280e4.bundle.js.map +0 -1
- package/dist/78681.39694d37c0f75ea04df6.bundle.js +0 -2
- package/dist/78681.39694d37c0f75ea04df6.bundle.js.map +0 -1
- package/dist/79329.5a5cbfa466d1c62af915.bundle.js +0 -2
- package/dist/79329.5a5cbfa466d1c62af915.bundle.js.map +0 -1
- package/dist/81837.f10e22eaf72a0642b50e.bundle.js +0 -2
- package/dist/81837.f10e22eaf72a0642b50e.bundle.js.map +0 -1
- package/dist/82206.8ec983edcf675cfd4531.bundle.js +0 -2
- package/dist/82206.8ec983edcf675cfd4531.bundle.js.map +0 -1
- package/dist/82293.a9bb9cd640c007cc1e91.bundle.js +0 -2
- package/dist/82293.a9bb9cd640c007cc1e91.bundle.js.map +0 -1
- package/dist/82896.9aed45baf67510717c6f.bundle.js +0 -2
- package/dist/82896.9aed45baf67510717c6f.bundle.js.map +0 -1
- package/dist/83136.56d692623cbc60048e03.bundle.js.map +0 -1
- package/dist/84727.b93b2f9857352d39b241.bundle.js.map +0 -1
- package/dist/85281.27b5a1eb8e7ac2cf8459.bundle.js +0 -2
- package/dist/85281.27b5a1eb8e7ac2cf8459.bundle.js.map +0 -1
- package/dist/86639.ab85108411ef0f006e10.bundle.js.map +0 -1
- package/dist/89647.b1a4e522d685f0b5d60f.bundle.js +0 -2
- package/dist/89647.b1a4e522d685f0b5d60f.bundle.js.map +0 -1
- package/dist/9062.d9049833d076191d3e1a.bundle.js +0 -2
- package/dist/9062.d9049833d076191d3e1a.bundle.js.map +0 -1
- package/dist/95953.4ea6a7c68a22779ba299.bundle.js +0 -2
- package/dist/95953.4ea6a7c68a22779ba299.bundle.js.map +0 -1
- package/dist/96248.1b85f989b0a7852c9b7b.bundle.js +0 -2
- package/dist/96248.1b85f989b0a7852c9b7b.bundle.js.map +0 -1
- package/dist/98494.a2cdb2a1c5d32d0094f3.bundle.js +0 -3
- package/dist/98494.a2cdb2a1c5d32d0094f3.bundle.js.map +0 -1
- package/dist/99379.be6c85ef305af6667dc1.bundle.js +0 -2
- package/dist/99379.be6c85ef305af6667dc1.bundle.js.map +0 -1
- package/dist/99448.314018d0afb1af150ddf.bundle.js +0 -2
- package/dist/99448.314018d0afb1af150ddf.bundle.js.map +0 -1
- package/dist/99893.2537d77ee1f4df0c846b.bundle.js +0 -2
- package/dist/99893.2537d77ee1f4df0c846b.bundle.js.map +0 -1
- package/dist/legacyWorkbench.57fc12c172f6350ac4c5.js +0 -3
- package/dist/main.b9a83da68ffc43c91de0.js.map +0 -1
- package/dist/shared-components/cjs/translation.service-DjdwDpXN.js +0 -1
- package/dist/shared-components/esm/translation.service-Hf6024E7.js +0 -1
- package/dist/shared-components/shared-components/p-2433b25f.entry.js +0 -1
- package/dist/shared-components/shared-components/p-25fa0ee5.entry.js +0 -1
- package/dist/shared-components/shared-components/p-6266be98.entry.js +0 -1
- package/dist/shared-components/shared-components/p-Hf6024E7.js +0 -1
- /package/dist/{98494.a2cdb2a1c5d32d0094f3.bundle.js.LICENSE.txt → 98494.969124a68766ebbdee3c.bundle.js.LICENSE.txt} +0 -0
- /package/dist/{legacyWorkbench.57fc12c172f6350ac4c5.js.LICENSE.txt → legacyWorkbench.c3f39a4fe72b2fdbc029.js.LICENSE.txt} +0 -0
- /package/dist/{main.b9a83da68ffc43c91de0.js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B7L,GAGhC6L,EAA4BL,EAAU,KAE7BM,GAAwB3S,EAAOyW,cAChC9D,EA1BDnM,EAAeiP,iBAAiBnD,EAAckB,uBAChDzB,KAAKsD,GACLrD,MAAOnK,IACJxB,EAAOwB,MAAMiB,SAASjB,IACtBD,QAAQC,MAAM,uCAAwCA,KAEzDoK,QAAQ,KACDU,IACAA,OAAsB9L,OAlZE,OAsc5C,CAxdA3G,QACKC,OAAO,yEARI,CACZ,kDACA,qDACA,6EACA,2EAKCuJ,WAAW,oCAAqCyI,GAErDA,EAAkC9R,QAAU,CAAC,SAAU,YAAa,YAAa,gBAAiB,YAAa,eAAgB,SAAU,aAAc,iBAAkB,wBAAyB,mB","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/dynamic-form/dynamic-form-field.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/endpoint-definition-file.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/services/file-to-import-definition.mapper.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/multiselect-dropdown/multiselect-dropdown.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/controllers/import-endpoint-definition-modal.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/dynamic-form/dynamic-form.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/lib/FileSaver-patch.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/controllers/graphql-endpoint-configuration-modal.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/controllers/graphql-endpoint-management-view.controller.js"],"sourcesContent":["import {FIELD_TYPE} from \"./field-type\";\n\nconst modules = [];\nangular\n .module('graphdb.framework.core.directives.dynamic-form-field', modules)\n .directive('dynamicFormField', dynamicFormFieldDirective);\n\ndynamicFormFieldDirective.$inject = [];\n\nfunction dynamicFormFieldDirective($compile) {\n return {\n restrict: 'E',\n scope: {\n field: '=',\n form: '=',\n translationKeyPrefix: '='\n },\n templateUrl: 'js/angular/core/directives/dynamic-form/templates/form-field-template.html',\n link: function($scope) {\n $scope.FIELD_TYPE = FIELD_TYPE;\n }\n };\n}\n","/**\n * The status of an import graphql endpoint definition operation.\n * @type {{PENDING: string, SUCCESS: string, FAIL: string, SKIP: string}}\n */\nexport const ImportStatus = {\n PENDING: 'PENDING',\n SUCCESS: 'SUCCESS',\n FAIL: 'FAIL',\n SKIP: 'SKIP'\n}\n\n/**\n * The keys for the import status labels.\n * @type {{[p: string]: string}}\n */\nexport const ImportStatusLabelKeys = {\n [ImportStatus.PENDING]: 'graphql.endpoints_management.import_definition_modal.status.pending',\n [ImportStatus.SUCCESS]: 'graphql.endpoints_management.import_definition_modal.status.completed',\n [ImportStatus.FAIL]: 'graphql.endpoints_management.import_definition_modal.status.failed',\n [ImportStatus.SKIP]: 'graphql.endpoints_management.import_definition_modal.status.not_allowed'\n};\n\n/**\n * The mapping of import status to view status. This is used to control the css class of the status tag.\n * @type {{[p: string]: string}}\n */\nexport const ImportStatusToViewMapping = {\n [ImportStatus.PENDING]: 'tag-warning',\n [ImportStatus.SUCCESS]: 'tag-success',\n [ImportStatus.FAIL]: 'tag-danger',\n [ImportStatus.SKIP]: 'tag-info'\n};\n\n/**\n * A class that is a wrapper around a list of definition files. This class provides utility methods to work with the\n * definition files list and exposes some precalculated properties for easier access and optimization of the template\n * bindings.\n */\nexport class EndpointDefinitionFileList {\n /**\n * @type {Array<EndpointDefinitionFile>}\n * @private\n */\n _list;\n /**\n * @type {number}\n * @private\n */\n _size;\n\n constructor(definitionFiles = []) {\n this._list = definitionFiles;\n this._size = definitionFiles.length;\n }\n\n /**\n * Processes the list of definition files with the given predicate.\n * @param {function(EndpointDefinitionFile): void} predicate The predicate to process the files with.\n */\n processWith(predicate) {\n this.list.forEach(predicate);\n }\n\n /**\n * Finds a definition file by file name.\n * @param {string} name The name of the file to find.\n * @returns {EndpointDefinitionFile}\n */\n findDefinitionFileByName(name) {\n return this.list.find(definitionFile => definitionFile.file.name === name);\n }\n\n /**\n * Extracts the file names from the list of definition files.\n * @returns {string[]}\n */\n getFileNames() {\n return this.list.map(definitionFile => definitionFile.file.name);\n }\n\n /**\n * Appends the given files to the list of definition files.\n * @param {EndpointDefinitionFile[]} definitionFiles The files to append.\n */\n appendFiles(definitionFiles) {\n this.list.push(...definitionFiles);\n this._size = this.list.length;\n }\n\n /**\n * Removes the given file from the list of definition files.\n * @param {EndpointDefinitionFile} definitionFileToRemove The file to remove.\n */\n removeFile(definitionFileToRemove) {\n this.list = this.list.filter(definitionFile => definitionFile.file !== definitionFileToRemove.file);\n }\n\n get size() {\n return this._size;\n }\n\n set size(size) {\n this._size = size;\n }\n\n set list(definitionFiles) {\n this._list = definitionFiles;\n this._size = definitionFiles.length;\n }\n\n get list() {\n return this._list;\n }\n}\n\n/**\n * A class that represents a single endpoint definition file. This class contains all the information about the file\n * and the status of the import operation. It is needed to keep all related with the definition file import in one place\n * and expose the necessary properties for the template bindings.\n */\nexport class EndpointDefinitionFile {\n /**\n * @type {EndpointDefinitionFileList}\n * @private\n */\n _list;\n /**\n * @type {File}\n * @private\n */\n _file;\n /**\n * The file name of the definition file. This is the name of the file that was uploaded and can also be obtained\n * from the file object. The reason for having it here is that when an archive is uploaded, the file object will\n * contain the name of the archive file, but the definition files are extracted from the archive and each of them\n * has a different name. This property is used to keep track of the original file name.\n * @type {string}\n * @private\n */\n _filename;\n /**\n * @type {'pending'|'success'|'fail'|'not_allowed'}\n * @private\n */\n _status;\n /**\n * This is a string which is a css class name that will be used to display the status as a tag.\n * @type {string}\n * @private\n */\n _viewStatus;\n /**\n * @type {string}\n * @private\n */\n _statusMessage;\n /**\n * @type {string|null}\n * @private\n */\n _endpointId;\n /**\n * @type {EndpointGenerationReport|undefined}\n * @private\n */\n _report;\n\n constructor(file, status, statusMessage, list) {\n this._file = file;\n this._status = status;\n this._viewStatus = ImportStatusToViewMapping[status];\n this._statusMessage = statusMessage;\n this._list = list;\n }\n\n set file(file) {\n this._file = file;\n }\n\n get file() {\n return this._file;\n }\n\n set filename(filename) {\n this._filename = filename;\n }\n\n get filename() {\n return this._filename;\n }\n\n set status(status) {\n this._status = status;\n this._viewStatus = ImportStatusToViewMapping[status];\n }\n\n get status() {\n return this._status;\n }\n\n set viewStatus(viewStatus) {\n this._viewStatus = viewStatus;\n }\n\n get viewStatus() {\n return this._viewStatus;\n }\n\n set statusMessage(statusMessage) {\n this._statusMessage = statusMessage;\n }\n\n get statusMessage() {\n return this._statusMessage;\n }\n\n set endpointId(endpointId) {\n this._endpointId = endpointId;\n }\n\n get endpointId() {\n return this._endpointId;\n }\n\n set report(report) {\n this._report = report;\n }\n\n get report() {\n return this._report;\n }\n\n get list() {\n return this._list;\n }\n\n set list(list) {\n this._list = list;\n }\n}\n","import {\n EndpointDefinitionFile, EndpointDefinitionFileList,\n ImportStatusLabelKeys\n} from \"../../models/graphql/endpoint-definition-file\";\nimport {importEndpointDefinitionReportMapper} from \"./endpoint-generation-report.mapper\";\n\n/**\n * Maps a list of files to a list of import definitions.\n * @param {File[]} files - The list of files to map.\n * @param {string} importStatus - The status of the import.\n * @returns {EndpointDefinitionFileList}\n */\nexport const fileToImportDefinitionsMapper = (files, importStatus) => {\n const definitionFiles = files.map(file => fileToImportDefinitionMapper(file, importStatus));\n return new EndpointDefinitionFileList(definitionFiles);\n};\n\n/**\n * Maps a file to an import definition.\n * @param {File} file - The file to map.\n * @param {string} importStatus - The status of the import.\n * @returns {EndpointDefinitionFile}\n */\nexport const fileToImportDefinitionMapper = (file, importStatus) => {\n return new EndpointDefinitionFile(file, importStatus, ImportStatusLabelKeys[importStatus]);\n};\n\n/**\n * Maps the server response to EndpointDefinitionFileList.\n * @param {*} data The server response data.\n * @param {string} repositoryId The repository ID.\n * @param {EndpointDefinitionFileList} definitionFiles The list of definition files.\n * @returns {EndpointDefinitionFileList}\n */\nexport const importEndpointDefinitionListMapper = (data, repositoryId, definitionFiles) => {\n if (!data || !data.length) {\n return new EndpointDefinitionFileList();\n }\n\n const processEntry = (response) => {\n const endpointId = response.id;\n const filename = response.filename;\n const status = response.status.toUpperCase();\n let definitionFile = definitionFiles.findDefinitionFileByName(filename) || new EndpointDefinitionFile();\n definitionFile.endpointId = endpointId;\n definitionFile.filename = filename;\n definitionFile.status = status;\n definitionFile.statusMessage = ImportStatusLabelKeys[status];\n definitionFile.report = importEndpointDefinitionReportMapper(response, endpointId, repositoryId);\n if (response.subFiles) {\n const subFileDefinitions = response.subFiles.map(processEntry);\n definitionFile.list = new EndpointDefinitionFileList(subFileDefinitions);\n }\n return definitionFile;\n }\n\n data.forEach(processEntry);\n\n return new EndpointDefinitionFileList([...definitionFiles.list]);\n}\n","/**\n * @function multiselectDropdown\n * @description\n * A directive for rendering a multi-select dropdown.\n *\n * This directive displays a list of options with checkboxes that allows users\n * to select multiple items. Each option should be an instance of the\n * SelectOptionsModel, which encapsulates the display label, value,\n * selection state, and any additional data. Clicking the toggle button opens/closes\n * the dropdown; clicking outside the dropdown closes it.\n *\n * @example\n * ### HTML Usage:\n * ```html\n * <multiselect-dropdown\n * ng-model=\"selectedOptions\"\n * options=\"myOptions\"\n * dropdown-label=\"'Choose Items'\">\n * </multiselect-dropdown>\n * ```\n *\n * ### Controller Example:\n * ```javascript\n * angular.module('myApp', [])\n * .controller('ExampleController', function($scope) {\n * $scope.myOptions = [\n * new SelectOptionsModel({ label: 'Option A', value: 'A' }),\n * new SelectOptionsModel({ label: 'Option B', value: 'B' }),\n * new SelectOptionsModel({ label: 'Option C', value: 'C' })\n * ];\n * });\n * ```\n *\n * @param {Array.<SelectOptionsModel>} options - The array of options displayed in the dropdown.\n * @param {string=} [dropdownLabel='Select...'] - (Optional) The placeholder text if no items are selected.\n *\n * @returns {Object} The directive definition object.\n */\nangular.module('graphdb.framework.core.directives.multiselect-dropdown', [])\n .directive('multiselectDropdown', ['$translate', function ($translate) {\n return {\n restrict: 'E',\n require: 'ngModel',\n scope: {\n options: '=',\n dropdownLabel: '=?'\n },\n templateUrl: 'js/angular/core/directives/multiselect-dropdown/templates/multiselect-dropdown.html',\n link: function($scope, element, attrs, ngModel) {\n // =========================\n // Public variables\n // =========================\n $scope.isOpen = false;\n\n // =========================\n // Private methods\n // =========================\n // Close the dropdown if the user clicks outside it.\n const handleDocumentClick = (event) => {\n if (!element[0].contains(event.target)) {\n $scope.$apply(() => {\n $scope.isOpen = false;\n });\n }\n };\n\n const updateModel = () => {\n const selected = $scope.options.filter(function(option) {\n return option.selected;\n });\n ngModel.$setViewValue(selected);\n }\n\n // =========================\n // Public methods\n // =========================\n $scope.toggleDropdown = function () {\n $scope.isOpen = !$scope.isOpen;\n };\n\n /**\n * Toggle the selection state of an option.\n * @param {SelectOptionsModel} option\n */\n $scope.toggleSelection = function (option) {\n option.selected = !option.selected;\n updateModel();\n };\n\n /**\n * Build the display text for the dropdown toggle.\n * Iterates the options and joins the labels of selected options.\n * @returns {string}\n */\n $scope.getSelectedText = function () {\n const selectedOptions = $scope.options.filter((option) => option.selected);\n if (selectedOptions.length === 0) {\n return $scope.dropdownLabel || $translate.instant('common.select');\n }\n return selectedOptions.map((option) => option.label).join(', ');\n };\n\n /**\n * If ngModel provides an initial value, update the corresponding option selections.\n */\n ngModel.$render = function () {\n if (angular.isArray(ngModel.$viewValue)) {\n $scope.options.forEach(function(option) {\n option.selected = ngModel.$viewValue.some(function(selectedOption) {\n return selectedOption.value === option.value;\n });\n });\n }\n };\n\n // =========================\n // Subscriptions\n // =========================\n document.addEventListener('click', handleDocumentClick);\n $scope.$on('$destroy', () => {\n document.removeEventListener('click', handleDocumentClick);\n });\n }\n };\n }]);\n","import '../../core/services/graphql.service';\nimport {\n EndpointDefinitionFile,\n EndpointDefinitionFileList,\n ImportStatus\n} from \"../../models/graphql/endpoint-definition-file\";\nimport {\n fileToImportDefinitionsMapper, importEndpointDefinitionListMapper\n} from \"../services/file-to-import-definition.mapper\";\nimport {resolvePlaygroundUrlWithEndpoint} from \"../services/endpoint-utils\";\nimport {GraphqlEndpointInfo} from \"../../models/graphql/graphql-endpoints-info\";\n\nconst modules = [\n 'ngFileUpload',\n 'graphdb.framework.core.services.graphql-service'\n];\n\nangular\n .module('graphdb.framework.graphql.controllers.import-endpoint-definition-modal', modules)\n .controller('ImportEndpointDefinitionModalController', ImportEndpointDefinitionModalController);\n\nImportEndpointDefinitionModalController.$inject = ['$scope', '$q', 'toastr', '$uibModal', '$uibModalInstance', 'data', 'GraphqlService', 'GraphqlContextService'];\n\nfunction ImportEndpointDefinitionModalController($scope, $q, toastr, $uibModal, $uibModalInstance, data, GraphqlService, GraphqlContextService) {\n // =========================\n // Private variables\n // =========================\n\n const allowedFileTypes = ['.zip', '.yaml', '.yml'];\n\n // =========================\n // Public variables\n // =========================\n\n $scope.allowedFileTypesString = allowedFileTypes.join(',');\n\n /**\n * The import status enum.\n * @type {{PENDING: string, SUCCESS: string, FAIL: string, SKIP: string}}\n */\n $scope.ImportStatus = ImportStatus;\n\n /**\n * Current active repository ID.\n */\n $scope.repositoryId = data.repositoryId;\n\n /**\n * The list of files selected for import.\n * @type {EndpointDefinitionFileList}\n */\n $scope.definitionFiles = new EndpointDefinitionFileList();\n\n /**\n * The progress of the upload.\n * @type {number|undefined}\n */\n $scope.progress = undefined;\n\n /**\n * Flag indicating if the upload has finished. Used to show/hide the progress bar which in some cases might remain\n * because the progress event might come out of sync and a come after the success event. This clearly happens during\n * UI tests, but it might happen in real life as well.\n * @type {boolean}\n */\n $scope.uploadFinished = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Event handler triggered when files are selected in the file input.\n * @param {Array} $files The selected files.\n * @param {File} $file The selected file.\n * @param {Array} $newFiles The new files selected.\n * @param {Array} $duplicateFiles The duplicate files selected.\n * @param {Array} $invalidFiles The invalid files selected.\n */\n $scope.onFilesChange = ($files, $file, $newFiles, $duplicateFiles, $invalidFiles) => {\n let selectedFiles = $newFiles || [];\n\n // find out files with invalid extensions in the list\n const invalidFiles = selectedFiles.filter(file => {\n const extension = '.' + file.name.split('.').pop().toLowerCase();\n return !allowedFileTypes.includes(extension);\n });\n if (invalidFiles.length) {\n console.error(`The following files have invalid extensions: ${invalidFiles.map(file => file.name).join(', ')}`);\n }\n // filter out invalid files\n selectedFiles = selectedFiles.filter(file => {\n const extension = '.' + file.name.split('.').pop().toLowerCase();\n return allowedFileTypes.includes(extension);\n });\n // if no valid files are left, return\n if (!selectedFiles || !selectedFiles.length) {\n return;\n }\n // Reset error state when adding new files\n $scope.progress = undefined;\n // Filter out duplicates by comparing file names\n const existingFileNames = new Set($scope.definitionFiles.getFileNames());\n const filesToAdd = selectedFiles.filter(file => !existingFileNames.has(file.name));\n $scope.definitionFiles.appendFiles(fileToImportDefinitionsMapper(filesToAdd, ImportStatus.PENDING).list)\n };\n\n /**\n * Event handler triggered when the user clicks the upload button. The selected files are uploaded to the server\n * which then processes them and if definitions are valid, graphql endpoints are created for each definition.\n * The server response contains reports for each definition file.\n */\n $scope.onImport = () => {\n $scope.uploadFinished = false;\n const payload = buildUploadPayloadObject();\n GraphqlService.importEndpointDefinition($scope.repositoryId, payload)\n .progress((evt) => {\n if (!$scope.uploadFinished) {\n $scope.progress = Math.min(100, parseInt(100.0 * evt.loaded / evt.total));\n }\n })\n .success((response) => {\n $scope.progress = undefined;\n $scope.uploadFinished = true;\n $scope.definitionFiles = importEndpointDefinitionListMapper(response, $scope.repositoryId, $scope.definitionFiles);\n })\n .error((errors) => {\n $scope.progress = undefined;\n $scope.uploadFinished = true;\n toastr.error(getError(errors));\n });\n };\n\n /**\n * Triggered when the user clicks the remove file button. The file is removed from the list of selected files.\n * @param {EndpointDefinitionFile} definitionFile The file to be removed.\n */\n $scope.onRemoveFile = (definitionFile) => {\n $scope.definitionFiles.removeFile(definitionFile);\n if ($scope.definitionFiles.size === 0) {\n $scope.progress = undefined;\n }\n };\n\n /**\n * Event handler triggered when the user clicks on the generated endpoint link. Opens the GraphQL Playground with\n * the selected endpoint.\n * @param {string} endpointId The ID of the endpoint to explore.\n */\n $scope.onExploreEndpoint = (endpointId) => {\n const url = resolvePlaygroundUrlWithEndpoint(endpointId);\n GraphqlContextService.setSelectedEndpoint(new GraphqlEndpointInfo({\n endpointId\n }));\n window.open(url, '_blank', 'noopener,noreferrer');\n };\n\n /**\n * Event handler triggered when the user clicks the view report link. Opens the report modal with the given\n * definition file.\n * @param {EndpointGenerationReport} endpointGenerationReport The report to display.\n * @returns {Promise} The promise that resolves when the modal is closed.\n */\n $scope.onOpenReport = (event, endpointGenerationReport) => {\n event.preventDefault();\n return $uibModal.open({\n templateUrl: 'js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html',\n controller: 'EndpointGenerationResultFailureModalController',\n windowClass: 'endpoint-generation-failure-result-modal',\n size: 'lg',\n backdrop: 'static',\n keyboard: false,\n resolve: {\n data: () => {\n return {\n endpointReport: endpointGenerationReport\n };\n }\n }\n }).result;\n };\n\n /**\n * Closes the modal.\n */\n $scope.close = () => {\n $uibModalInstance.dismiss('cancel')\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Builds the payload object for the import request. FormData object is created and the files are appended to it.\n * @returns {FormData} The payload object.\n */\n const buildUploadPayloadObject = () => {\n let payload = new FormData();\n $scope.definitionFiles.processWith((definition) => {\n payload.append('importFiles', definition.file, definition.file.name);\n });\n return payload;\n }\n\n const init = () => {\n }\n\n // =========================\n // Initialization\n // =========================\n\n init();\n}\n","import 'angular/core/directives/dynamic-form/dynamic-form-field.directive';\nimport {FIELD_TYPE} from \"./field-type\";\n\n/**\n * @function dynamicFormDirective\n * @description\n * A directive for rendering a dynamic form based on an array of field objects.\n *\n * This directive creates a form where each object in the provided formModel defines the type of input to render\n * (for example, text input, checkbox, dropdown, multi-select, or textarea for JSON data). The directive uses the\n * {@link FIELD_TYPE} enum to determine which input type to display. For select and multi-select fields, the\n * {@link SelectMenuOptionsModel} should be used to model the options.\n *\n * Additionally, the directive supports an optional `onValidityChange` callback that will be called whenever the overall\n * validity of the form changes. This is useful for informing a parent component or controller about the current form validity.\n *\n * @example\n * ### HTML Usage:\n * ```html\n * <dynamic-form formModel=\"myFields\" on-validity-change=\"handleValidityChange(valid)\"></dynamic-form>\n * ```\n *\n * @param {Object[]} field - The array of field objects used to render the form fields.\n * @param {string} field[].label - The label displayed for the input.\n * @param {string} field[].type - The type of field input. Should be one of the values defined in {@link FIELD_TYPE}.\n * @param {*} field[].value - The current value of the field.\n * @param {SelectMenuOptionsModel[]} [field[].values] - The array of possible options for select and multi-select fields.\n * @param {(string|RegExp)} [field[].regex] - A regular expression or its string representation for validating the field value.\n * @param {boolean} [field[].required=false] - Indicates whether the field is required.\n *\n * @returns {Object} The directive definition object.\n */\nconst modules = ['graphdb.framework.core.directives.dynamic-form-field'];\nangular\n .module('graphdb.framework.core.directives.dynamic-form', modules)\n .directive('dynamicForm', dynamicFormDirective);\n\ndynamicFormDirective.$inject = [];\n\nfunction dynamicFormDirective() {\n return {\n restrict: 'E',\n scope: {\n /**\n * @type {DynamicFormModel}\n */\n formModel: '=',\n /**\n * Controls whether to show all fields or only the ones that are not hidden in the model.\n * @type {boolean}\n */\n showAllFields: '=?',\n onValidityChange: '&?',\n formCtrl: '=?',\n translationKeyPrefix: '@?'\n },\n templateUrl: 'js/angular/core/directives/dynamic-form/templates/dynamic-form.html',\n link: function($scope, element) {\n // =========================\n // Public variables\n // =========================\n $scope.FIELD_TYPE = FIELD_TYPE;\n $scope.formCtrl = undefined;\n $scope.showAllFields = $scope.showAllFields || false;\n\n // =========================\n // Private function\n // =========================\n const init = () => {\n const formElement = element.find('form');\n const formCtrl = formElement.controller('form');\n\n if (!formCtrl) {\n console.error('Form controller not found!');\n return;\n }\n\n $scope.formCtrl = formCtrl;\n const originalSetValidity = formCtrl.$setValidity;\n $scope.formCtrl.$setValidity = function (validationToken, isValid, modelCtrl) {\n originalSetValidity.call(formCtrl, validationToken, isValid, modelCtrl);\n if ($scope.onValidityChange) {\n $scope.onValidityChange({valid: formCtrl.$valid});\n }\n };\n };\n\n // =========================\n // Initialization\n // =========================\n init();\n }\n };\n}\n\n\n","/* FileSaver.js\n * A saveAs() FileSaver implementation.\n * 2015-05-07.2\n *\n * By Eli Grey, http://eligrey.com\n * License: X11/MIT\n * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n */\n\n/*global self */\n/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\n\n/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\n\nvar saveAs = saveAs || (function(view) {\n\t\"use strict\";\n\t// IE <10 is explicitly unsupported\n\tif (typeof navigator !== \"undefined\" && /MSIE [1-9]\\./.test(navigator.userAgent)) {\n\t\treturn;\n\t}\n\tvar\n\t\t doc = view.document\n\t\t // only get URL when necessary in case Blob.js hasn't overridden it yet\n\t\t, get_URL = function() {\n\t\t\treturn view.URL || view.webkitURL || view;\n\t\t}\n\t\t, save_link = doc.createElementNS(\"http://www.w3.org/1999/xhtml\", \"a\")\n\t\t, can_use_save_link = \"download\" in save_link\n\t\t, click = function(node) {\n\t\t\tvar event = new MouseEvent(\"click\");\n\t\t\tnode.dispatchEvent(event);\n\t\t}\n\t\t, webkit_req_fs = view.webkitRequestFileSystem\n\t\t, req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem\n\t\t, throw_outside = function(ex) {\n\t\t\t(view.setImmediate || view.setTimeout)(function() {\n\t\t\t\tthrow ex;\n\t\t\t}, 0);\n\t\t}\n\t\t, force_saveable_type = \"application/octet-stream\"\n\t\t, fs_min_size = 0\n\t\t// See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and\n\t\t// https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047\n\t\t// for the reasoning behind the timeout and revocation flow\n\t\t, arbitrary_revoke_timeout = 500 // in ms\n\t\t, revoke = function(file) {\n\t\t\tvar revoker = function() {\n\t\t\t\tif (typeof file === \"string\") { // file is an object URL\n\t\t\t\t\tget_URL().revokeObjectURL(file);\n\t\t\t\t} else { // file is a File\n\t\t\t\t\tfile.remove();\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (view.chrome) {\n\t\t\t\trevoker();\n\t\t\t} else {\n\t\t\t\tsetTimeout(revoker, arbitrary_revoke_timeout);\n\t\t\t}\n\t\t}\n\t\t, dispatch = function(filesaver, event_types, event) {\n\t\t\tevent_types = [].concat(event_types);\n\t\t\tvar i = event_types.length;\n\t\t\twhile (i--) {\n\t\t\t\tvar listener = filesaver[\"on\" + event_types[i]];\n\t\t\t\tif (typeof listener === \"function\") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlistener.call(filesaver, event || filesaver);\n\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\tthrow_outside(ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t, auto_bom = function(blob) {\n\t\t\t// prepend BOM for UTF-8 XML and text/* types (including HTML)\n\t\t\tif (/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n\t\t\t\treturn new Blob([\"\\ufeff\", blob], {type: blob.type});\n\t\t\t}\n\t\t\treturn blob;\n\t\t}\n\t\t, FileSaver = function(blob, name) {\n\t\t\tblob = auto_bom(blob);\n\t\t\t// First try a.download, then web filesystem, then object URLs\n\t\t\tvar\n\t\t\t\t filesaver = this\n\t\t\t\t, type = blob.type\n\t\t\t\t, blob_changed = false\n\t\t\t\t, object_url\n\t\t\t\t, target_view\n\t\t\t\t, dispatch_all = function() {\n\t\t\t\t\tdispatch(filesaver, \"writestart progress write writeend\".split(\" \"));\n\t\t\t\t}\n\t\t\t\t// on any filesys errors revert to saving with object URLs\n\t\t\t\t, fs_error = function() {\n\t\t\t\t\t// don't create more object URLs than needed\n\t\t\t\t\tif (blob_changed || !object_url) {\n\t\t\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\t\t}\n\t\t\t\t\tif (target_view) {\n\t\t\t\t\t\ttarget_view.location.href = object_url;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar new_tab = view.open(object_url, \"_blank\");\n\t\t\t\t\t\tif (new_tab == undefined && typeof safari !== \"undefined\") {\n\t\t\t\t\t\t\t//Apple do not allow window.open, see http://bit.ly/1kZffRI\n\t\t\t\t\t\t\tview.location.href = object_url\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t}\n\t\t\t\t, abortable = function(func) {\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\tif (filesaver.readyState !== filesaver.DONE) {\n\t\t\t\t\t\t\treturn func.apply(this, arguments);\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\t, create_if_not_found = {create: true, exclusive: false}\n\t\t\t\t, slice\n\t\t\t;\n\t\t\tfilesaver.readyState = filesaver.INIT;\n\t\t\tif (!name) {\n\t\t\t\tname = \"download\";\n\t\t\t}\n\t\t\tif (save_link) {\n\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\t//window.open('data:attachment/csv;charset=utf-8,' + object_url);\n\t\t\t\tsave_link.href = object_url;\n\t\t\t\tsave_link.download = name;\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\tclick(save_link);\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Object and web filesystem URLs have a problem saving in Google Chrome when\n\t\t\t// viewed in a tab, so I force save with application/octet-stream\n\t\t\t// http://code.google.com/p/chromium/issues/detail?id=91158\n\t\t\t// Update: Google errantly closed 91158, I submitted it again:\n\t\t\t// https://code.google.com/p/chromium/issues/detail?id=389642\n\t\t\tif (view.chrome && type && type !== force_saveable_type) {\n\t\t\t\tslice = blob.slice || blob.webkitSlice;\n\t\t\t\tblob = slice.call(blob, 0, blob.size, force_saveable_type);\n\t\t\t\tblob_changed = true;\n\t\t\t}\n\t\t\t// Since I can't be sure that the guessed media type will trigger a download\n\t\t\t// in WebKit, I append .download to the filename.\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=65440\n\t\t\tif (webkit_req_fs && name !== \"download\") {\n\t\t\t\tname += \".download\";\n\t\t\t}\n\t\t\tif (type === force_saveable_type || webkit_req_fs) {\n\t\t\t\ttarget_view = view;\n\t\t\t}\n\t\t\tif (!req_fs) {\n\t\t\t\tfs_error();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfs_min_size += blob.size;\n\t\t\treq_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) {\n\t\t\t\tfs.root.getDirectory(\"saved\", create_if_not_found, abortable(function(dir) {\n\t\t\t\t\tvar save = function() {\n\t\t\t\t\t\tdir.getFile(name, create_if_not_found, abortable(function(file) {\n\t\t\t\t\t\t\tfile.createWriter(abortable(function(writer) {\n\t\t\t\t\t\t\t\twriter.onwriteend = function(event) {\n\t\t\t\t\t\t\t\t\ttarget_view.location.href = file.toURL();\n\t\t\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\t\t\t\t\tdispatch(filesaver, \"writeend\", event);\n\t\t\t\t\t\t\t\t\trevoke(file);\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\twriter.onerror = function() {\n\t\t\t\t\t\t\t\t\tvar error = writer.error;\n\t\t\t\t\t\t\t\t\tif (error.code !== error.ABORT_ERR) {\n\t\t\t\t\t\t\t\t\t\tfs_error();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\"writestart progress write abort\".split(\" \").forEach(function(event) {\n\t\t\t\t\t\t\t\t\twriter[\"on\" + event] = filesaver[\"on\" + event];\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\twriter.write(blob);\n\t\t\t\t\t\t\t\tfilesaver.abort = function() {\n\t\t\t\t\t\t\t\t\twriter.abort();\n\t\t\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\tfilesaver.readyState = filesaver.WRITING;\n\t\t\t\t\t\t\t}), fs_error);\n\t\t\t\t\t\t}), fs_error);\n\t\t\t\t\t};\n\t\t\t\t\tdir.getFile(name, {create: false}, abortable(function(file) {\n\t\t\t\t\t\t// delete file if it already exists\n\t\t\t\t\t\tfile.remove();\n\t\t\t\t\t\tsave();\n\t\t\t\t\t}), abortable(function(ex) {\n\t\t\t\t\t\tif (ex.code === ex.NOT_FOUND_ERR) {\n\t\t\t\t\t\t\tsave();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfs_error();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t\t\t}), fs_error);\n\t\t\t}), fs_error);\n\t\t}\n\t\t, FS_proto = FileSaver.prototype\n\t\t, saveAs = function(blob, name) {\n\t\t\treturn new FileSaver(blob, name);\n\t\t}\n\t;\n\t// IE 10+ (native saveAs)\n\tif (typeof navigator !== \"undefined\" && navigator.msSaveOrOpenBlob) {\n\t\treturn function(blob, name) {\n\t\t\treturn navigator.msSaveOrOpenBlob(auto_bom(blob), name);\n\t\t};\n\t}\n\n\tFS_proto.abort = function() {\n\t\tvar filesaver = this;\n\t\tfilesaver.readyState = filesaver.DONE;\n\t\tdispatch(filesaver, \"abort\");\n\t};\n\tFS_proto.readyState = FS_proto.INIT = 0;\n\tFS_proto.WRITING = 1;\n\tFS_proto.DONE = 2;\n\n\tFS_proto.error =\n\tFS_proto.onwritestart =\n\tFS_proto.onprogress =\n\tFS_proto.onwrite =\n\tFS_proto.onabort =\n\tFS_proto.onerror =\n\tFS_proto.onwriteend =\n\t\tnull;\n\n\treturn saveAs;\n}(\n\t typeof self !== \"undefined\" && self\n\t|| typeof window !== \"undefined\" && window\n\t|| this.content\n));\n// `self` is undefined in Firefox for Android content script context\n// while `this` is nsIContentFrameMessageManager\n// with an attribute `content` that corresponds to the window\n\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports.saveAs = saveAs;\n} else if ((typeof define !== \"undefined\" && define !== null) && (define.amd != null)) {\n define([], function() {\n return saveAs;\n });\n}","import '../../core/services/graphql.service';\nimport 'angular/core/directives/dynamic-form/dynamic-form.directive';\nimport 'angular/core/directives/multiselect-dropdown/multiselect-dropdown.directive';\n\nconst modules = [\n 'graphdb.framework.core.services.graphql-service',\n 'graphdb.framework.core.directives.dynamic-form',\n 'graphdb.framework.core.directives.multiselect-dropdown'\n];\n\nangular\n .module('graphdb.framework.graphql.controllers.graphql-endpoint-configuration-modal', modules)\n .controller('GraphqlEndpointConfigurationModalController', GraphqlEndpointConfigurationModalController);\n\nGraphqlEndpointConfigurationModalController.$inject = ['$scope', '$uibModalInstance', 'data', '$translate', 'toastr', 'GraphqlService'];\n\nfunction GraphqlEndpointConfigurationModalController($scope, $uibModalInstance, data, $translate, toastr, GraphqlService) {\n // =========================\n // Private variables\n // =========================\n\n // =========================\n // Public variables\n // =========================\n\n /**\n * The active repository id.\n * @type {string}\n */\n $scope.repositoryId = data.repositoryId;\n\n /**\n * The selected endpoint configuration for which the settings should be updated.\n * @type {GraphqlEndpointInfo|undefined|*}\n */\n $scope.endpointConfiguration = data.endpointConfiguration;\n\n /**\n * The endpoint configuration settings model.\n * @type {GraphqlEndpointConfigurationSettings|undefined}\n */\n $scope.endpointConfigurationSettings = undefined;\n\n /**\n * Flag indicating if the endpoint configuration settings are valid.\n * @type {boolean}\n */\n $scope.endpointConfigurationSettingsValid = false;\n\n /**\n * Flag indicating if the endpoint configuration settings are being loaded.\n * @type {boolean}\n */\n $scope.loadingEndpointConfigurationSettings = false;\n\n /**\n * Flag indicating if the endpoint configuration settings are being saved.\n * @type {boolean}\n */\n $scope.savingEndpointSettings = false;\n\n /**\n * Flag indicating if the advanced settings are visible.\n * @type {boolean}\n */\n $scope.showAdvancedSettings = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Handles the save button click event in the dialog.\n */\n $scope.ok = () => {\n save();\n };\n\n /**\n * Cancels the operation and dismisses the modal.\n */\n $scope.cancel = () => {\n $uibModalInstance.dismiss('cancel')\n };\n\n /**\n * Handles the validity change of the endpoint configuration settings form\n * @param {boolean} isValid - The validity of the form.\n */\n $scope.handleValidityChange = (isValid) => {\n $scope.endpointConfigurationSettingsValid = isValid;\n };\n\n /**\n * Toggles the visibility of the advanced settings. Advanced settings are hidden by default.\n */\n $scope.toggleAdvancedSettings = () => {\n $scope.showAdvancedSettings = !$scope.showAdvancedSettings;\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Loads the endpoint configuration settings from the server.\n */\n const loadEndpointConfigurationSettings = () => {\n $scope.loadingEndpointConfigurationSettings = true;\n GraphqlService.getGraphqlEndpointConfigurationSettings($scope.repositoryId, $scope.endpointConfiguration.endpointId)\n .then((endpointConfigurationSettings) => {\n $scope.endpointConfigurationSettings = endpointConfigurationSettings;\n })\n .catch((error) => {\n toastr.error(getError(error));\n })\n .finally(() => {\n $scope.loadingEndpointConfigurationSettings = false;\n });\n }\n\n /**\n * Saves the endpoint configuration settings to the server.\n */\n const save = () => {\n $scope.savingEndpointSettings = true;\n const updateEndpointRequest = $scope.endpointConfiguration.toUpdateEndpointRequest($scope.endpointConfigurationSettings);\n GraphqlService.editEndpointConfiguration($scope.repositoryId, $scope.endpointConfiguration.endpointId, updateEndpointRequest.getUpdateEndpointSettingsRequest())\n .then(() => {\n $uibModalInstance.close();\n toastr.success($translate.instant('graphql.endpoints_management.endpoint_configuration_modal.messages.success_saving_configuration'));\n })\n .catch((error) => {\n toastr.error(getError(error), $translate.instant('graphql.endpoints_management.endpoint_configuration_modal.messages.error_saving_configuration'));\n })\n .finally(() => {\n $scope.savingEndpointSettings = false;\n });\n }\n\n const init = () => {\n loadEndpointConfigurationSettings();\n }\n\n // =========================\n // Initialization\n // =========================\n\n init();\n}\n","import '../../core/services/graphql.service';\nimport '../services/graphql-context.service';\nimport './graphql-endpoint-configuration-modal.controller';\nimport './import-endpoint-definition-modal.controller';\nimport {GraphqlEventName} from \"../services/graphql-context.service\";\nimport {endpointUrl} from \"../models/endpoints\";\nimport {resolvePlaygroundUrlWithEndpoint} from \"../services/endpoint-utils\";\nimport {saveAs} from 'lib/FileSaver-patch';\nimport {GraphqlEndpointInfo} from \"../../models/graphql/graphql-endpoints-info\";\n\nconst modules = [\n 'graphdb.framework.core.services.graphql-service',\n 'graphdb.framework.graphql.services.graphql-context',\n 'graphdb.framework.graphql.controllers.graphql-endpoint-configuration-modal',\n 'graphdb.framework.graphql.controllers.import-endpoint-definition-modal'\n];\n\nangular\n .module('graphdb.framework.graphql.controllers.graphql-endpoint-management-view', modules)\n .controller('GraphqlEndpointManagementViewCtrl', GraphqlEndpointManagementViewCtrl);\n\nGraphqlEndpointManagementViewCtrl.$inject = ['$scope', '$location', '$interval', '$repositories', '$uibModal', 'ModalService', 'toastr', '$translate', 'GraphqlService', 'GraphqlContextService', 'AuthTokenService'];\n\nfunction GraphqlEndpointManagementViewCtrl($scope, $location, $interval, $repositories, $uibModal, ModalService, toastr, $translate, GraphqlService, GraphqlContextService, AuthTokenService) {\n\n // =========================\n // Private variables\n // =========================\n\n const subscriptions = [];\n\n /**\n * The interval for polling the endpoints info.\n * @type {number}\n */\n const ENDPOINTS_INFO_POLLING_INTERVAL = 5000;\n\n // =========================\n // Public variables\n // =========================\n\n /**\n * Flag indicating if there are any GraphQL endpoints.\n * @type {boolean}\n */\n $scope.hasEndpoints = false;\n\n /**\n * The currently expanded row index.\n * @type {number}\n */\n $scope.expandedRow = -1;\n\n /**\n * Flag indicating if endpoints info loading is in progress.\n * @type {boolean}\n */\n $scope.loadingEndpointsInfo = false;\n\n /**\n * The list of GraphQL endpoints info.\n * @type {GraphqlEndpointsInfoList|undefined}\n */\n $scope.endpointsInfoList = undefined;\n\n /**\n * The term to filter the endpoints by.\n * @type {string}\n */\n $scope.filterTerm = '';\n\n /**\n * The selected default endpoint. There can be only one default endpoint.\n * @type {GraphqlEndpointInfo|undefined}\n */\n $scope.selectedDefaultEndpoint = undefined;\n\n /**\n * Flag showing if an operation is in progress.\n * @type {boolean}\n */\n $scope.operationInProgress = false;\n\n /**\n * The timer for polling the endpoints info.\n * @type {Promise|undefined}\n */\n let endpointsInfoPollingTimer = undefined;\n\n /**\n * The Promise for loading the endpoints info.\n * @type {Promise|undefined}\n */\n let endpointsInfoLoader = undefined;\n\n /**\n * A flag indicating if the endpoint active state is being changed.\n * @type {boolean}\n */\n $scope.changingEndpointActiveState = false;\n\n // =========================\n // Public methods\n // =========================\n\n /**\n * Sets the given endpoint as the default one for the active repository.\n * @param {GraphqlEndpointInfo} endpointInfo The endpoint to set as default.\n */\n $scope.setEndpointAsDefault = (endpointInfo) => {\n let previousDefaultEndpoint;\n if ($scope.selectedDefaultEndpoint) {\n previousDefaultEndpoint = $scope.selectedDefaultEndpoint;\n $scope.selectedDefaultEndpoint.default = false;\n }\n $scope.selectedDefaultEndpoint = endpointInfo;\n endpointInfo.default = true;\n $scope.operationInProgress = true;\n const updateEndpointRequest = endpointInfo.toUpdateEndpointRequest($scope.endpointConfigurationSettings);\n GraphqlService.editEndpointConfiguration($repositories.getActiveRepository(), endpointInfo.endpointId, updateEndpointRequest.getUpdateDefaultEndpointRequest())\n .then((endpointInfo) => {\n toastr.success(\n $translate.instant('graphql.endpoints_management.table.actions.set_as_default.success',\n {endpointId: endpointInfo.endpointId})\n );\n $scope.endpointsInfoList.updateEndpoint(endpointInfo);\n })\n .catch((error) => {\n // something went wrong while setting the default endpoint so we need to revert the changes\n endpointInfo.default = true;\n if (previousDefaultEndpoint) {\n $scope.selectedDefaultEndpoint.default = false;\n $scope.selectedDefaultEndpoint = previousDefaultEndpoint;\n $scope.selectedDefaultEndpoint.default = true;\n } else {\n $scope.selectedDefaultEndpoint = undefined;\n }\n toastr.error(getError(error));\n console.error('Error setting default endpoint', error);\n })\n .finally(() => {\n $scope.operationInProgress = false;\n });\n };\n\n /**\n * Toggles the expanded state of the row.\n * @param {MouseEvent} event The click event.\n * @param {number} index The index of the row.\n */\n $scope.toggleRow = (event, index) => {\n event.preventDefault();\n if ($scope.expandedRow === index) {\n $scope.expandedRow = -1;\n } else {\n $scope.expandedRow = index;\n }\n };\n\n /**\n * Opens the GraphQL endpoint for exploration in the playground.\n * @param {GraphqlEndpointInfo} endpointInfo The endpoint to explore.\n */\n $scope.onExploreEndpoint = (endpointInfo) => {\n const url = resolvePlaygroundUrlWithEndpoint(endpointInfo.endpointId);\n $location.url(url);\n };\n\n /**\n * Filters the endpoints by the given term.\n * @param {string} filterTerm The term to filter by.\n */\n $scope.onEndpointsFilter = (filterTerm) => {\n $scope.filterTerm = filterTerm.toLowerCase();\n $scope.endpointsInfoList.filter(filterTerm);\n };\n\n /**\n * Starts a new GraphQL endpoint creation process by emitting the create endpoint event.\n */\n $scope.startCreateEndpointWizard = () => {\n GraphqlContextService.startCreateEndpointWizard();\n };\n\n /**\n * Toggles the active state of the given endpoint.\n * @param {GraphqlEndpointInfo} endpointInfo The endpoint to toggle the active state for.\n */\n $scope.toggleEndpointActiveState = (endpointInfo) => {\n $scope.changingEndpointActiveState = true;\n const newActiveState = !endpointInfo.active;\n const updateEndpointRequest = endpointInfo.toUpdateEndpointRequest($scope.endpointConfigurationSettings);\n GraphqlService.editEndpointConfiguration($repositories.getActiveRepository(), endpointInfo.endpointId, updateEndpointRequest.getUpdateEndpointActiveStateRequest())\n .then((updatedEndpoint) => {\n const operationKey = newActiveState ? 'activated' : 'deactivated';\n toastr.success(\n $translate.instant(\n `graphql.endpoints_management.table.actions.toggle_active_state.${operationKey}.success`,\n {endpointId: updatedEndpoint.endpointId}\n )\n );\n // Update the endpoint in place in the list. This will trigger the UI update and the user can see the\n // change immediately, e.g. the updatedAt field will be updated.\n $scope.endpointsInfoList.updateEndpoint(updatedEndpoint);\n })\n .catch((error) => {\n // something went wrong, revert the active state\n endpointInfo.active = !newActiveState;\n toastr.error(getError(error));\n console.error('Error updating endpoint active state', error);\n })\n .finally(() => {\n $scope.changingEndpointActiveState = false;\n });\n }\n\n /**\n * Opens the import endpoint definition modal from where the user can import endpoint definitions.\n * @returns {*} The modal instance.\n */\n $scope.importSchema = () => {\n return $uibModal.open({\n templateUrl: 'js/angular/graphql/templates/modal/import-endpoint-definition-modal.html',\n controller: 'ImportEndpointDefinitionModalController',\n windowClass: 'import-endpoint-definition-modal',\n size: 'lg',\n backdrop: 'static',\n keyboard: false,\n resolve: {\n data: () => {\n return {\n repositoryId: $repositories.getActiveRepository()\n };\n }\n }\n }).result;\n };\n\n /**\n * Exports the GraphQL schema for the given endpoint.\n * @param {GraphqlEndpointInfo} endpointInfo The endpoint to export the schema for.\n */\n $scope.onExportSchema = (endpointInfo) => {\n GraphqlService.exportEndpointDefinition($repositories.getActiveRepository(), endpointInfo.endpointId)\n .then(({data, filename}) => {\n saveAs(data, filename);\n })\n .catch((error) => {\n toastr.error(getError(error));\n console.error('Error exporting GraphQL endpoint definition', error);\n });\n };\n\n /**\n * Handles the configure endpoint event triggered by the endpoint configuration action.\n * @param {GraphqlEndpointInfo} endpointConfiguration The endpoint configuration model.\n * @returns {*} The modal instance.\n */\n $scope.onConfigureEndpoint = (endpointConfiguration) => {\n return $uibModal.open({\n templateUrl: 'js/angular/graphql/templates/modal/endpoint-configuration-modal.html',\n controller: 'GraphqlEndpointConfigurationModalController',\n windowClass: 'graphql-endpoint-configuration-modal',\n size: 'lg',\n backdrop: 'static',\n keyboard: false,\n resolve: {\n data: () => {\n return {\n repositoryId: $repositories.getActiveRepository(),\n endpointConfiguration: endpointConfiguration\n };\n }\n }\n }).result;\n };\n\n /**\n * Handles the delete endpoint event.\n * @param {GraphqlEndpointInfo} endpoint The endpoint to delete.\n */\n $scope.onDeleteEndpoint = (endpoint) => {\n ModalService.openConfirmationModal({\n title: $translate.instant('graphql.endpoints_management.table.actions.delete_endpoint.confirmation.title'),\n message: $translate.instant('graphql.endpoints_management.table.actions.delete_endpoint.confirmation.body', {name: endpoint.endpointId}),\n confirmButtonKey: 'common.confirm'\n },\n () => {\n deleteEndpoint(endpoint);\n });\n };\n\n /**\n * Handles the show endpoint report event triggered by the endpoint report action.\n * @param {GraphqlEndpointInfo} endpointInfo The endpoint info model.\n * @returns {*}\n */\n $scope.onShowEndpointReport = (endpointInfo) => {\n GraphqlService.getEndpointConfigurationReport($repositories.getActiveRepository(), endpointInfo.endpointId)\n .then((endpointConfiguration) => {\n showReportModal(endpointConfiguration.getReport(endpointInfo.endpointId));\n })\n .catch((error) => {\n toastr.error(getError(error));\n console.error('Error loading GraphQL endpoint configuration', error);\n });\n }\n\n // =========================\n // Private methods\n // =========================\n\n /**\n * Handles the change of the active repository.\n * @param {object} repositoryObject\n */\n const getActiveRepositoryObjectHandler = (repositoryObject) => {\n if (repositoryObject) {\n onInit();\n }\n };\n\n /**\n * Shows the endpoint generation failure report.\n * @param {EndpointGenerationReport} endpointGenerationReport The endpoint configuration model.\n * @returns {*}\n */\n const showReportModal = (endpointGenerationReport) => {\n return $uibModal.open({\n templateUrl: 'js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html',\n controller: 'EndpointGenerationResultFailureModalController',\n windowClass: 'endpoint-generation-failure-result-modal',\n size: 'lg',\n backdrop: 'static',\n keyboard: false,\n resolve: {\n data: () => {\n return {\n endpointReport: endpointGenerationReport\n };\n }\n }\n }).result;\n }\n\n /**\n * Deletes the given GraphQL endpoint.\n * @param {GraphqlEndpointInfo} endpoint The endpoint to delete.\n */\n const deleteEndpoint = (endpoint) => {\n $scope.operationInProgress = true;\n GraphqlService.deleteEndpoint($repositories.getActiveRepository(), endpoint.endpointId)\n .then(() => {\n toastr.success(\n $translate.instant('graphql.endpoints_management.table.actions.delete_endpoint.success',\n {name: endpoint.endpointId}));\n $scope.operationInProgress = false;\n return loadEndpointsInfo(false);\n })\n .catch((error) => {\n toastr.error(getError(error));\n console.error('Error deleting GraphQL endpoint', error);\n })\n .finally(() => {\n $scope.operationInProgress = false;\n });\n }\n\n /**\n * Handles the event for deleting endpoint generation report.\n * @param {EndpointGenerationReport} endpointReport The endpoint generation report.\n */\n const onDeleteEndpointReport = (endpointReport) => {\n GraphqlService.deleteEndpointGenerationReport($repositories.getActiveRepository(), endpointReport.endpointId)\n .then(() => {\n toastr.success($translate.instant('graphql.endpoints_management.generation_failure_report_modal.actions.delete_report.success'));\n return loadEndpointsInfo(false);\n })\n .catch((error) => {\n toastr.error(getError(error));\n console.error('Error deleting endpoint generation report', error);\n });\n };\n\n /**\n * Handles the loaded GraphQL endpoints info.\n * @param {GraphqlEndpointsInfoList} endpointsInfoList\n */\n const onEndpointsInfoLoaded = (endpointsInfoList) => {\n $scope.endpointsInfoList = endpointsInfoList;\n $scope.endpointsInfoList.filter($scope.filterTerm);\n if ($scope.endpointsInfoList && $scope.endpointsInfoList.endpoints.length > 0) {\n $scope.hasEndpoints = true;\n // Find out the default endpoint. If there is no default endpoint in the list, then create a new one dummy\n // one to be used for binding the UI.\n $scope.selectedDefaultEndpoint = $scope.endpointsInfoList.findDefaultEndpoint() || new GraphqlEndpointInfo();\n }\n }\n\n /**\n * Loads the GraphQL endpoints info.\n * @param {boolean} showLoader If the global loader should be displayed.\n * @returns {Promise<void>}\n */\n const loadEndpointsInfo = (showLoader) => {\n $scope.loadingEndpointsInfo = showLoader === true;\n return GraphqlService.getEndpointsInfo($repositories.getActiveRepository())\n .then(onEndpointsInfoLoaded)\n .catch((error) => {\n toastr.error(getError(error));\n console.error('Error loading GraphQL endpoints info', error);\n })\n .finally(() => {\n $scope.loadingEndpointsInfo = false;\n });\n };\n\n /**\n * Handles the start create endpoint wizard event.\n */\n const onStartCreateEndpointWizard = () => {\n $location.path(endpointUrl.CREATE_ENDPOINT);\n };\n\n /**\n * Loads the GraphQL endpoints info periodically called by the polling timer.\n * @returns {Promise<void>}\n */\n const reloadEndpointsInfo = () => {\n return GraphqlService.getEndpointsInfo($repositories.getActiveRepository())\n .then(onEndpointsInfoLoaded)\n .catch((error) => {\n toastr.error(getError(error));\n console.error('Error loading GraphQL endpoints info', error);\n })\n .finally(() => {\n if (endpointsInfoLoader) {\n endpointsInfoLoader = undefined;\n }\n });\n }\n\n /**\n * Polls the GraphQL endpoints info.\n */\n const pollEndpointsInfo = () => {\n // Cancel any existing timer first to prevent duplicates\n if (endpointsInfoPollingTimer) {\n $interval.cancel(endpointsInfoPollingTimer);\n endpointsInfoPollingTimer = undefined;\n }\n\n endpointsInfoPollingTimer = $interval(() => {\n // Only start a new request if we're not already loading and if the controller is still active\n if (!endpointsInfoLoader && !$scope.$$destroyed) {\n endpointsInfoLoader = reloadEndpointsInfo();\n }\n }, ENDPOINTS_INFO_POLLING_INTERVAL);\n }\n\n /**\n * Unsubscribes all watchers.\n */\n const unsubscribeAll = () => {\n endpointsInfoPollingTimer && $interval.cancel(endpointsInfoPollingTimer);\n endpointsInfoPollingTimer = undefined;\n endpointsInfoLoader = undefined;\n subscriptions.forEach((subscription) => subscription());\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.START_CREATE_ENDPOINT_WIZARD, onStartCreateEndpointWizard));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.DELETE_ENDPOINT_REPORT, onDeleteEndpointReport));\n subscriptions.push($scope.$watch($scope.getActiveRepositoryObject, getActiveRepositoryObjectHandler));\n $scope.$on('$destroy', unsubscribeAll);\n\n // =========================\n // Initialization\n // =========================\n\n const onInit = () => {\n loadEndpointsInfo(true)\n .then(() => {\n pollEndpointsInfo();\n });\n };\n}\n"],"names":["dynamicFormFieldDirective","$compile","restrict","scope","field","form","translationKeyPrefix","templateUrl","link","$scope","FIELD_TYPE","angular","module","directive","$inject","ImportStatus","PENDING","SUCCESS","FAIL","SKIP","ImportStatusLabelKeys","ImportStatusToViewMapping","EndpointDefinitionFileList","_list","_size","constructor","definitionFiles","this","length","processWith","predicate","list","forEach","findDefinitionFileByName","name","find","definitionFile","file","getFileNames","map","appendFiles","push","removeFile","definitionFileToRemove","filter","size","EndpointDefinitionFile","_file","_filename","_status","_viewStatus","_statusMessage","_endpointId","_report","status","statusMessage","filename","viewStatus","endpointId","report","fileToImportDefinitionsMapper","files","importStatus","fileToImportDefinitionMapper","importEndpointDefinitionListMapper","data","repositoryId","processEntry","response","id","toUpperCase","importEndpointDefinitionReportMapper","subFiles","subFileDefinitions","$translate","require","options","dropdownLabel","element","attrs","ngModel","isOpen","handleDocumentClick","event","contains","target","$apply","toggleDropdown","toggleSelection","option","selected","updateModel","$setViewValue","getSelectedText","selectedOptions","instant","label","join","$render","isArray","$viewValue","some","selectedOption","value","document","addEventListener","$on","removeEventListener","ImportEndpointDefinitionModalController","$q","toastr","$uibModal","$uibModalInstance","GraphqlService","GraphqlContextService","allowedFileTypes","allowedFileTypesString","progress","undefined","uploadFinished","onFilesChange","$files","$file","$newFiles","$duplicateFiles","$invalidFiles","selectedFiles","invalidFiles","extension","split","pop","toLowerCase","includes","console","error","existingFileNames","Set","filesToAdd","has","onImport","payload","buildUploadPayloadObject","importEndpointDefinition","evt","Math","min","parseInt","loaded","total","success","errors","getError","onRemoveFile","onExploreEndpoint","url","resolvePlaygroundUrlWithEndpoint","setSelectedEndpoint","GraphqlEndpointInfo","window","open","onOpenReport","endpointGenerationReport","preventDefault","controller","windowClass","backdrop","keyboard","resolve","endpointReport","result","close","dismiss","FormData","definition","append","dynamicFormDirective","formModel","showAllFields","onValidityChange","formCtrl","init","originalSetValidity","$setValidity","validationToken","isValid","modelCtrl","call","valid","$valid","saveAs","view","navigator","test","userAgent","doc","get_URL","URL","webkitURL","save_link","createElementNS","webkit_req_fs","webkitRequestFileSystem","req_fs","requestFileSystem","mozRequestFileSystem","throw_outside","ex","setImmediate","setTimeout","force_saveable_type","fs_min_size","revoke","revoker","revokeObjectURL","remove","chrome","dispatch","filesaver","event_types","i","concat","listener","auto_bom","blob","type","Blob","FileSaver","object_url","target_view","slice","blob_changed","dispatch_all","fs_error","createObjectURL","location","href","safari","readyState","DONE","abortable","func","apply","arguments","create_if_not_found","create","exclusive","INIT","download","node","MouseEvent","dispatchEvent","webkitSlice","TEMPORARY","fs","root","getDirectory","dir","save","getFile","createWriter","writer","onwriteend","toURL","onerror","code","ABORT_ERR","write","abort","WRITING","NOT_FOUND_ERR","FS_proto","prototype","msSaveOrOpenBlob","onwritestart","onprogress","onwrite","onabort","self","content","exports","define","GraphqlEndpointConfigurationModalController","endpointConfiguration","endpointConfigurationSettings","endpointConfigurationSettingsValid","loadingEndpointConfigurationSettings","savingEndpointSettings","showAdvancedSettings","ok","cancel","handleValidityChange","toggleAdvancedSettings","updateEndpointRequest","toUpdateEndpointRequest","editEndpointConfiguration","getUpdateEndpointSettingsRequest","then","catch","finally","getGraphqlEndpointConfigurationSettings","GraphqlEndpointManagementViewCtrl","$location","$interval","$repositories","ModalService","AuthTokenService","subscriptions","endpointsInfoPollingTimer","endpointsInfoLoader","hasEndpoints","expandedRow","loadingEndpointsInfo","endpointsInfoList","filterTerm","selectedDefaultEndpoint","operationInProgress","changingEndpointActiveState","setEndpointAsDefault","endpointInfo","previousDefaultEndpoint","default","getActiveRepository","getUpdateDefaultEndpointRequest","updateEndpoint","toggleRow","index","onEndpointsFilter","startCreateEndpointWizard","toggleEndpointActiveState","newActiveState","active","getUpdateEndpointActiveStateRequest","updatedEndpoint","operationKey","importSchema","onExportSchema","exportEndpointDefinition","onConfigureEndpoint","onDeleteEndpoint","endpoint","openConfirmationModal","title","message","confirmButtonKey","deleteEndpoint","onShowEndpointReport","getEndpointConfigurationReport","showReportModal","getReport","loadEndpointsInfo","onEndpointsInfoLoaded","endpoints","findDefaultEndpoint","showLoader","getEndpointsInfo","subscribe","GraphqlEventName","START_CREATE_ENDPOINT_WIZARD","onStartCreateEndpointWizard","path","endpointUrl","CREATE_ENDPOINT","DELETE_ENDPOINT_REPORT","deleteEndpointGenerationReport","$watch","getActiveRepositoryObject","repositoryObject","onInit","unsubscribeAll","subscription","$$destroyed"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=99379;export const __webpack_ids__=[3632,85281,99379];export const __webpack_modules__={3632:(e,t,o)=>{o.r(t);var n=o(98980);function r(){return{restrict:"E",scope:{options:"=",selected:"=",labels:"="},templateUrl:"js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html",link:function(e){const t=[];e.searchLeft="",e.availableOptions=[],e.selectedOptions=[],e.selectOption=t=>{e.selectedOptions.push(t),e.availableOptions=e.availableOptions.filter(e=>e!==t),o()},e.selectAll=()=>{e.selectedOptions=e.selectedOptions.concat(e.availableOptions),e.availableOptions=[],o()},e.deselectOption=t=>{e.availableOptions.push(t),e.selectedOptions=e.selectedOptions.filter(e=>e!==t),o()},e.deselectAll=()=>{e.availableOptions=e.availableOptions.concat(e.selectedOptions),e.selectedOptions=[],o()};const o=()=>{e.selected=[...e.selectedOptions]};e.$on("$destroy",()=>{t.forEach(e=>e())}),e.selectedOptions=(0,n.cloneDeep)(e.selected),e.selectedOptions.length?e.availableOptions=e.options.filter(t=>!e.selectedOptions.find(e=>e.id===t.id)):e.availableOptions=(0,n.cloneDeep)(e.options)}}}angular.module("graphdb.framework.core.directives.shuttle-multiselect",[]).directive("shuttleMultiselect",r),r.$inject=[]},28050:(e,t,o)=>{o.r(t);var n=o(32534),r=(o(69724),o(77512));function i(e,t,o,i,a,l){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-generate-endpoint.html",scope:{stepDefinition:"="},link:t=>{t.endpointConfiguration=void 0,t.endpointsCountToGenerate=0,t.endpointsOverview=void 0,t.activeRepository=i.getActiveRepository(),t.generateFromGraphqlSchemaShapes=!1,t.generatingEndpoint=!1,t.generationReport=void 0,t.endpointUrl=r.endpointUrl,t.back=()=>{l.previousEndpointCreationStep()},t.cancel=()=>{const t=o.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),n=o.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");e.openConfirmation(t,n,()=>{l.cancelEndpointCreation()})},t.generateEndpoint=()=>{t.generatingEndpoint=!0,t.generationReport=void 0,l.generateEndpoint()},t.finishGenerationWorkflow=()=>{l.finishGenerationWorkflow()},t.showEndpointReport=e=>{l.openEndpointGenerationReport(e)},t.exploreInPlayground=e=>{l.exploreEndpointInPlayground(e)};const s=[];s.push(l.subscribe(n.GraphqlEventName.ENDPOINT_GENERATED,e=>{t.generatingEndpoint=!1,t.generationReport=e})),t.$on("$destroy",()=>{s.forEach(e=>e())}),t.endpointConfiguration=l.getNewEndpoint(),t.generateFromGraphqlSchemaShapes=t.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),t.endpointsCountToGenerate=a.getEndpointsCountToGenerate(t.endpointConfiguration),t.endpointsOverview=a.getGenerateEndpointsOverview(t.endpointConfiguration)}}}angular.module("graphdb.framework.graphql.directives.generate-endpoint",["graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal"]).directive("generateEndpoint",i),i.$inject=["ModalService","$uibModal","$translate","$repositories","GraphqlService","GraphqlContextService"]},32606:(e,t,o)=>{o.r(t),o(3632);var n=o(82854),r=o(32534),i=o(21388);function a(e,t,o,a,l,s,p,c){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-select-schema-sources.html",scope:{stepDefinition:"="},link:(l,d)=>{const h=[];l.schemaSourceType=i.SchemaSourceType,l.ontologyShaclShapeSource=i.OntologyShaclShapeSource,l.shapesMultiselectLabels={availableOptionsTitle:"graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.title",availableOptionsFilter:"graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.filter_placeholder",selectedOptionsTitle:"graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.title",selectedOptionsCount:"graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.count",selectTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add.tooltip",selectAllLabel:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.label",selectAllTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.tooltip",deselectTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove.tooltip",deselectAllLabel:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.label",deselectAllTooltip:"graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.tooltip"},l.graphsMultiselectLabels={availableOptionsTitle:"graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.title",availableOptionsFilter:"graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.filter_placeholder",selectedOptionsTitle:"graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.title",selectedOptionsCount:"graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.count",selectTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add.tooltip",selectAllLabel:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.label",selectAllTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.tooltip",deselectTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove.tooltip",deselectAllLabel:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.label",deselectAllTooltip:"graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.tooltip"},l.endpointConfiguration=void 0,l.prefixList=[],l.loadingPrefixes=!1,l.graphs=void 0,l.shaclShapeGraphs=void 0,l.graphqlSchemaShapes=void 0,l.allGraphs=void 0,l.loadingGraphs=!1,l.cancel=()=>{const e=o.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),n=o.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");t.openConfirmation(e,n,()=>{s.cancelEndpointCreation()})},l.next=()=>{s.nextEndpointCreationStep()},l.onSchemaSourceTypeChange=()=>{l.endpointConfiguration.schemaSourceType=l.stepDefinition.schemaSourceType,l.endpointConfiguration.generateFromShaclShapes()&&(l.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_ALL_GRAPHS?l.endpointConfiguration.selectedGraphs=l.allGraphs:l.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH?l.endpointConfiguration.selectedGraphs=l.shaclShapeGraphs:l.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.PICK_GRAPHS&&(l.endpointConfiguration.selectedGraphs=new n.GraphListOptions))},l.onOntologyShaclShapeSourceChange=()=>{l.endpointConfiguration.owlOrShaclSourceType=l.stepDefinition.ontotlogyShaclShapeSource,l.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_ALL_GRAPHS?l.endpointConfiguration.selectedGraphs=l.allGraphs:l.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH?l.endpointConfiguration.selectedGraphs=l.shaclShapeGraphs:l.stepDefinition.ontotlogyShaclShapeSource===i.OntologyShaclShapeSource.PICK_GRAPHS&&(l.endpointConfiguration.selectedGraphs=new n.GraphListOptions)},l.canProceed=()=>{let e=!1;if(l.endpointConfiguration){const t=l.endpointConfiguration.hasSelectedGraphqlSchemaShapes(),o=l.endpointParamsForm.$valid;l.stepDefinition.schemaSourceType===i.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES&&t?e=!0:l.stepDefinition.schemaSourceType===i.SchemaSourceType.SHACL_SHAPES&&o&&(e=l.endpointConfiguration.owlOrShaclSourceType===i.OntologyShaclShapeSource.USE_ALL_GRAPHS||l.endpointConfiguration.hasSelectedGraphs())}return e};const g=t=>{l.loadingData=!0,e.all([(l.loadingPrefixes=!0,p.getPrefixListAsSelectOptions(s.getSourceRepository()).catch(e=>{console.error("Error loading prefixes",e),a.error(getError(e))}).finally(()=>{l.loadingPrefixes=!1})),(l.loadingGraphs=!0,c.getGraphs(s.getSourceRepository()).catch(e=>{console.error("Error loading graphs",e),a.error(getError(e))}).finally(()=>{l.loadingGraphs=!1})),p.getGraphqlSchemaShapes(s.getSourceRepository()).catch(e=>{console.error("Error loading GraphQL schema shapes",e),a.error(getError(e))}),p.getShaclShapeGraphs(s.getSourceRepository()).catch(e=>{console.error("Error loading SHACL shape graphs",e),a.error(getError(e))})]).then(([e,o,r,i])=>{l.graphqlSchemaShapes=r,l.graphs=o,l.shaclShapeGraphs=i,l.allGraphs=new n.GraphListOptions([...o.graphList,...i.graphList]),l.prefixList=e,l.endpointConfiguration=t}).finally(()=>{l.loadingData=!1})},u=()=>{g(s.getNewEndpoint())},S=()=>{h.forEach(e=>e())};(()=>{l.$on("$destroy",S),h.push(s.subscribe(r.GraphqlEventName.SOURCE_REPOSITORY_UPDATED,u));const e=s.getNewEndpoint();e?g(e):h.push(s.onEndpointConfigCreated(g))})()}}}angular.module("graphdb.framework.graphql.directives.select-schema-sources",["graphdb.framework.core.directives.shuttle-multiselect"]).directive("selectSchemaSources",a),a.$inject=["$q","ModalService","$translate","toastr","$repositories","GraphqlContextService","GraphqlService","RDF4JRepositoriesService"]},69724:(e,t,o)=>{function n(e,t,o,n){const r="generation-report.json";e.endpointReport=void 0,e.downloadReport=()=>{const t=JSON.stringify(e.endpointReport.toJSON(),null,2),o=new Blob([t],{type:"application/json"}),n=URL.createObjectURL(o),i=document.createElement("a");i.href=n,i.download=e.endpointReport.endpointId?`${e.endpointReport.endpointId}-${r}`:r,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)},e.deleteReport=()=>{n.deleteEndpointGenerationReport(e.endpointReport),e.close()},e.close=()=>{t.dismiss("cancel")},e.endpointReport=o.endpointReport}o.r(t),o(14874),o(58334),o(29428),angular.module("graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal",["graphdb.framework.core.services.graphql-service"]).controller("EndpointGenerationResultFailureModalController",n),n.$inject=["$scope","$uibModalInstance","data","GraphqlContextService"]},85281:()=>{function e(e,t,o,n,r,i){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"=",selectedSourceRepository:"="},link:a=>{a.endpointConfiguration=void 0,a.generationSettings=void 0,a.generationSettingsValid=!1,a.showAdvancedSettings=!1,a.handleValidityChange=e=>{a.endpointConfigurationSettingsValid=e},a.next=()=>{r.nextEndpointCreationStep()},a.back=()=>{r.previousEndpointCreationStep()},a.cancel=()=>{const e=o.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),n=o.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");t.openConfirmation(e,n,()=>{r.cancelEndpointCreation()})},a.toggleAdvancedSettings=()=>{a.showAdvancedSettings=!a.showAdvancedSettings};const l=[];a.$on("$destroy",()=>{l.forEach(e=>e())}),a.endpointConfiguration=r.getNewEndpoint(),a.endpointConfiguration.settings||(a.endpointConfiguration,a.loadingData=!0,e.all([n.getGraphqlGenerationSettings(a.selectedSourceRepository.id).catch(e=>{console.error("Error loading generation settings",e),i.error(getError(e))})]).then(([e])=>{a.endpointConfiguration.settings=e}).finally(()=>{a.loadingData=!1}))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",e),e.$inject=["$q","ModalService","$translate","GraphqlService","GraphqlContextService","toastr"]},99379:(e,t,o)=>{o.r(t),o(14874);var n=o(32534),r=o(21388),i=o(77512),a=o(16747),l=(o(32606),o(85281),o(28050),o(90275));function s(e,t,o,s,p,c,d,h,g){const u=[];e.sourceRepositories=[],e.selectedSourceRepository=void 0,e.previousSelectedSourceRepository=void 0,e.wizardModel=void 0,e.currentStep=void 0,e.generatingEndpoint=!1,e.onSelectedSourceRepositoryChange=t=>{c.openConfirmationModal({title:s.instant("graphql.create_endpoint.messages.source_repository_changed.title"),message:s.instant("graphql.create_endpoint.messages.source_repository_changed.body"),confirmButtonKey:"common.confirm"},()=>{e.previousSelectedSourceRepository=e.selectedSourceRepository,g.updateSourceRepository(t.value),g.createEndpointConfig(),_()},()=>{e.selectedSourceRepository=e.previousSelectedSourceRepository})},e.activateStep=t=>{e.wizardModel.setStepActive(t),S(t)},e.onStepClick=t=>{e.wizardModel.isAPreviousStep(t)&&(e.wizardModel.setStepActive(t),S(t))};const S=t=>{e.currentStep=t},_=()=>{e.wizardModel=(new a.Wizard).addStep(new r.SelectSchemaSourceStep).addStep(new r.ConfigureEndpointStep).addStep(new r.GenerateEndpointStep),S(e.wizardModel.getActiveStep())};u.push(g.subscribe(n.GraphqlEventName.GENERATE_ENDPOINT,t=>{const n=t.schemaSourceType===r.SchemaSourceType.GRAPHQL_SCHEMA_SHAPES,i=t.schemaSourceType===r.SchemaSourceType.SHACL_SHAPES;return n?(t=>{e.generatingEndpoint=!0;const n=t.toCreateEndpointFromShapesRequest(e.selectedSourceRepository.value);let r;return h.generateEndpointFromGraphqlShapes(o.getActiveRepository(),n).then(e=>{r=e}).catch(e=>{d.error(getError(e))}).finally(()=>{g.endpointGenerated(r),e.generatingEndpoint=!1})})(t):i?(t=>{e.generatingEndpoint=!0;const n=t.toCreateEndpointFromOwlRequest(e.selectedSourceRepository.value);let r;return h.generateEndpointFromOwl(o.getActiveRepository(),n).then(e=>{r=e}).catch(e=>{d.error(getError(e))}).finally(()=>{e.generatingEndpoint=!1,g.endpointGenerated(r)})})(t):void 0})),u.push(g.subscribe(n.GraphqlEventName.PREVIOUS_ENDPOINT_CREATION_STEP,()=>{S(e.wizardModel.previousStep())})),u.push(g.subscribe(n.GraphqlEventName.NEXT_ENDPOINT_CREATION_STEP,()=>{S(e.wizardModel.nextStep())})),u.push(g.subscribe(n.GraphqlEventName.CANCEL_ENDPOINT_CREATION,()=>{t.path(i.endpointUrl.ENDPOINT_MANAGEMENT)})),u.push(g.subscribe(n.GraphqlEventName.FINISH_GENERATION_WORKFLOW,()=>{t.path(i.endpointUrl.ENDPOINT_MANAGEMENT)})),u.push(g.subscribe(n.GraphqlEventName.EXPLORE_ENDPOINT_IN_PLAYGROUND,e=>{const t=(0,l.resolvePlaygroundUrlWithEndpoint)(e.endpointId);g.setSelectedEndpoint(e),window.open(t,"_blank","noopener,noreferrer")})),u.push(g.subscribe(n.GraphqlEventName.OPEN_ENDPOINT_GENERATION_REPORT,e=>p.open({templateUrl:"js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html",controller:"EndpointGenerationResultFailureModalController",windowClass:"endpoint-generation-failure-result-modal",size:"lg",backdrop:"static",keyboard:!1,resolve:{data:()=>({endpointReport:e})}}).result)),u.push(e.$watch(e.getActiveRepositoryObject,e=>{e&&m()})),e.$on("$destroy",()=>{u.forEach(e=>e())});const m=()=>{e.selectedSourceRepository||(g.createEndpointConfig(),_(),(()=>{e.sourceRepositories=o.getRepositoriesAsSelectMenuOptions(()=>o.getLocalReadableGraphdbRepositories());const t=o.getActiveRepository();e.selectedSourceRepository=e.sourceRepositories.find(e=>e.value===t),g.updateSourceRepository(e.selectedSourceRepository.value),e.previousSelectedSourceRepository=e.selectedSourceRepository})())}}angular.module("graphdb.framework.graphql.controllers.create-graphql-endpoint-view",["graphdb.framework.core.services.graphql-service","graphdb.framework.graphql.services.graphql-context","graphdb.framework.graphql.directives.select-schema-sources","graphdb.framework.graphql.directives.configure-endpoint","graphdb.framework.graphql.directives.generate-endpoint"]).controller("CreateGraphqlEndpointViewCtrl",s),s.$inject=["$scope","$location","$repositories","$translate","$uibModal","ModalService","toastr","GraphqlService","GraphqlContextService"]}};
|
|
2
|
-
//# sourceMappingURL=99379.be6c85ef305af6667dc1.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"99379.be6c85ef305af6667dc1.bundle.js","mappings":"yJAQA,SAASA,IACL,MAAO,CACHC,SAAU,IACVC,MAAO,CAKHC,QAAS,IAKTC,SAAU,IAaVC,OAAQ,KAEZC,YAAa,oFACbC,KAAM,SAAUC,GAMZ,MAAMC,EAAgB,GAMtBD,EAAOE,WAAa,GACpBF,EAAOG,iBAAmB,GAC1BH,EAAOI,gBAAkB,GAMzBJ,EAAOK,aAAgBC,IACnBN,EAAOI,gBAAgBG,KAAKD,GAC5BN,EAAOG,iBAAmBH,EAAOG,iBAAiBK,OA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lO,QACKC,OAAO,qEATI,CACZ,kDACA,qDACA,6DACA,0DACA,2DAKCgJ,WAAW,gCAAiCY,GAEjDA,EAA8B1J,QAAU,CAAC,SAAU,YAAa,gBAAiB,aAAc,YAAa,eAAgB,SAAU,iBAAkB,wB","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/shuttle-multiselect/shuttle-multiselect.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/directives/generate-endpoint.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/directives/select-schema-sources.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/controllers/endpoint-generation-failure-result-modal.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/directives/configure-endpoint.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/controllers/create-graphql-endpoint-view.controller.js"],"sourcesContent":["import {cloneDeep} from \"lodash\";\n\nangular\n .module('graphdb.framework.core.directives.shuttle-multiselect', [])\n .directive('shuttleMultiselect', ShuttleMultiselect);\n\nShuttleMultiselect.$inject = [];\n\nfunction ShuttleMultiselect() {\n return {\n restrict: 'E',\n scope: {\n /**\n * The list of options to be displayed in the shuttle.\n * @type {{label: string, id: string}[]}\n */\n options: '=',\n /**\n * The list of selected options.\n * @type {{label: string, id: string}[]}\n */\n selected: '=',\n /**\n * availableOptionsTitle\n * availableOptionsFilter\n * selectedOptionsTitle\n * selectedOptionsCount\n * selectTooltip\n * selectAllLabel\n * selectAllTooltip\n * deselectTooltip\n * deselectAllLabel\n * deselectAllTooltip\n */\n labels: '='\n },\n templateUrl: 'js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html',\n link: function ($scope) {\n\n // =========================\n // Private variables\n // =========================\n\n const subscriptions = [];\n\n // =========================\n // Public variables\n // =========================\n\n $scope.searchLeft = '';\n $scope.availableOptions = [];\n $scope.selectedOptions = [];\n\n // =========================\n // Public functions\n // =========================\n\n $scope.selectOption = (option) => {\n $scope.selectedOptions.push(option);\n $scope.availableOptions = $scope.availableOptions.filter((opt) => opt !== option);\n updateSelected();\n };\n\n $scope.selectAll = () => {\n $scope.selectedOptions = $scope.selectedOptions.concat($scope.availableOptions);\n $scope.availableOptions = [];\n updateSelected();\n };\n\n $scope.deselectOption = (option) => {\n $scope.availableOptions.push(option);\n $scope.selectedOptions = $scope.selectedOptions.filter((opt) => opt !== option);\n updateSelected();\n };\n\n $scope.deselectAll = () => {\n $scope.availableOptions = $scope.availableOptions.concat($scope.selectedOptions);\n $scope.selectedOptions = [];\n updateSelected();\n };\n\n // =========================\n // Private functions\n // =========================\n\n const updateSelected = () => {\n $scope.selected = [...$scope.selectedOptions];\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n const removeAllSubscribers = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n // Deregister the watcher when the scope/directive is destroyed\n $scope.$on('$destroy', removeAllSubscribers);\n\n const onInit = () => {\n $scope.selectedOptions = cloneDeep($scope.selected);\n // If there are selected options, filter them out from the available options\n if ($scope.selectedOptions.length) {\n $scope.availableOptions = $scope.options\n .filter(\n (option) => !$scope.selectedOptions\n .find((selectedOption) => selectedOption.id === option.id));\n } else {\n $scope.availableOptions = cloneDeep($scope.options);\n }\n }\n onInit();\n }\n };\n}\n","import {GraphqlEventName} from \"../services/graphql-context.service\";\nimport '../controllers/endpoint-generation-failure-result-modal.controller';\nimport {endpointUrl} from \"../models/endpoints\";\n\nangular\n .module('graphdb.framework.graphql.directives.generate-endpoint', [\n 'graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal'\n ])\n .directive('generateEndpoint', GenerateEndpointComponent);\n\nGenerateEndpointComponent.$inject = ['ModalService', '$uibModal', '$translate', '$repositories', 'GraphqlService', 'GraphqlContextService'];\n\nfunction GenerateEndpointComponent(ModalService, $uibModal, $translate, $repositories, GraphqlService, GraphqlContextService) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/graphql/templates/step-generate-endpoint.html',\n scope: {\n stepDefinition: '='\n },\n link: ($scope) => {\n\n // =========================\n // Public variables\n // =========================\n\n /**\n * The endpoint configuration model.\n * @type {GraphqlEndpointConfiguration|undefined}\n */\n $scope.endpointConfiguration = undefined;\n\n /**\n * The count of the endpoints that will be generated.\n * @type {number}\n */\n $scope.endpointsCountToGenerate = 0;\n\n /**\n * A model with the overview of the endpoints to be generated.\n * @type {GraphqlEndpointOverviewList|undefined}\n */\n $scope.endpointsOverview = undefined;\n\n /**\n * The active repository.\n */\n $scope.activeRepository = $repositories.getActiveRepository();\n\n /**\n * A flag indicating if the endpoint will be generated from the GraphQL schema shapes.\n * @type {boolean}\n */\n $scope.generateFromGraphqlSchemaShapes = false;\n\n /**\n * A flag indicating if the endpoint generation is in progress.\n * @type {boolean}\n */\n $scope.generatingEndpoint = false;\n\n /**\n * The endpoint generation report.\n * @type {EndpointGenerationReportList|undefined}\n */\n $scope.generationReport = undefined;\n\n /**\n * Exposes the graphql module view URL constants for use in the template.\n * @type {{string?: string}}\n */\n $scope.endpointUrl = endpointUrl;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Handles the transition to the previous step in the create endpoint wizard.\n */\n $scope.back = () => {\n GraphqlContextService.previousEndpointCreationStep();\n };\n\n /**\n * Handles the termination of the create endpoint wizard.\n */\n $scope.cancel = () => {\n const title = $translate.instant('graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title');\n const confirmDeleteMessage = $translate.instant('graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body');\n ModalService.openConfirmation(title, confirmDeleteMessage, () => {\n GraphqlContextService.cancelEndpointCreation();\n });\n };\n\n /**\n * Handles the creation of the GraphQL endpoint.\n */\n $scope.generateEndpoint = () => {\n $scope.generatingEndpoint = true;\n $scope.generationReport = undefined;\n GraphqlContextService.generateEndpoint();\n };\n\n /**\n * Handles the completion of the endpoint generation workflow.\n */\n $scope.finishGenerationWorkflow = () => {\n GraphqlContextService.finishGenerationWorkflow();\n };\n\n /**\n * Triggers an event to open the endpoint generation report modal.\n * @param {EndpointGenerationReport} endpointReport The endpoint generation report.\n */\n $scope.showEndpointReport = (endpointReport) => {\n GraphqlContextService.openEndpointGenerationReport(endpointReport);\n }\n\n /**\n * Opens the endpoint in the playground in a new browser tab.\n * @param {EndpointGenerationReport} endpointReport The endpoint generation report.\n */\n $scope.exploreInPlayground = (endpointReport) => {\n GraphqlContextService.exploreEndpointInPlayground(endpointReport);\n }\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Handles the completion of the endpoint generation.\n * @param {EndpointGenerationReportList} generationReport The endpoint generation report.\n */\n const onEndpointGenerated = (generationReport) => {\n $scope.generatingEndpoint = false;\n $scope.generationReport = generationReport;\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n const subscriptions = [];\n\n const onDestroy = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.ENDPOINT_GENERATED, onEndpointGenerated));\n\n $scope.$on('$destroy', onDestroy);\n\n const onInit = () => {\n $scope.endpointConfiguration = GraphqlContextService.getNewEndpoint();\n $scope.generateFromGraphqlSchemaShapes = $scope.endpointConfiguration.hasSelectedGraphqlSchemaShapes();\n $scope.endpointsCountToGenerate = GraphqlService.getEndpointsCountToGenerate($scope.endpointConfiguration);\n $scope.endpointsOverview = GraphqlService.getGenerateEndpointsOverview($scope.endpointConfiguration);\n }\n onInit();\n }\n };\n}\n","import 'angular/core/directives/shuttle-multiselect/shuttle-multiselect.directive';\nimport {GraphListOptions} from \"../../models/graphs/graph-list-options\";\nimport {GraphqlEventName} from \"../services/graphql-context.service\";\nimport {OntologyShaclShapeSource, SchemaSourceType} from \"../../models/graphql/create-endpoint-wizard-steps\";\n\nconst modules = [\n 'graphdb.framework.core.directives.shuttle-multiselect'\n]\n\nangular\n .module('graphdb.framework.graphql.directives.select-schema-sources', modules)\n .directive('selectSchemaSources', SelectSchemaSourcesComponent);\n\nSelectSchemaSourcesComponent.$inject = ['$q', 'ModalService', '$translate', 'toastr', '$repositories', 'GraphqlContextService', 'GraphqlService', 'RDF4JRepositoriesService'];\n\nfunction SelectSchemaSourcesComponent($q, ModalService, $translate, toastr, $repositories, GraphqlContextService, GraphqlService, RDF4JRepositoriesService) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/graphql/templates/step-select-schema-sources.html',\n scope: {\n stepDefinition: '='\n },\n link: ($scope, element) => {\n\n // =========================\n // Private variables\n // =========================\n\n const subscriptions = [];\n\n // =========================\n // Public variables\n // =========================\n\n $scope.schemaSourceType = SchemaSourceType;\n $scope.ontologyShaclShapeSource = OntologyShaclShapeSource;\n\n /**\n * The label keys for the shacl shapes multiselect component.\n */\n $scope.shapesMultiselectLabels = {\n availableOptionsTitle: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.title',\n availableOptionsFilter: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.available_options.filter_placeholder',\n selectedOptionsTitle: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.title',\n selectedOptionsCount: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.selected_options.count',\n selectTooltip: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add.tooltip',\n selectAllLabel: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.label',\n selectAllTooltip: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.add_all.tooltip',\n deselectTooltip: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove.tooltip',\n deselectAllLabel: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.label',\n deselectAllTooltip: 'graphql.create_endpoint.wizard_steps.shapes_multiselect.actions.remove_all.tooltip'\n };\n\n /**\n * The label keys for the graphs multiselect component.\n */\n $scope.graphsMultiselectLabels = {\n availableOptionsTitle: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.title',\n availableOptionsFilter: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.available_options.filter_placeholder',\n selectedOptionsTitle: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.title',\n selectedOptionsCount: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.selected_options.count',\n selectTooltip: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add.tooltip',\n selectAllLabel: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.label',\n selectAllTooltip: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.add_all.tooltip',\n deselectTooltip: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove.tooltip',\n deselectAllLabel: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.label',\n deselectAllTooltip: 'graphql.create_endpoint.wizard_steps.graphs_multiselect.actions.remove_all.tooltip'\n }\n\n /**\n * The endpoint configuration model.\n * @type {GraphqlEndpointConfiguration|undefined}\n */\n $scope.endpointConfiguration = undefined\n\n /**\n * A list of prefixes available for the endpoint\n * @type {SelectMenuOptionsModel[]}\n */\n $scope.prefixList = [];\n\n /**\n * Flag indicating whether the prefixes are being loaded.\n * @type {boolean}\n */\n $scope.loadingPrefixes = false;\n\n /**\n * The list of graphs in the repository.\n * @type {GraphListOptions|undefined}\n */\n $scope.graphs = undefined;\n\n /**\n * The list of SHACL shape graphs in the repository.\n * @type {GraphListOptions|undefined}\n */\n $scope.shaclShapeGraphs = undefined;\n\n /**\n * The list of GraphQL schema shapes in the repository. The graphql shapes multiselect component uses this\n * list.\n * @type {GraphqlSchemaShapes|undefined}\n */\n $scope.graphqlSchemaShapes = undefined;\n\n /**\n * The list of all graphs in the repository. The graphs multiselect component uses this list.\n * @type {GraphListOptions|undefined}\n */\n $scope.allGraphs = undefined;\n\n /**\n * Flag indicating whether the graphs are being loaded.\n * @type {boolean}\n */\n $scope.loadingGraphs = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Handles the termination of the create endpoint wizard.\n */\n $scope.cancel = () => {\n const title = $translate.instant('graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title');\n const confirmDeleteMessage = $translate.instant('graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body');\n ModalService.openConfirmation(title, confirmDeleteMessage, () => {\n GraphqlContextService.cancelEndpointCreation();\n });\n };\n\n /**\n * Handles the transition to the next step in the create endpoint wizard.\n */\n $scope.next = () => {\n GraphqlContextService.nextEndpointCreationStep();\n };\n\n /**\n * Handles the switch between schema source types in the UI. Switching schema source types renders different\n * UI components for selecting the schema source and uses different data models.\n */\n $scope.onSchemaSourceTypeChange = () => {\n $scope.endpointConfiguration.schemaSourceType = $scope.stepDefinition.schemaSourceType;\n if ($scope.endpointConfiguration.generateFromShaclShapes()) {\n if ($scope.stepDefinition.ontotlogyShaclShapeSource === OntologyShaclShapeSource.USE_ALL_GRAPHS) {\n $scope.endpointConfiguration.selectedGraphs = $scope.allGraphs;\n } else if ($scope.stepDefinition.ontotlogyShaclShapeSource === OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH) {\n $scope.endpointConfiguration.selectedGraphs = $scope.shaclShapeGraphs;\n } else if ($scope.stepDefinition.ontotlogyShaclShapeSource === OntologyShaclShapeSource.PICK_GRAPHS) {\n $scope.endpointConfiguration.selectedGraphs = new GraphListOptions();\n }\n }\n };\n\n /**\n * Handles the switch between ontology and SHACL shape sources in the UI. Switching between sources changes\n * the list of graphs available for selection.\n */\n $scope.onOntologyShaclShapeSourceChange = () => {\n $scope.endpointConfiguration.owlOrShaclSourceType = $scope.stepDefinition.ontotlogyShaclShapeSource;\n if ($scope.stepDefinition.ontotlogyShaclShapeSource === OntologyShaclShapeSource.USE_ALL_GRAPHS) {\n $scope.endpointConfiguration.selectedGraphs = $scope.allGraphs;\n } else if ($scope.stepDefinition.ontotlogyShaclShapeSource === OntologyShaclShapeSource.USE_SHACL_SHAPE_GRAPH) {\n $scope.endpointConfiguration.selectedGraphs = $scope.shaclShapeGraphs;\n } else if ($scope.stepDefinition.ontotlogyShaclShapeSource === OntologyShaclShapeSource.PICK_GRAPHS) {\n $scope.endpointConfiguration.selectedGraphs = new GraphListOptions();\n }\n };\n\n /**\n * Handles the transition to the next step in the create endpoint wizard.\n * @returns {boolean}\n */\n $scope.canProceed = () => {\n let canProceed = false;\n if ($scope.endpointConfiguration) {\n const hasSelectedShapes = $scope.endpointConfiguration.hasSelectedGraphqlSchemaShapes();\n const hasValidEndpointParameters = $scope.endpointParamsForm.$valid;\n // The first option (radiobutton) allows the user to select graphql shapes.\n if ($scope.stepDefinition.schemaSourceType === SchemaSourceType.GRAPHQL_SCHEMA_SHAPES && hasSelectedShapes) {\n canProceed = true;\n }\n // The second option (radiobutton) allows the user to select graphs: all graphs, shacl shape graph or\n // manually pick graphs.\n // Here the user must also fill in the endpoint parameters form.\n else if ($scope.stepDefinition.schemaSourceType === SchemaSourceType.SHACL_SHAPES && hasValidEndpointParameters) {\n // In case the user selects all graphs, we don't care how many graphs are there. We use all\n // the data in the repository. Also, it's possible that there are no other graphs in the\n // repository than the default one.\n if ($scope.endpointConfiguration.owlOrShaclSourceType === OntologyShaclShapeSource.USE_ALL_GRAPHS) {\n canProceed = true;\n } else {\n // In all the other cases there must be at least one graph selected.\n canProceed = $scope.endpointConfiguration.hasSelectedGraphs();\n }\n }\n }\n return canProceed;\n }\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Loads prefixes available in the source repository.\n * @returns {Promise<void>}\n */\n const loadPrefixes = () => {\n $scope.loadingPrefixes = true;\n return GraphqlService.getPrefixListAsSelectOptions(GraphqlContextService.getSourceRepository())\n .catch((error) => {\n console.error('Error loading prefixes', error);\n toastr.error(getError(error));\n })\n .finally(() => {\n $scope.loadingPrefixes = false;\n });\n }\n\n /**\n * Loads all graphs available in the source repository.\n * @returns {Promise<GraphListOptions>}\n */\n const loadAllGraphs = () => {\n $scope.loadingGraphs = true;\n return RDF4JRepositoriesService.getGraphs(GraphqlContextService.getSourceRepository())\n .catch((error) => {\n console.error('Error loading graphs', error);\n toastr.error(getError(error));\n })\n .finally(() => {\n $scope.loadingGraphs = false;\n });\n }\n\n /**\n * Loads the GraphQL schema shapes from the source repository.\n * @returns {Promise<GraphqlSchemaShapes>}\n */\n const loadGraphqlSchemaShapes = () => {\n return GraphqlService.getGraphqlSchemaShapes(GraphqlContextService.getSourceRepository())\n .catch((error) => {\n console.error('Error loading GraphQL schema shapes', error);\n toastr.error(getError(error));\n });\n };\n\n /**\n * Loads the SHACL shape graphs from the source repository.\n * @returns {Promise<GraphListOptions>}\n */\n const loadShaclShapeGraphs = () => {\n return GraphqlService.getShaclShapeGraphs(GraphqlContextService.getSourceRepository())\n .catch((error) => {\n console.error('Error loading SHACL shape graphs', error);\n toastr.error(getError(error));\n });\n }\n\n /**\n * Handles the update of the endpoint configuration model.\n * @param {GraphqlEndpointConfiguration} endpointConfiguration The updated endpoint configuration model.\n */\n const loadData = (endpointConfiguration) => {\n $scope.loadingData = true;\n $q.all([loadPrefixes(), loadAllGraphs(), loadGraphqlSchemaShapes(), loadShaclShapeGraphs()])\n .then(([prefixes, graphs, graphqlShapes, shaclShapeGraphs]) => {\n $scope.graphqlSchemaShapes = graphqlShapes;\n $scope.graphs = graphs;\n $scope.shaclShapeGraphs = shaclShapeGraphs;\n $scope.allGraphs = new GraphListOptions([...graphs.graphList, ...shaclShapeGraphs.graphList]);\n $scope.prefixList = prefixes;\n $scope.endpointConfiguration = endpointConfiguration;\n })\n .finally(() => {\n $scope.loadingData = false;\n });\n }\n\n /**\n * Handles the update of the source repository.\n */\n const onSourceRepositoryUpdated = () => {\n loadData(GraphqlContextService.getNewEndpoint());\n }\n\n // =========================\n // Subscriptions\n // =========================\n\n const onDestroy = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n const subscribeToEvents = () => {\n $scope.$on('$destroy', onDestroy);\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.SOURCE_REPOSITORY_UPDATED, onSourceRepositoryUpdated));\n const newEndpoint = GraphqlContextService.getNewEndpoint();\n if (!newEndpoint) {\n subscriptions.push(GraphqlContextService.onEndpointConfigCreated(loadData));\n } else {\n loadData(newEndpoint);\n }\n }\n\n const onInit = () => {\n subscribeToEvents();\n }\n onInit();\n }\n };\n}\n","import '../../core/services/graphql.service';\nimport 'angular/core/directives/dynamic-form/dynamic-form.directive';\nimport 'angular/core/directives/multiselect-dropdown/multiselect-dropdown.directive';\n\nconst modules = [\n 'graphdb.framework.core.services.graphql-service',\n];\n\nangular\n .module('graphdb.framework.graphql.controllers.endpoint-generation-failure-result-modal', modules)\n .controller('EndpointGenerationResultFailureModalController', EndpointGenerationResultFailureModalController);\n\nEndpointGenerationResultFailureModalController.$inject = ['$scope', '$uibModalInstance', 'data', 'GraphqlContextService'];\n\nfunction EndpointGenerationResultFailureModalController($scope, $uibModalInstance, data, GraphqlContextService) {\n // =========================\n // Private variables\n // =========================\n\n const REPORT_FILE_NAME = 'generation-report.json';\n\n // =========================\n // Public variables\n // =========================\n\n /**\n * The generation report model.\n * @type {EndpointGenerationReport|undefined}\n */\n $scope.endpointReport = undefined;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Handles the download report button click.\n */\n $scope.downloadReport = () => {\n const reportData = JSON.stringify($scope.endpointReport.toJSON(), null, 2);\n const blob = new Blob([reportData], { type: 'application/json' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = $scope.endpointReport.endpointId ? `${$scope.endpointReport.endpointId}-${REPORT_FILE_NAME}` : REPORT_FILE_NAME;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n URL.revokeObjectURL(url);\n };\n\n /**\n * Deletes generation report and dismisses the modal.\n */\n $scope.deleteReport = () => {\n GraphqlContextService.deleteEndpointGenerationReport($scope.endpointReport);\n $scope.close();\n }\n\n /**\n * Cancels the operation and dismisses the modal.\n */\n $scope.close = () => {\n $uibModalInstance.dismiss('cancel')\n };\n\n // =========================\n // Private functions\n // =========================\n\n const init = () => {\n $scope.endpointReport = data.endpointReport;\n };\n\n // =========================\n // Initialization\n // =========================\n init();\n}\n","angular\n .module('graphdb.framework.graphql.directives.configure-endpoint', [])\n .directive('configureEndpoint', ConfigureEndpointComponent);\n\nConfigureEndpointComponent.$inject = ['$q', 'ModalService', '$translate', 'GraphqlService', 'GraphqlContextService', 'toastr'];\n\nfunction ConfigureEndpointComponent($q, ModalService, $translate, GraphqlService, GraphqlContextService, toastr) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/graphql/templates/step-configure-endpoint.html',\n scope: {\n stepDefinition: '=',\n selectedSourceRepository: '=',\n },\n link: ($scope) => {\n // =========================\n // Public variables\n // =========================\n\n /**\n * The endpoint configuration model.\n * @type {GraphqlEndpointConfiguration|undefined}\n */\n $scope.endpointConfiguration = undefined;\n\n /**\n * The dynamic form model containing the generation settings.\n * @type {GraphqlEndpointConfigurationSettings|undefined}\n */\n $scope.generationSettings = undefined;\n\n /**\n * Flag indicating if the generation settings in the form are valid.\n * @type {boolean}\n */\n $scope.generationSettingsValid = false;\n\n /**\n * Flag controlling the visibility of the advanced settings section. Advanced settings are hidden by default\n * in the settings model.\n * @type {boolean}\n */\n $scope.showAdvancedSettings = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Handles the validity change of the generation settings form.\n * @param {boolean} isValid The new validity state of the form.\n */\n $scope.handleValidityChange = (isValid) => {\n $scope.endpointConfigurationSettingsValid = isValid;\n };\n\n /**\n * Handles the transition to the next step in the create endpoint wizard.\n */\n $scope.next = () => {\n GraphqlContextService.nextEndpointCreationStep();\n };\n\n /**\n * Handles the transition to the previous step in the create endpoint wizard.\n */\n $scope.back = () => {\n GraphqlContextService.previousEndpointCreationStep();\n };\n\n /**\n * Handles the termination of the create endpoint wizard.\n */\n $scope.cancel = () => {\n const title = $translate.instant('graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title');\n const confirmDeleteMessage = $translate.instant('graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body');\n ModalService.openConfirmation(title, confirmDeleteMessage, () => {\n GraphqlContextService.cancelEndpointCreation();\n });\n };\n\n /**\n * Toggles the visibility of the advanced settings. Advanced settings are hidden by default.\n */\n $scope.toggleAdvancedSettings = () => {\n $scope.showAdvancedSettings = !$scope.showAdvancedSettings;\n };\n\n // =========================\n // Private functions\n // =========================\n\n const loadGenerationSettings = () => {\n return GraphqlService.getGraphqlGenerationSettings($scope.selectedSourceRepository.id)\n .catch((error) => {\n console.error('Error loading generation settings', error);\n toastr.error(getError(error));\n });\n };\n\n const loadData = () => {\n $scope.loadingData = true;\n $q.all([loadGenerationSettings()])\n .then(([generationSettings]) => {\n $scope.endpointConfiguration.settings = generationSettings;\n })\n .finally(() => {\n $scope.loadingData = false;\n });\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n const subscriptions = [];\n\n const onDestroy = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n $scope.$on('$destroy', onDestroy);\n\n const onInit = () => {\n $scope.endpointConfiguration = GraphqlContextService.getNewEndpoint();\n // Reload generation settings only if they are not already loaded. We need them to stay in the\n // endpoint configuration object during the whole endpoint creation process.\n if (!$scope.endpointConfiguration.settings) {\n loadData($scope.endpointConfiguration);\n }\n };\n onInit();\n },\n };\n}\n","import '../../core/services/graphql.service';\nimport '../services/graphql-context.service';\nimport {\n ConfigureEndpointStep,\n GenerateEndpointStep, SchemaSourceType,\n SelectSchemaSourceStep,\n} from \"../../models/graphql/create-endpoint-wizard-steps\";\nimport {endpointUrl} from \"../models/endpoints\";\nimport {Wizard} from \"../../models/graphql/wizard\";\nimport 'angular/graphql/directives/select-schema-sources.directive';\nimport 'angular/graphql/directives/configure-endpoint.directive';\nimport 'angular/graphql/directives/generate-endpoint.directive';\nimport {GraphqlEventName} from \"../services/graphql-context.service\";\nimport {resolvePlaygroundUrlWithEndpoint} from \"../services/endpoint-utils\";\n\nconst modules = [\n 'graphdb.framework.core.services.graphql-service',\n 'graphdb.framework.graphql.services.graphql-context',\n 'graphdb.framework.graphql.directives.select-schema-sources',\n 'graphdb.framework.graphql.directives.configure-endpoint',\n 'graphdb.framework.graphql.directives.generate-endpoint',\n];\n\nangular\n .module('graphdb.framework.graphql.controllers.create-graphql-endpoint-view', modules)\n .controller('CreateGraphqlEndpointViewCtrl', CreateGraphqlEndpointViewCtrl);\n\nCreateGraphqlEndpointViewCtrl.$inject = ['$scope', '$location', '$repositories', '$translate', '$uibModal', 'ModalService', 'toastr', 'GraphqlService', 'GraphqlContextService'];\n\nfunction CreateGraphqlEndpointViewCtrl($scope, $location, $repositories, $translate, $uibModal, ModalService, toastr, GraphqlService, GraphqlContextService) {\n // =========================\n // Private variables\n // =========================\n\n const subscriptions = [];\n\n // =========================\n // Public variables\n // =========================\n\n /**\n * The source repositories select menu model.\n * @type {SelectMenuOptionsModel[]}\n */\n $scope.sourceRepositories = [];\n\n /**\n * The selected source repository.\n * @type {SelectMenuOptionsModel|undefined}\n */\n $scope.selectedSourceRepository = undefined;\n\n /**\n * The previous selected source repository is same as the selected source repository when the view is initialized.\n * It is used to restore the selected source repository when the user cancels the source repository change.\n * @type {SelectMenuOptionsModel|undefined}\n */\n $scope.previousSelectedSourceRepository = undefined;\n\n /**\n * The create endpoint wizard model.\n * @type {Wizard|undefined}\n */\n $scope.wizardModel = undefined;\n\n /**\n * Current wizard step model.\n * @type {WizardStep|undefined}\n */\n $scope.currentStep = undefined;\n\n /**\n * A flag indicating if the endpoint generation is in progress. This allows to disable some UI elements during the\n * generation process.\n * @type {boolean}\n */\n $scope.generatingEndpoint = false;\n\n // =========================\n // Public methods\n // =========================\n\n /**\n * Handles the change of the selected source repository.\n * @param {SelectMenuOptionsModel} selectedRepository The selected source repository.\n */\n $scope.onSelectedSourceRepositoryChange = (selectedRepository) => {\n ModalService.openConfirmationModal({\n title: $translate.instant('graphql.create_endpoint.messages.source_repository_changed.title'),\n message: $translate.instant('graphql.create_endpoint.messages.source_repository_changed.body'),\n confirmButtonKey: 'common.confirm',\n },\n () => {\n $scope.previousSelectedSourceRepository = $scope.selectedSourceRepository;\n GraphqlContextService.updateSourceRepository(selectedRepository.value);\n // Recreate the endpoint configuration and the wizard as the new source repository may have different data.\n GraphqlContextService.createEndpointConfig();\n setupWizard();\n },\n () => {\n $scope.selectedSourceRepository = $scope.previousSelectedSourceRepository;\n });\n };\n\n /**\n * Activates the wizard step.\n * @param {WizardStep} step\n */\n $scope.activateStep = (step) => {\n $scope.wizardModel.setStepActive(step);\n setCurrentStep(step);\n };\n\n /**\n * Handles the click on the step in the wizard. We allow only to go back to previous steps.\n * @param {WizardStep} step The step to go to.\n */\n $scope.onStepClick = (step) => {\n if ($scope.wizardModel.isAPreviousStep(step)) {\n $scope.wizardModel.setStepActive(step);\n setCurrentStep(step);\n }\n };\n\n // =========================\n // Private methods\n // =========================\n\n /**\n * Executes the generation of the GraphQL endpoint from the GraphQL schema shapes.\n * @param {GraphqlEndpointConfiguration} endpointConfiguration The endpoint configuration.\n * @returns {Promise<void>}\n */\n const generateEndpointFromGraphqlShapes = (endpointConfiguration) => {\n $scope.generatingEndpoint = true;\n const endpointCreateRequest = endpointConfiguration.toCreateEndpointFromShapesRequest($scope.selectedSourceRepository.value);\n let generationReport;\n return GraphqlService.generateEndpointFromGraphqlShapes($repositories.getActiveRepository(), endpointCreateRequest)\n .then((endpointGenerationReportList) => {\n generationReport = endpointGenerationReportList;\n })\n .catch((error) => {\n toastr.error(getError(error));\n })\n .finally(() => {\n GraphqlContextService.endpointGenerated(generationReport);\n $scope.generatingEndpoint = false;\n });\n };\n\n /**\n * Executes the generation of the GraphQL endpoint from the ontologies.\n * @param {GraphqlEndpointConfiguration} endpointConfiguration The endpoint configuration.\n * @returns {Promise<void>}\n */\n const generateEndpointFromOntologies = (endpointConfiguration) => {\n $scope.generatingEndpoint = true;\n const endpointCreateRequest = endpointConfiguration.toCreateEndpointFromOwlRequest($scope.selectedSourceRepository.value);\n let generationReport;\n return GraphqlService.generateEndpointFromOwl($repositories.getActiveRepository(), endpointCreateRequest)\n .then((endpointGenerationReport) => {\n generationReport = endpointGenerationReport;\n })\n .catch((error) => {\n toastr.error(getError(error));\n })\n .finally(() => {\n $scope.generatingEndpoint = false;\n GraphqlContextService.endpointGenerated(generationReport);\n });\n };\n\n /**\n * Handles the generation of the GraphQL endpoint. There are two options for generating the endpoint:\n * 1. Generate the endpoint from the GraphQL shacl shapes.\n * 2. Generate the endpoint from ontologies and/or shacl shapes.\n * @param {GraphqlEndpointConfiguration} endpointConfiguration The endpoint configuration.\n */\n const onGenerateEndpoint = (endpointConfiguration) => {\n const generateFromGraphqlShapes = endpointConfiguration.schemaSourceType === SchemaSourceType.GRAPHQL_SCHEMA_SHAPES;\n const generateFromOntologies = endpointConfiguration.schemaSourceType === SchemaSourceType.SHACL_SHAPES;\n if (generateFromGraphqlShapes) {\n return generateEndpointFromGraphqlShapes(endpointConfiguration);\n } else if (generateFromOntologies) {\n return generateEndpointFromOntologies(endpointConfiguration);\n }\n };\n\n /**\n * Handles the returning to the previous step in the create endpoint wizard.\n */\n const onPreviousEndpointCreationStep = () => {\n setCurrentStep($scope.wizardModel.previousStep());\n };\n\n /**\n * Handles the transition to the next step in the create endpoint wizard.\n */\n const onNextEndpointCreationStep = () => {\n setCurrentStep($scope.wizardModel.nextStep());\n };\n\n /**\n * Handles the termination of the create endpoint wizard.\n */\n const onCancelEndpointCreation = () => {\n $location.path(endpointUrl.ENDPOINT_MANAGEMENT);\n };\n\n /**\n * Handles the finish of the endpoint generation workflow by redirecting to the endpoint management view.\n */\n const onFinishEndpointGeneration = () => {\n $location.path(endpointUrl.ENDPOINT_MANAGEMENT);\n };\n\n /**\n * Opens the GraphQL Playground with the selected endpoint in a new browser tab.\n * @param {EndpointGenerationReport} endpointInfo The endpoint info.\n */\n const onExploreEndpointInPlayground = (endpointInfo) => {\n const url = resolvePlaygroundUrlWithEndpoint(endpointInfo.endpointId);\n GraphqlContextService.setSelectedEndpoint(endpointInfo);\n window.open(url, '_blank', 'noopener,noreferrer');\n };\n\n /**\n * Opens the endpoint generation report modal.\n * @param {EndpointGenerationReport} endpointReport\n * @returns {Promise<void>}\n */\n const onShowEndpointReport = (endpointReport) => {\n return $uibModal.open({\n templateUrl: 'js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html',\n controller: 'EndpointGenerationResultFailureModalController',\n windowClass: 'endpoint-generation-failure-result-modal',\n size: 'lg',\n backdrop: 'static',\n keyboard: false,\n resolve: {\n data: () => {\n return {\n endpointReport,\n };\n },\n },\n }).result;\n };\n\n /**\n * Sets the current step in the create endpoint wizard.\n * @param {WizardStep} step The current step.\n */\n const setCurrentStep = (step) => {\n $scope.currentStep = step;\n };\n\n /**\n * Handles the change of the active repository.\n * @param {object} repositoryObject\n */\n const getActiveRepositoryObjectHandler = (repositoryObject) => {\n if (repositoryObject) {\n onInit();\n }\n };\n\n /**\n * Loads all repository objects and sets the selected source repository to be the same as the active repository.\n */\n const setupSourceRepositories = () => {\n $scope.sourceRepositories = $repositories.getRepositoriesAsSelectMenuOptions(\n () => $repositories.getLocalReadableGraphdbRepositories(),\n );\n const activeRepository = $repositories.getActiveRepository();\n $scope.selectedSourceRepository = $scope.sourceRepositories\n .find((repo) => repo.value === activeRepository);\n GraphqlContextService.updateSourceRepository($scope.selectedSourceRepository.value);\n $scope.previousSelectedSourceRepository = $scope.selectedSourceRepository;\n };\n\n /**\n * Initializes the create endpoint wizard with the steps.\n */\n const setupWizard = () => {\n $scope.wizardModel = new Wizard()\n .addStep(new SelectSchemaSourceStep())\n .addStep(new ConfigureEndpointStep())\n .addStep(new GenerateEndpointStep());\n setCurrentStep($scope.wizardModel.getActiveStep());\n };\n\n /**\n * Unsubscribes all watchers.\n */\n const unsubscribeAll = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.GENERATE_ENDPOINT, onGenerateEndpoint));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.PREVIOUS_ENDPOINT_CREATION_STEP, onPreviousEndpointCreationStep));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.NEXT_ENDPOINT_CREATION_STEP, onNextEndpointCreationStep));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.CANCEL_ENDPOINT_CREATION, onCancelEndpointCreation));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.FINISH_GENERATION_WORKFLOW, onFinishEndpointGeneration));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.EXPLORE_ENDPOINT_IN_PLAYGROUND, onExploreEndpointInPlayground));\n subscriptions.push(GraphqlContextService.subscribe(GraphqlEventName.OPEN_ENDPOINT_GENERATION_REPORT, onShowEndpointReport));\n subscriptions.push($scope.$watch($scope.getActiveRepositoryObject, getActiveRepositoryObjectHandler));\n $scope.$on('$destroy', unsubscribeAll);\n\n // =========================\n // Initialization\n // =========================\n\n const onInit = () => {\n // Reinitialize the wizard only if the source repository is not selected. From this point on, the wizard will\n // be reinitialized only when the user changes the source repository.\n if (!$scope.selectedSourceRepository) {\n GraphqlContextService.createEndpointConfig();\n setupWizard();\n setupSourceRepositories();\n }\n };\n}\n"],"names":["ShuttleMultiselect","restrict","scope","options","selected","labels","templateUrl","link","$scope","subscriptions","searchLeft","availableOptions","selectedOptions","selectOption","option","push","filter","opt","updateSelected","selectAll","concat","deselectOption","deselectAll","$on","removeAllSubscribers","forEach","subscription","cloneDeep","length","find","selectedOption","id","angular","module","directive","$inject","GenerateEndpointComponent","ModalService","$uibModal","$translate","$repositories","GraphqlService","GraphqlContextService","stepDefinition","endpointConfiguration","undefined","endpointsCountToGenerate","endpointsOverview","activeRepository","getActiveRepository","generateFromGraphqlSchemaShapes","generatingEndpoint","generationReport","endpointUrl","back","previousEndpointCreationStep","cancel","title","instant","confirmDeleteMessage","openConfirmation","cancelEndpointCreation","generateEndpoint","finishGenerationWorkflow","showEndpointReport","endpointReport","openEndpointGenerationReport","exploreInPlayground","exploreEndpointInPlayground","subscribe","GraphqlEventName","ENDPOINT_GENERATED","onDestroy","getNewEndpoint","hasSelectedGraphqlSchemaShapes","getEndpointsCountToGenerate","getGenerateEndpointsOverview","SelectSchemaSourcesComponent","$q","toastr","RDF4JRepositoriesService","element","schemaSourceType","SchemaSourceType","ontologyShaclShapeSource","OntologyShaclShapeSource","shapesMultiselectLabels","availableOptionsTitle","availableOptionsFilter","selectedOptionsTitle","selectedOptionsCount","selectTooltip","selectAllLabel","selectAllTooltip","deselectTooltip","deselectAllLabel","deselectAllTooltip","graphsMultiselectLabels","prefixList","loadingPrefixes","graphs","shaclShapeGraphs","graphqlSchemaShapes","allGraphs","loadingGraphs","next","nextEndpointCreationStep","onSchemaSourceTypeChange","generateFromShaclShapes","ontotlogyShaclShapeSource","USE_ALL_GRAPHS","selectedGraphs","USE_SHACL_SHAPE_GRAPH","PICK_GRAPHS","GraphListOptions","onOntologyShaclShapeSourceChange","owlOrShaclSourceType","canProceed","hasSelectedShapes","hasValidEndpointParameters","endpointParamsForm","$valid","GRAPHQL_SCHEMA_SHAPES","SHACL_SHAPES","hasSelectedGraphs","loadData","loadingData","all","getPrefixListAsSelectOptions","getSourceRepository","catch","error","console","getError","finally","getGraphs","getGraphqlSchemaShapes","getShaclShapeGraphs","then","prefixes","graphqlShapes","graphList","onSourceRepositoryUpdated","subscribeToEvents","SOURCE_REPOSITORY_UPDATED","newEndpoint","onEndpointConfigCreated","EndpointGenerationResultFailureModalController","$uibModalInstance","data","REPORT_FILE_NAME","downloadReport","reportData","JSON","stringify","toJSON","blob","Blob","type","url","URL","createObjectURL","a","document","createElement","href","download","endpointId","body","appendChild","click","removeChild","revokeObjectURL","deleteReport","deleteEndpointGenerationReport","close","dismiss","controller","ConfigureEndpointComponent","selectedSourceRepository","generationSettings","generationSettingsValid","showAdvancedSettings","handleValidityChange","isValid","endpointConfigurationSettingsValid","toggleAdvancedSettings","settings","getGraphqlGenerationSettings","CreateGraphqlEndpointViewCtrl","$location","sourceRepositories","previousSelectedSourceRepository","wizardModel","currentStep","onSelectedSourceRepositoryChange","selectedRepository","openConfirmationModal","message","confirmButtonKey","updateSourceRepository","value","createEndpointConfig","setupWizard","activateStep","step","setStepActive","setCurrentStep","onStepClick","isAPreviousStep","Wizard","addStep","SelectSchemaSourceStep","ConfigureEndpointStep","GenerateEndpointStep","getActiveStep","GENERATE_ENDPOINT","generateFromGraphqlShapes","generateFromOntologies","endpointCreateRequest","toCreateEndpointFromShapesRequest","generateEndpointFromGraphqlShapes","endpointGenerationReportList","endpointGenerated","toCreateEndpointFromOwlRequest","generateEndpointFromOwl","endpointGenerationReport","generateEndpointFromOntologies","PREVIOUS_ENDPOINT_CREATION_STEP","onPreviousEndpointCreationStep","previousStep","NEXT_ENDPOINT_CREATION_STEP","onNextEndpointCreationStep","nextStep","CANCEL_ENDPOINT_CREATION","onCancelEndpointCreation","path","ENDPOINT_MANAGEMENT","FINISH_GENERATION_WORKFLOW","onFinishEndpointGeneration","EXPLORE_ENDPOINT_IN_PLAYGROUND","endpointInfo","resolvePlaygroundUrlWithEndpoint","setSelectedEndpoint","window","open","OPEN_ENDPOINT_GENERATION_REPORT","windowClass","size","backdrop","keyboard","resolve","result","$watch","getActiveRepositoryObject","repositoryObject","onInit","unsubscribeAll","setupSourceRepositories","getRepositoriesAsSelectMenuOptions","getLocalReadableGraphdbRepositories","repo"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=99448;export const __webpack_ids__=[99448];export const __webpack_modules__={64088:(e,t,n)=>{n.d(t,{A:()=>r});var a=a||{};a.SingleChild={addPlaceholders:function e(t,n){if(t.children){for(var a=0;a<t.children.length;a++)e(t.children[a]);if(1===t.children.length){var r=1.2*t.size;n&&(r=.1*t.children[0].size),t.children.push({name:"placeholder",size:r})}}},removePlaceholders:function e(t){for(var n=t.length-1;n>=0;n--){var a=t[n];"placeholder"===a.data.name?t.splice(n,1):a.children&&e(a.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.children&&1===n.children.length){var a=n.x-n.children[0].x;n.children[0].x+=a,r(n.children[0],a)}}function r(e,t){if(e.children)for(var n=0;n<e.children.length;n++)e.children[n].x+=t,r(e.children[n],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,n=e[0].y,a=0;a<e.length;a++){var r=e[a];r.x-=t,r.y-=n}}};const r=a},88141:(e,t,n)=>{n.d(t,{A:()=>i}),n(62979);const a={selectAll:n(93462).selectAll};var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,function(e){n+=e.cssText}),n},generateBase64ImageSource:function(e){e||(e="svg");const t=a.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}};const i=r},99448:(e,t,n)=>{n.r(t);var a=n(75468),r=n(64088),i=n(19935),s=n(93462),c=n(88141);function l(e,t,n,l,o,d,h,u,f,p,g,v,x){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(h,m,y){!function(h){let m=!1;var y,A,S=s.pack().size([780,780]),C=s.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(s.interpolateHcl),R=s.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function E(){return R.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function P(){return"true"===g.get(v.CLASS_HIERARCHY_HIDE_PREFIXES)}function w(){var e=c.A.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=3.2.0-TR1");s.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),s.selectAll("g").style("opacity",1);var t=c.A.Export.generateBase64ImageSource("#classChart svg");s.select(this).attrs({href:t,download:"class-hierarchy-"+d.getActiveRepository()+".svg"})}h.hidePrefixes=P();var H,I,T=E();if(!h.classHierarchyData.classCount&&d.getActiveRepository()&&!d.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=g.get(`classHierarchy-selectedGraph-${d.getActiveRepository()}`);n.getClassHierarchyData(null!==t?t.contextID.uri:"").success(function(t,n,a){e.loader=!1,207===n&&u.warning(x.instant("graphexplore.update.diagram"),x.instant("graphexplore.repository.data.changed")),h.classHierarchyData=t,s.select("#download-svg").on("mouseover",w)}).error(function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(x.instant("graphexplore.error.request.failed",{name:p,error:getError(t)}))})}var L,D,k,N,b,F,z,O={};function U(n,c,d,u){D&&D(),k&&k(),s.selectAll("#main-group").remove(),T=E(),r.A.SingleChild.addPlaceholders(n,!0),(A=s.hierarchy(n)).sum(function(e){return e.size}),L=d||A,S(A);var g,v=A.descendants();L.isInFocusTransitive=!0,r.A.SingleChild.removePlaceholders(v),r.A.SingleChild.centerNodes(v),r.A.SingleChild.makePositionsRelativeToZero(v),y||(y=(0,a.A)().attr("class","d3-tip").customPosition(function(e,t){return{top:"inherit",bottom:l.innerHeight-t.clientY+"px",right:l.innerWidth-t.clientX+"px"}}).html(function(e){return e.data.name}),R.call(y));var x=T.selectAll("circle").data(v).enter().append("g");c.doFade&&x.each(function(e){i.A.Transition.fadeIn(s.select(this),550)});var P,w=[],N=x.append("circle").attr("class",function(e){return e.data.role}).attr("guide-selector",function(e){return"class-"+e.data.name}).style("fill",function(e){return e.children?C(e.depth):"#E0D0D0"}).each(function(e){if(e.circle=s.select(this),e.data.name!==p){var t=e.data.name;w.push({name:t}),O[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",function(t){c.noPrefixes||e.textHidden?y.show(e,t):y.hide(e)}),e.circle.on("mouseout",y.hide)}}).on("gdb-focus",(e,t)=>I(t)).on("gdb-zoom",(e,t)=>Z(t));function b(e){s.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),P=e}function $(){h.showClassInfoPanel=!1}w&&(w=_.uniqBy(w,"name"),h.flattenedClassNames=w);var F=i.A.Click.delayDblClick();s.selectAll(".parent, .topLevelParent, .child, .root").call(F),I=function(e){Z(e),e.data.name===p?($(),s.selectAll(".selected").classed("selected",!1)):(b(e),m||(h.selectedClass=P,h.showClassInfoPanel=!0),h.$on("sidePanelClosed",function(t){s.selectAll(".selected").classed("selected",e.selected=!1)}))},F.on("click",function(e,t){t.data.id&&l.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),y.hide(),I(t)}),F.on("dblclick",function(t,a){a!==n&&(y.hide(),b(a),e.$broadcast("goToDomainRangeGraphView",P,L),t.stopPropagation())});var z=0;R.on("wheel",function(e){y.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-z>100){z=t;var n="";e.deltaY<=-1?n="in":e.deltaY>=1&&(n="out");var a=e.target.__data__;if(a||(a=L),"in"===n){if(a!==L){for(;a.parent&&!a.parent.isInFocusTransitive;)a=a.parent;a.depth<L.depth&&(a=L)}if(a===L&&a.children){for(var r=a.children[0],i=1;i<a.children.length;i++)a.children[i].sortingRank>r.sortingRank&&(r=a.children[i]);r.children&&(a=r)}else a.children||(a=a.parent);Z(a,!0)}else"out"===n&&(a=L.parent)&&Z(a,!0);L.data.name===p&&l.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),Y()}});var U=T.selectAll("text").data(v).enter().append("text").attr("class",function(e){return e.children&&e.children.length?"label":"label child-label"}).each(function(e){e.textSel=s.select(this)});c.noPrefixes?(U.each(function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))}),U.style("font-size",function(e){return i.A.Text.calcFontSize(e.noPrefixName,e.r)}).text(function(e){return i.A.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)})):U.style("font-size",function(e){return i.A.Text.calcFontSize(e.data.name,e.r)}).text(function(e){return i.A.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)}),U.style("display",function(e){return e.parent&&e.parent.data===L.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")}),c.doFade&&!c.keepPrevState&&U.each(function(e){i.A.Transition.fadeIn(s.select(this),550)}),H=function(){function e(e){e&&N.each(function(t){+e===t.data.id&&I(t)})}var n=t.hash();l.onpopstate=function(t){t.state&&e(t.state.id)},e(n)};var B=T.selectAll("circle, text");function V(e,t){var n=800/e[2];g=e,B.attr("transform",function(t){return"translate("+(t.x-e[0])*n+","+(t.y-e[1])*n+")"}),N.attr("r",function(e){return e.r*n}),t&&U.each(function(e){e.data.fullName!==L.data.topLevelParentUri&&L.data.topLevelParentUri!==p||(e.textSel.style("display","none"),L.children&&L.children.length?_.each(L.children,function(e){e.textSel.style("display","inline")}):L.textSel.style("display","inline"),L.parent&&_.each(L.parent.children,function(e){e.data.name!==L.data.name&&e.textSel.style("display","inline")}))}),U.style("font-size",function(e){return c.noPrefixes?i.A.Text.calcFontSize(e.noPrefixName,e.r*n):i.A.Text.calcFontSize(e.data.name,e.r*n)}).text(function(e){return c.noPrefixes?i.A.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*n/3):i.A.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*n/3)})}function M(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function W(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function Z(e,t){if(o(function(){h.showExternalElements=e.data.name===p}),L!==e&&(e.data.id&&l.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,L!==e))){if(t&&($(),s.selectAll(".selected").classed("selected",!1)),L.parent)for(var n=L;n;)n.isInFocusTransitive=!1,n=n.parent;for(n=e;n;)n.isInFocusTransitive=!!n.children,n=n.parent;2*(L=e).r/(2*L.r+20)<.3||h.currentSliderValue>h.currentBrowserLimit?(V([L.x,L.y,M(L.r)]),U.each(function(e){W.call(this,e)})):s.transition().duration(f).tween("zoom",function(e){var t=s.interpolateZoom(g,[L.x,L.y,M(L.r)]);return function(e){V(t(e))}}).selectAll("text").each(W)}}V([L.x,L.y,M(L.r)],u),D=h.$on("rootFocus",function(){l.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),I(A)}),k=h.$on("classSearch",function(e){I(e)})}function Y(){const t=h.classHierarchyData.classCount;let n=g.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!n||n>t)&&(n=t,g.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,n)),e.$broadcast("classCount",t,n)}window.addEventListener("resize",Y),window.addEventListener("beforeunload",function e(){window.removeEventListener("resize",Y),window.removeEventListener("beforeunload",e)}),h.$watch("classHierarchyData",function(){N&&N(),b&&b(),F&&F(),z&&z();var e=P();if(h.classHierarchyData.classCount){Y();var t=_.cloneDeep(h.classHierarchyData);var n,a,r=s.hierarchy(t).descendants().sort(function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0});function d(e,t){const r={keepPrevState:!0,noPrefixes:P()};a=r.noPrefixes,U(n||e,r,L,!0),o(()=>{g.set(v.CLASS_HIERARCHY_SWITCH_PREFIXES,t),H(),m=!1},70)}function u(e,r,i){if(!e)return;g.set(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),n={name:p,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(r[t].data.id),r[t].parent===r[0]&&n.children.push(r[t].data);(function e(t){if(!t.children)return;const n=[];for(const e of t.children)s.has(e.id)&&n.push($.extend({},e));t.children=n;for(const n of t.children)e(n)})(n),i?(a=angular.isUndefined(a)?P():a,U(n,{noPrefixes:a})):d(t)}var i,c=g.get(v.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(c)u(c,r);else{var l={doFade:!0,keepPrevState:!0,noPrefixes:P()};U(t,l),H()}N=h.$watch("hidePrefixes",function(n){angular.isUndefined(n)||e?e=void 0:o(function(){m=!0,function(e){angular.isUndefined(e)||g.set(v.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(n),d(t,!0)},50)},!0),b=h.$watch("currentSliderValue",function(e){u(e,r,!0)},!0),z=h.$on("onEnterKeypressSearchAction",function(e){i&&I(i)}),F=h.$on("searchedClass",function(e,t){(i=O[t.name])&&I(i)})}},!0)}(h)}}}n(32150),angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",l),l.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]}};
|
|
2
|
-
//# sourceMappingURL=99448.314018d0afb1af150ddf.bundle.js.map
|