graphdb-workbench 3.2.0-TR1 → 3.2.0-TR2
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.4c26c8da50c790b0f39a.bundle.js → 12396.9a7f2862146b6f9adcb1.bundle.js} +2 -2
- package/dist/{12396.4c26c8da50c790b0f39a.bundle.js.map → 12396.9a7f2862146b6f9adcb1.bundle.js.map} +1 -1
- 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.ce8d657c04f3401b9539.bundle.js → 15535.7b170e17ee0a58970ab6.bundle.js} +2 -2
- package/dist/{15535.ce8d657c04f3401b9539.bundle.js.map → 15535.7b170e17ee0a58970ab6.bundle.js.map} +1 -1
- package/dist/{16162.8f482628d1b34d41d496.bundle.js → 16162.67e7c1f5f313481b1e80.bundle.js} +2 -2
- package/dist/{16162.8f482628d1b34d41d496.bundle.js.map → 16162.67e7c1f5f313481b1e80.bundle.js.map} +1 -1
- 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.c42f9d1d913c36e46931.bundle.js → 20287.dd5bc263fe26adf34965.bundle.js} +2 -2
- package/dist/{20287.c42f9d1d913c36e46931.bundle.js.map → 20287.dd5bc263fe26adf34965.bundle.js.map} +1 -1
- package/dist/{21136.199caea09a1c9ad90393.bundle.js → 21136.b7efcb40fb956ff1109c.bundle.js} +2 -2
- package/dist/{21136.199caea09a1c9ad90393.bundle.js.map → 21136.b7efcb40fb956ff1109c.bundle.js.map} +1 -1
- package/dist/{21142.b690e00c8884fddb2bb3.bundle.js → 21142.ec45fad4d52b36961d17.bundle.js} +2 -2
- package/dist/{21142.b690e00c8884fddb2bb3.bundle.js.map → 21142.ec45fad4d52b36961d17.bundle.js.map} +1 -1
- package/dist/{21170.d5e3041241741d21080c.bundle.js → 21170.7832554eab9eaade6ffb.bundle.js} +2 -2
- package/dist/{21170.d5e3041241741d21080c.bundle.js.map → 21170.7832554eab9eaade6ffb.bundle.js.map} +1 -1
- package/dist/{21195.267abc9d42b711d0f17a.bundle.js → 21195.caae6cc33d755ad52df4.bundle.js} +2 -2
- package/dist/{21195.267abc9d42b711d0f17a.bundle.js.map → 21195.caae6cc33d755ad52df4.bundle.js.map} +1 -1
- package/dist/{25747.4e00941ec221c4d6ce8f.bundle.js → 25747.c01110e23b922cdd3d9e.bundle.js} +2 -2
- package/dist/{25747.4e00941ec221c4d6ce8f.bundle.js.map → 25747.c01110e23b922cdd3d9e.bundle.js.map} +1 -1
- package/dist/{27580.f71ebbc69dd1c7785ef3.bundle.js → 27580.5a421770ab66d2dedc37.bundle.js} +2 -2
- package/dist/{27580.f71ebbc69dd1c7785ef3.bundle.js.map → 27580.5a421770ab66d2dedc37.bundle.js.map} +1 -1
- package/dist/{28050.8ca1fa760c892bfc5466.bundle.js → 28050.6960a4a0961a07a94743.bundle.js} +2 -2
- package/dist/28050.6960a4a0961a07a94743.bundle.js.map +1 -0
- package/dist/{31636.e34ccc2d6f2dec577446.bundle.js → 31636.54e2817f8ae3998a34b3.bundle.js} +2 -2
- package/dist/{31636.e34ccc2d6f2dec577446.bundle.js.map → 31636.54e2817f8ae3998a34b3.bundle.js.map} +1 -1
- package/dist/{32489.97fac2c3daa49b143d13.bundle.js → 32489.f7a2dc39cd61c2cd8874.bundle.js} +2 -2
- package/dist/{32489.97fac2c3daa49b143d13.bundle.js.map → 32489.f7a2dc39cd61c2cd8874.bundle.js.map} +1 -1
- package/dist/33524.79f7e98ef89a46d4aa58.bundle.js +2 -0
- package/dist/33524.79f7e98ef89a46d4aa58.bundle.js.map +1 -0
- package/dist/{34495.cfa15bda8009fa37c6ff.bundle.js → 34495.be67c06c39909114bbe4.bundle.js} +2 -2
- package/dist/{34495.cfa15bda8009fa37c6ff.bundle.js.map → 34495.be67c06c39909114bbe4.bundle.js.map} +1 -1
- package/dist/{38360.0a90e77042876c86b279.bundle.js → 38360.efec913bb97c3b8588a4.bundle.js} +2 -2
- package/dist/{38360.0a90e77042876c86b279.bundle.js.map → 38360.efec913bb97c3b8588a4.bundle.js.map} +1 -1
- package/dist/{38644.3a0954c798ec413a3810.bundle.js → 38644.800252af49cd67310834.bundle.js} +2 -2
- package/dist/{38644.3a0954c798ec413a3810.bundle.js.map → 38644.800252af49cd67310834.bundle.js.map} +1 -1
- package/dist/{38843.5ef7a063337524ce3bb2.bundle.js → 38843.29e34a5e5293cee51566.bundle.js} +2 -2
- package/dist/{38843.5ef7a063337524ce3bb2.bundle.js.map → 38843.29e34a5e5293cee51566.bundle.js.map} +1 -1
- package/dist/{39518.4199684f3273d29d9105.bundle.js → 39518.0ca97879b92271d7c5e2.bundle.js} +2 -2
- package/dist/{39518.4199684f3273d29d9105.bundle.js.map → 39518.0ca97879b92271d7c5e2.bundle.js.map} +1 -1
- package/dist/{39539.c23e4878044d73f2505b.bundle.js → 39539.7cea6717cc3a5ba91617.bundle.js} +2 -2
- package/dist/{39539.c23e4878044d73f2505b.bundle.js.map → 39539.7cea6717cc3a5ba91617.bundle.js.map} +1 -1
- package/dist/{41453.8bb4c783da2c5077a6e9.bundle.js → 41453.4ae219d972a187c36bfc.bundle.js} +2 -2
- package/dist/{41453.8bb4c783da2c5077a6e9.bundle.js.map → 41453.4ae219d972a187c36bfc.bundle.js.map} +1 -1
- package/dist/41621.624ba3d867bc05b5c3cc.bundle.js +2 -0
- package/dist/41621.624ba3d867bc05b5c3cc.bundle.js.map +1 -0
- package/dist/{42129.f44b7b20f9cd376c6e59.bundle.js → 42129.0314e45b4b818b01b71f.bundle.js} +2 -2
- package/dist/{42129.f44b7b20f9cd376c6e59.bundle.js.map → 42129.0314e45b4b818b01b71f.bundle.js.map} +1 -1
- package/dist/{44444.ad66c8256bc5b653de1a.bundle.js → 44444.02026ff20e2a843dc05b.bundle.js} +2 -2
- package/dist/{44444.ad66c8256bc5b653de1a.bundle.js.map → 44444.02026ff20e2a843dc05b.bundle.js.map} +1 -1
- 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.1fb5abd075ba11a7e93c.bundle.js → 55862.5e8602827fbf72e60cc2.bundle.js} +2 -2
- package/dist/{55862.1fb5abd075ba11a7e93c.bundle.js.map → 55862.5e8602827fbf72e60cc2.bundle.js.map} +1 -1
- package/dist/{58306.ba9545cbaee021ebcbce.bundle.js → 58306.94b9336f68d11bdd72f0.bundle.js} +2 -2
- package/dist/{58306.ba9545cbaee021ebcbce.bundle.js.map → 58306.94b9336f68d11bdd72f0.bundle.js.map} +1 -1
- 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.7d4966e0a22ba655f1b8.bundle.js → 67888.772326168aed83cbad9c.bundle.js} +2 -2
- package/dist/67888.772326168aed83cbad9c.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.bac50d0011665a85b6cd.bundle.js → 72379.8a3290df05f18f8c65bd.bundle.js} +2 -2
- package/dist/{72379.bac50d0011665a85b6cd.bundle.js.map → 72379.8a3290df05f18f8c65bd.bundle.js.map} +1 -1
- package/dist/{73667.3dd4f377e7ef54fd8758.bundle.js → 73667.52fdbdadddafe9e9559b.bundle.js} +2 -2
- package/dist/{73667.3dd4f377e7ef54fd8758.bundle.js.map → 73667.52fdbdadddafe9e9559b.bundle.js.map} +1 -1
- package/dist/{73793.6d80d47c26ed60a587fd.bundle.js → 73793.7e812bab1754ddd5efb5.bundle.js} +2 -2
- package/dist/{73793.6d80d47c26ed60a587fd.bundle.js.map → 73793.7e812bab1754ddd5efb5.bundle.js.map} +1 -1
- package/dist/{75282.88819e851ed18720b275.bundle.js → 75282.2f97d3a7d7f3fdd7aebf.bundle.js} +2 -2
- package/dist/{75282.88819e851ed18720b275.bundle.js.map → 75282.2f97d3a7d7f3fdd7aebf.bundle.js.map} +1 -1
- package/dist/{75849.51ade15bf0074eab76f3.bundle.js → 75849.bd0bdefa903741034a71.bundle.js} +2 -2
- package/dist/{75849.51ade15bf0074eab76f3.bundle.js.map → 75849.bd0bdefa903741034a71.bundle.js.map} +1 -1
- 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.6db42146a120459280e4.bundle.js → 78250.73e3013c5b2ebdddbf38.bundle.js} +2 -2
- package/dist/{78250.6db42146a120459280e4.bundle.js.map → 78250.73e3013c5b2ebdddbf38.bundle.js.map} +1 -1
- package/dist/78681.7b1c9100e03c2346550a.bundle.js +2 -0
- package/dist/78681.7b1c9100e03c2346550a.bundle.js.map +1 -0
- package/dist/{79329.5a5cbfa466d1c62af915.bundle.js → 79329.3d912887ba7e96090fb4.bundle.js} +2 -2
- package/dist/{79329.5a5cbfa466d1c62af915.bundle.js.map → 79329.3d912887ba7e96090fb4.bundle.js.map} +1 -1
- 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.93a59d42bf8d49aaac8e.bundle.js} +2 -2
- package/dist/{82926.93dbf44f2bcccba34e9b.bundle.js.map → 82926.93a59d42bf8d49aaac8e.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.d9049833d076191d3e1a.bundle.js → 9062.3541de664710a36fdac7.bundle.js} +2 -2
- package/dist/{9062.d9049833d076191d3e1a.bundle.js.map → 9062.3541de664710a36fdac7.bundle.js.map} +1 -1
- 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.314018d0afb1af150ddf.bundle.js → 99448.384b74c734331e5f8909.bundle.js} +2 -2
- package/dist/{99448.314018d0afb1af150ddf.bundle.js.map → 99448.384b74c734331e5f8909.bundle.js.map} +1 -1
- 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/api/services/utils/routing-utils.d.ts +1 -1
- package/dist/assets/configuration.default.json +5 -1
- package/dist/index.html +10 -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.2bd696723af2573e8bb7.js +3 -0
- package/dist/{legacyWorkbench.57fc12c172f6350ac4c5.js.map → legacyWorkbench.2bd696723af2573e8bb7.js.map} +1 -1
- package/dist/{main.b9a83da68ffc43c91de0.js → main.be51ba05166a17f051a0.js} +3 -3
- package/dist/main.be51ba05166a17f051a0.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/styleguide.9451f25d197464f4079c.js +2 -0
- package/dist/styleguide.9451f25d197464f4079c.js.map +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/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/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/28050.8ca1fa760c892bfc5466.bundle.js.map +0 -1
- package/dist/33524.35fe079bcb99a78babaf.bundle.js +0 -2
- package/dist/33524.35fe079bcb99a78babaf.bundle.js.map +0 -1
- package/dist/41621.68c5ebc2104a62e2b41d.bundle.js +0 -2
- package/dist/41621.68c5ebc2104a62e2b41d.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/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.map +0 -1
- package/dist/69724.1a97fa707ee1379409e9.bundle.js +0 -2
- package/dist/69724.1a97fa707ee1379409e9.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/78681.39694d37c0f75ea04df6.bundle.js +0 -2
- package/dist/78681.39694d37c0f75ea04df6.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/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/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.2bd696723af2573e8bb7.js.LICENSE.txt} +0 -0
- /package/dist/{main.b9a83da68ffc43c91de0.js.LICENSE.txt → main.be51ba05166a17f051a0.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"82896.9aed45baf67510717c6f.bundle.js","mappings":"+LAGO,MAAMA,EAMTC,KAAO,GAMPC,OAAS,GAMTC,MAAQ,GAMRC,aAAc,EAKdC,OAKAC,QAKAC,OAMAC,WAAY,EAKZC,OAKAC,QAAS,EAMTC,WAAAA,CAAYC,GACRC,KAAKZ,KAAOW,EAAQE,IACpBD,KAAKX,OAASU,EAAQG,MACtBF,KAAKV,MAAQS,EAAQI,KACrBH,KAAKT,YAAcQ,EAAQK,WAC3BJ,KAAKR,OAASO,EAAQM,MACtBL,KAAKP,QAAUM,EAAQO,OACvBN,KAAKN,OAAkC,iBAAl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bench/src/js/angular/models/dynamic-form/dynamic-form-field.js","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/models/graphql/graphql-endpoint-overview-list.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/graphql-endpoint-configuration-setting.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/graphql/graphql-schema-shapes.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/directives/select-schema-sources.directive.js"],"sourcesContent":["/**\n * A model representing a dynamic form field used by the dynamic form component.\n */\nexport class DynamicFormField {\n /**\n * The unique key of the setting.\n * @type {string}\n * @private\n */\n _key = '';\n /**\n * The label displayed for the setting.\n * @type {string}\n * @private\n */\n _label = '';\n /**\n * The type of the field (e.g., string, boolean, select, etc.).\n * @type {string}\n * @private\n */\n _type = '';\n /**\n * Whether the value is a collection.\n * @type {boolean}\n * @private\n */\n _collection = false;\n /**\n * The current value of the setting.\n * @private\n */\n _value;\n /**\n * The possible values (used for select-type fields).\n * @private\n */\n _values;\n /**\n * A regular expression or its string representation for validating the value.\n * @private\n */\n _regex;\n /**\n * Whether the field is required.\n * @type {boolean}\n * @private\n */\n _required = false;\n /**\n * The group of the setting. Used for grouping settings in the form.\n * @private\n */\n _group;\n /**\n * Whether the setting is hidden.\n * @type {boolean}\n */\n hidden = false;\n\n /**\n * Creates an instance of GraphqlEndpointConfigurationSetting.\n * @param {Object} options - The setting options.\n */\n constructor(options) {\n this._key = options.key;\n this._label = options.label;\n this._type = options.type;\n this._collection = options.collection;\n this._value = options.value;\n this._values = options.values;\n this._regex = typeof options.regex === 'string' ? new RegExp(options.regex) : options.regex;\n this._required = options.required;\n this._group = options.group;\n this.hidden = options.hidden;\n }\n\n get key() {\n return this._key;\n }\n\n set key(value) {\n this._key = value;\n }\n\n get label() {\n return this._label;\n }\n\n set label(value) {\n this._label = value;\n }\n\n get type() {\n return this._type;\n }\n\n set type(value) {\n this._type = value;\n }\n\n get collection() {\n return this._collection;\n }\n\n set collection(value) {\n this._collection = value;\n }\n\n get value() {\n return this._value;\n }\n\n set value(value) {\n this._value = value;\n }\n\n get values() {\n return this._values;\n }\n\n set values(value) {\n this._values = value;\n }\n\n get regex() {\n return this._regex;\n }\n\n set regex(value) {\n this._regex = typeof value === 'string' ? new RegExp(value) : value;\n }\n\n get required() {\n return this._required;\n }\n\n set required(value) {\n this._required = value;\n }\n\n get group() {\n return this._group;\n }\n\n set group(value) {\n this._group = value;\n }\n\n get hidden() {\n return this._hidden;\n }\n\n set hidden(value) {\n this._hidden = value;\n }\n}\n","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","export const ENDPOINT_GENERATION_STATUS = {\n NONE: 'NONE',\n SUCCESS: 'SUCCESS',\n ERROR: 'ERROR'\n};\n\nexport class GraphqlEndpointOverviewList {\n /**\n * @type {GraphqlEndpointOverview[]}\n * @private\n */\n _endpointList = [];\n\n constructor(data) {\n this._endpointList = data || [];\n }\n\n get endpointList() {\n return this._endpointList;\n }\n\n set endpointList(value) {\n this._endpointList = value;\n }\n}\n\nexport class GraphqlEndpointOverview {\n /**\n * @type {string}\n * @private\n */\n _label;\n\n /**\n * @type {string}\n * @private\n */\n _uri;\n\n /**\n * @type {string}\n * @private\n */\n _status;\n\n constructor(data) {\n this._label = data.label || '';\n this._uri = data.uri || '';\n this._status = data.status || ENDPOINT_GENERATION_STATUS.NONE;\n }\n\n get label() {\n return this._label;\n }\n\n set label(value) {\n this._label = value;\n }\n\n get uri() {\n return this._uri;\n }\n\n set uri(value) {\n this._uri = value;\n }\n\n get status() {\n return this._status;\n }\n\n set status(value) {\n this._status = value;\n }\n}\n","import {DynamicFormField} from \"../dynamic-form/dynamic-form-field\";\n\n/**\n * Enum for configuration types.\n * @readonly\n * @enum {string}\n */\nexport const CONFIG_TYPE = {\n STRING: 'string',\n TEXT: 'text',\n BOOLEAN: 'boolean',\n JSON: 'json'\n}\n\nexport class GraphqlEndpointConfigurationSettings {\n /**\n * Endpoint configuration settings model.\n * @type {DynamicFormModel}\n * @private\n */\n _settings;\n\n /**\n * Flag indicating if the settings are present.\n * @private\n */\n _hasSettings;\n\n constructor(data) {\n this._settings = data;\n this._hasSettings = this._settings ? this._settings.models.length > 0 : false;\n }\n\n /**\n * Returns a flat JSON representation of the settings where the keys are the setting keys and the values are the\n * setting values.\n * @returns {Object.<string, *>}\n */\n toFlatJSON() {\n const settings = {};\n\n const processField = (field) => {\n if (field.collection) {\n settings[field.key] = field.value;\n } else if (field.type === 'select') {\n settings[field.key] = field.value.value;\n } else {\n settings[field.key] = field.value;\n }\n // JSON type field value is string, and the backend doesn't expect it to be parsed, so we send it as is\n };\n\n this._settings.models.forEach((model) => {\n if (model instanceof DynamicFormField) {\n processField(model);\n } else {\n // Process both visible and hidden fields\n [...model.fields, ...model.hiddenFields].forEach(processField);\n }\n });\n\n return settings;\n }\n\n get hasSettings() {\n return this._hasSettings;\n }\n\n get settings() {\n return this._settings;\n }\n\n set settings(value) {\n this._settings = value;\n this._hasSettings = this._settings.models.length > 0;\n }\n}\n","export class GraphqlSchemaShapes {\n /**\n * @type {GraphqlSchemaShape[]}\n */\n _shapes;\n /**\n * @type {number}\n * @private\n */\n _size;\n /**\n * @type {boolean}\n * @private\n */\n _isEmpty;\n\n constructor(data) {\n this._shapes = data || [];\n this._size = this.shapes.length;\n this._isEmpty = this.shapes.length === 0;\n }\n\n /**\n * Process the shapes with the given predicate.\n * @param {function} predicate The predicate to apply to each shape.\n * @returns {GraphqlSchemaShape[]}\n */\n processShapes(predicate) {\n return this.shapes.map(predicate);\n }\n\n /**\n * Get the ids of the shapes.\n * @returns {string[]} The ids of the shapes.\n */\n getShapeIds() {\n return this.shapes.map(shape => shape.id);\n }\n\n get isEmpty() {\n return this._isEmpty;\n }\n\n get size() {\n return this._size;\n }\n\n get shapes() {\n return this._shapes;\n }\n\n set shapes(value) {\n this._shapes = value;\n this._size = this.shapes.length;\n this._isEmpty = this.shapes.length === 0;\n }\n\n toJSON() {\n return this.shapes.map(shape => shape.id);\n }\n}\n\nexport class GraphqlSchemaShape {\n /**\n * @type {string}\n */\n _id;\n /**\n * @type {string}\n */\n _name;\n /**\n * @type {string}\n */\n _label;\n /**\n * @type {string}\n */\n _description;\n\n constructor(data) {\n this._id = data.id;\n this._name = data.name;\n this._label = data.label;\n this._description = data.description;\n }\n\n get id() {\n return this._id;\n }\n\n set id(value) {\n this._id = value;\n }\n\n get name() {\n return this._name;\n }\n\n set name(value) {\n this._name = value;\n }\n\n get label() {\n return this._label;\n }\n\n set label(value) {\n this._label = value;\n }\n\n get description() {\n return this._description;\n }\n\n set description(value) {\n this._description = value;\n }\n}\n","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"],"names":["DynamicFormField","_key","_label","_type","_collection","_value","_values","_regex","_required","_group","hidden","constructor","options","this","key","label","type","collection","value","values","regex","RegExp","required","group","_hidden","ShuttleMultiselect","restrict","scope","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","ENDPOINT_GENERATION_STATUS","NONE","SUCCESS","ERROR","GraphqlEndpointOverviewList","_endpointList","data","endpointList","GraphqlEndpointOverview","_uri","_status","uri","status","CONFIG_TYPE","STRING","TEXT","BOOLEAN","JSON","GraphqlEndpointConfigurationSettings","_settings","_hasSettings","models","toFlatJSON","settings","processField","field","model","fields","hiddenFields","hasSettings","GraphqlSchemaShapes","_shapes","_size","_isEmpty","shapes","processShapes","predicate","map","getShapeIds","shape","isEmpty","size","toJSON","GraphqlSchemaShape","_id","_name","_description","name","description","SelectSchemaSourcesComponent","$q","ModalService","$translate","toastr","$repositories","GraphqlContextService","GraphqlService","RDF4JRepositoriesService","stepDefinition","element","schemaSourceType","SchemaSourceType","ontologyShaclShapeSource","OntologyShaclShapeSource","shapesMultiselectLabels","availableOptionsTitle","availableOptionsFilter","selectedOptionsTitle","selectedOptionsCount","selectTooltip","selectAllLabel","selectAllTooltip","deselectTooltip","deselectAllLabel","deselectAllTooltip","graphsMultiselectLabels","endpointConfiguration","undefined","prefixList","loadingPrefixes","graphs","shaclShapeGraphs","graphqlSchemaShapes","allGraphs","loadingGraphs","cancel","title","instant","confirmDeleteMessage","openConfirmation","cancelEndpointCreation","next","nextEndpointCreationStep","onSchemaSourceTypeChange","generateFromShaclShapes","ontotlogyShaclShapeSource","USE_ALL_GRAPHS","selectedGraphs","USE_SHACL_SHAPE_GRAPH","PICK_GRAPHS","GraphListOptions","onOntologyShaclShapeSourceChange","owlOrShaclSourceType","canProceed","hasSelectedShapes","hasSelectedGraphqlSchemaShapes","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","getNewEndpoint","onDestroy","subscribeToEvents","subscribe","GraphqlEventName","SOURCE_REPOSITORY_UPDATED","newEndpoint","onEndpointConfigCreated"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"83136.56d692623cbc60048e03.bundle.js","mappings":"oMAOO,MAAMA,EAAO,CAChBC,KAAM,OACNC,OAAQ,UASZ,SAASC,EAAqBC,GAE1B,IAAIC,EAAeL,EAAKC,KAKpBK,EAAqB,GAOrBC,EAAsB,GAMtBC,EAAS,GAETC,GAAc,EAEdC,EAAsB,GAE1B,MAAO,CACHC,kBAyEJ,SAA2BC,GACvBP,EAAeO,EACfR,EAAoBS,SAAS,qBAAsBC,IACvD,EA3EIA,iBACAC,qBAsFJ,SAA8BC,GAC1B,OAAOZ,EAAoBa,cAAc,qBAAuBL,GAAgBI,EAASJ,GAC7F,EAvFIM,WACAC,QAmHJ,SAAiBC,GACb,MAAMC,EAAQH,IACdG,EAAMC,KAAKF,GACXG,EAAYF,GACZjB,EAAoBS,SAAS,aAAaW,EAAAA,EAAAA,WAAUJ,GACxD,EAvHIG,cACAE,eAuGJ,SAAwBT,GACpB,OAAOZ,EAAoBa,cAAc,eAAiBI,GAAUL,EAASK,GACjF,EAxGIK,uBACAC,wBAoIJ,SAAiCC,GAC7BtB,EAAqBsB,EACrBxB,EAAoBS,SAAS,2BAA4Ba,KACzDtB,EAAoBS,SAAS,mBAAoBgB,IACrD,EAvIIC,2BAuJJ,SAAoCd,GAChC,OAAOZ,EAAoBa,cAAc,2BAA6Bc,GAAsBf,EAASe,GACzG,EAxJIF,eACAG,mBA6MJ,SAA4BhB,GACxB,OAAOZ,EAAoBa,cAAc,mBAAqBgB,GAAcjB,EAASiB,GACzF,EA9MIC,iBAsCJ,SAA0BC,GACtB1B,EAAc0B,EACd/B,EAAoBS,SAAS,oBAAqBuB,IACtD,EAxC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EAAOpD,UAAY2N,EAAAA,0BAA0BC,qBAAqBJ,EAAcC,GAC5EA,IACArK,EAAO+E,SAAWrD,EAAAA,YAAY0G,WAGlCmC,EAAAA,0BAA0BE,kBAAkBzK,EAAOpD,UAAWwN,EAAcC,GAEhFE,EAAAA,0BAA0BG,uBAAuB1K,EAAOpD,WACxD2N,EAAAA,0BAA0BI,6BAA6B3K,EAAOpD,WAC9DsJ,IACAb,OASJ6E,EAAcjO,KAAKnB,EAAqBkC,oBAAqBF,GAAekD,EAAOlD,WAAaA,IAChGoN,EAAcjO,KAAKnB,EAAqBY,qBAAqB,IAAMsE,EAAOpD,UAAY,IAAIqH,EAAAA,4BAO1FjE,EAAOqB,IAAI,WALkBuJ,KACzBV,EAAc5L,QAASuM,GAAiBA,QAOxD,CAxTAzL,QACKC,OAAO,2DANI,CACZ,8DACA,oEAKCoC,UAAU,qBAAsB0B,GAErCA,EAA4B5D,QAAU,CAAC,WAAY,uB,aCzBnD,SAASuL,EAAsC9K,EAAQ+K,EAAmBC,EAAYC,EAAQ1I,GAE1FvC,EAAOuC,QAAUA,EAGjBvC,EAAOgB,MAAQ,KACX+J,EAAkBG,WAGtBlL,EAAOmL,gBAAkB,KACrBC,UAAUC,UAAUC,UAAUtL,EAAOuC,SAChCgJ,KAAK,KACFN,EAAOO,QAAQR,EAAWS,QAAQ,6CAClCzL,EAAOgB,SACP0K,IACAC,QAAQC,MAAM,wBAAyBF,KAGvD,CAxBAtM,QACKC,OAAO,4EAA6E,IACpF6C,WAAW,wCAAyC4I,GAEzDA,EAAsCvL,QAAU,CAAC,SAAU,oBAAqB,aAAc,SAAU,U","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/import/services/import-context.service.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-status-info.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/import/sorting-type.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-message.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/utils/string-utils.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-resource-tree.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-resource-message-dialog.controller.js"],"sourcesContent":["/**\n * The import service is implemented using many controllers and directives that share common variables.\n * The purpose of the ImportContextService is to hold data shared between them.\n */\nimport {cloneDeep} from \"lodash\";\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\n\nexport const TABS = {\n USER: 'user',\n SERVER: 'server'\n};\n\nangular\n .module('graphdb.framework.import.services.importcontext', [])\n .factory('ImportContextService', ImportContextService);\n\nImportContextService.$inject = ['EventEmitterService'];\n\nfunction ImportContextService(EventEmitterService) {\n\n let _activeTabId = TABS.USER;\n /**\n * @type {ImportResource[]}\n * @private\n */\n let _importedResources = [];\n\n /**\n *\n * @type {ImportResource[]}\n * @private\n */\n let _resourcesForUpload = [];\n\n /**\n * @type {*[]}\n * @private\n */\n let _files = [];\n\n let _showLoader = true;\n\n let _selectedFilesNames = [];\n\n return {\n updateActiveTabId,\n getActiveTabId,\n onActiveTabIdUpdated,\n getFiles,\n addFile,\n updateFiles,\n onFilesUpdated,\n getImportedResources,\n updateImportedResources,\n onImportedResourcesUpdated,\n getResources,\n onResourcesUpdated,\n updateShowLoader,\n getShowLoader,\n onShowLoaderUpdated,\n updateSelectedFilesNames,\n getSelectedFilesNames,\n onSelectedFilesNamesUpdated,\n updateResourceForUpload,\n getResourceForUpload,\n updateResourcesForUpload,\n getResourcesForUpload,\n onResourcesForUploadChanged\n };\n\n /**\n * @param {string[]} selectedFilesNames\n */\n function updateSelectedFilesNames(selectedFilesNames) {\n _selectedFilesNames = cloneDeep(selectedFilesNames);\n EventEmitterService.emitSync('selectedFilesNamesUpdated', getSelectedFilesNames());\n }\n\n function getSelectedFilesNames() {\n return cloneDeep(_selectedFilesNames);\n }\n\n /**\n * Subscribes to the 'selectedFilesNamesUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onSelectedFilesNamesUpdated(callback) {\n return EventEmitterService.subscribeSync('selectedFilesNamesUpdated', (selectedFilenames) => callback(selectedFilenames));\n }\n\n /**\n * @param {boolean} showLoader\n */\n function updateShowLoader(showLoader) {\n _showLoader = showLoader;\n EventEmitterService.emitSync('showLoaderUpdated', getShowLoader());\n }\n\n function getShowLoader() {\n return _showLoader;\n }\n\n /**\n * Subscribes to the 'showLoaderUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onShowLoaderUpdated(callback) {\n return EventEmitterService.subscribeSync('showLoaderUpdated', (showLoader) => callback(showLoader));\n }\n\n /**\n * Updates the active tab id of import page.\n * @param {string} activeTabId - the new view of import page. Its value have to be one of {@link OPERATION}\n */\n function updateActiveTabId(activeTabId) {\n _activeTabId = activeTabId;\n EventEmitterService.emitSync('activeTabIdUpdated', getActiveTabId());\n }\n\n function getActiveTabId() {\n return _activeTabId;\n }\n\n /**\n * Subscribes to the 'activeTabUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onActiveTabIdUpdated(callback) {\n return EventEmitterService.subscribeSync('activeTabIdUpdated', (activeTabId) => callback(activeTabId));\n }\n\n /**\n * Updates the list of files.\n * Emits the 'filesUpdated' event when the list of files is updated.\n * The 'filesUpdated' event contains the new list of files.\n * @param {*[]} files\n */\n function updateFiles(files) {\n _files = cloneDeep(files);\n EventEmitterService.emitSync('filesUpdated', getFiles());\n }\n\n /**\n * Subscribes to the 'filesUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onFilesUpdated(callback) {\n return EventEmitterService.subscribeSync('filesUpdated', (files) => callback(files));\n }\n\n /**\n * Adds a file to the list of files.\n * Emits the 'fileAdded' event when the file is added.\n * The 'fileAdded' event contains the added file.\n * @param {object} file - The file to be added.\n */\n function addFile(file) {\n const files = getFiles();\n files.push(file);\n updateFiles(files);\n EventEmitterService.emitSync('fileAdded', cloneDeep(file));\n }\n\n /**\n * Gets the list of files.\n * @return {*[]} - The list of files.\n */\n function getFiles() {\n return cloneDeep(_files);\n }\n\n /**\n * Updates the imported resource. Emits the 'resourcesUpdated' and 'importedResourcesUpdated' events when the resources are updated.\n * The 'resourcesUpdated' event contains the resources that are currently uploading, resources that have been uploaded but not yet returned by the backend,\n * and resources that are either imported or being imported at the moment.\n * @param {ImportResource[]} importResources\n */\n function updateImportedResources(importResources) {\n _importedResources = importResources;\n EventEmitterService.emitSync('importedResourcesUpdated', getImportedResources());\n EventEmitterService.emitSync('resourcesUpdated', getResources());\n }\n\n /**\n * Gets the imported resources.\n * @return {ImportResource[]} - The imported resources.\n */\n function getImportedResources() {\n return cloneDeep(_importedResources) || [];\n }\n\n /**\n * Subscribes to the 'importedResourcesUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} the unsubscribe function.\n */\n function onImportedResourcesUpdated(callback) {\n return EventEmitterService.subscribeSync('importedResourcesUpdated', (importedResources) => callback(importedResources));\n }\n\n /**\n * Gets the resources.\n * @return {ImportResource[]} - the resources that are currently uploading, resources that have been uploaded but not yet returned by the backend,\n * and resources that are either imported or being imported at the moment.\n */\n function getResources() {\n const importResources = getImportedResources();\n let resourcesForUpload = getResourcesForUpload();\n\n const uploadedResources = [];\n const overridingForUploadResource = [];\n\n importResources.forEach(({name: importResourceName}) => {\n const foundResourceForUpdate = resourcesForUpload.find(({name: nameOfUploadingResource}) => nameOfUploadingResource === importResourceName);\n if (foundResourceForUpdate) {\n if (foundResourceForUpdate.status === ImportResourceStatus.UPLOADED) {\n // If an already uploaded resource is found in the list of imported resources, it means we can remove it from the upload list.\n // It is removed here, rather than after the upload is finished, to ensure that the backend has returned it. Otherwise, it may temporarily disappear.\n uploadedResources.push(foundResourceForUpdate);\n } else {\n // If a resource for upload is not uploaded, but it is in list of imported resources, it means that it is uploaded with overwrite option, and we have to show instance that\n // is uploading at the moment.\n // So we add it to list of overwriting resources later we will skip it from the resulted list with resource.\n\n // If a resource is in the list of imported resources but is in the list of resources for upload, it means it was uploaded with the overwrite option,\n // and we need to show the instance that is currently uploading.\n // Therefore, we add it to the list of overwriting resources, so it can be skipped from the final list of resources.\n overridingForUploadResource.push(foundResourceForUpdate);\n }\n }\n });\n\n if (uploadedResources.length > 0) {\n // Remove all uploaded resources that have been returned by the backend.\n resourcesForUpload = resourcesForUpload.filter(({name: nameOfUploadingResource}) => !uploadedResources.some(({name: nameOfUploadedResource}) => nameOfUploadedResource === nameOfUploadingResource));\n updateResourcesForUpload(resourcesForUpload, false);\n }\n\n // Finally, concatenate the resources that are currently uploading, resources that have been uploaded but not yet returned by the backend,\n // and resources that are either imported or being imported at the moment.\n return importResources\n .filter(({name: importResourceName}) => !overridingForUploadResource.some((uploadingResourceName) => importResourceName === uploadingResourceName))\n .concat(resourcesForUpload);\n }\n\n /**\n * Subscribes to the 'resourcesUpdated' event. It will be called when already imported resource or resources for upload are changed.\n *\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} the unsubscribe function.\n */\n function onResourcesUpdated(callback) {\n return EventEmitterService.subscribeSync('resourcesUpdated', (resources) => callback(resources));\n }\n\n /**\n * @param {ImportResource} updatedResourceFroUpload\n */\n function updateResourceForUpload(updatedResourceFroUpload) {\n const resourcesForUpload = getResourcesForUpload();\n const foundResource = resourcesForUpload.find(({name: nameOfResourceForUpload}) => nameOfResourceForUpload === updatedResourceFroUpload.name);\n if (foundResource) {\n Object.assign(foundResource, updatedResourceFroUpload);\n } else {\n resourcesForUpload.push(updatedResourceFroUpload);\n }\n updateResourcesForUpload(resourcesForUpload);\n }\n\n function getResourceForUpload(name) {\n return cloneDeep(_resourcesForUpload.find(({name: nameOfResourceForUpload}) => nameOfResourceForUpload === name));\n }\n\n function updateResourcesForUpload(uploadedResources, notifyResourceChanged = true) {\n _resourcesForUpload = cloneDeep(uploadedResources);\n EventEmitterService.emitSync('resourcesForUploadChanged', getResourcesForUpload());\n if (notifyResourceChanged) {\n EventEmitterService.emitSync('resourcesUpdated', getResources());\n }\n }\n\n function getResourcesForUpload() {\n return cloneDeep(_resourcesForUpload) || [];\n }\n\n /**\n * Subscribes to the 'resourcesForUploadChanged' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onResourcesForUploadChanged(callback) {\n return EventEmitterService.subscribeSync('resourcesForUploadChanged', (uploadFiles) => callback(uploadFiles));\n }\n}\n","const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-status-info', modules)\n .directive('importResourceStatusInfo', importResourceStatusInfoDirective);\n\nimportResourceStatusInfoDirective.$inject = ['$rootScope', '$document'];\n\nfunction importResourceStatusInfoDirective($rootScope, $document) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-status-info.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n const subscribers = [];\n\n // =========================\n // Public variables\n // =========================\n $scope.popoverTemplate = 'resourceStatusInfoTemplate.html';\n $scope.popoverIsOpen = false;\n $scope.context = $scope.resource.importResource.context;\n $scope.replaceGraphs = $scope.resource.importResource.replaceGraphs;\n $scope.baseUrl = decodeURIComponent($scope.resource.importResource.baseURI);\n $scope.forceSerial = $scope.resource.importResource.forceSerial;\n $scope.importedOn = $scope.resource.importResource.importedOn;\n $scope.parserSettings = $scope.resource.importResource.parserSettings;\n\n // =========================\n // Public functions\n // =========================\n $scope.open = () => {\n $scope.closeAllDialogs();\n $scope.popoverIsOpen = true;\n };\n\n $scope.closeAllDialogs = () => {\n $rootScope.$broadcast('closePopovers');\n };\n\n $scope.close = () => {\n $scope.popoverIsOpen = false;\n };\n\n const handleEscapeKeyPress = (event) => {\n if (event.key === 'Escape') {\n $scope.$apply(() => {\n $scope.close();\n });\n }\n };\n\n const removeAllSubscribers = () => {\n subscribers.forEach((subscriber) => subscriber());\n };\n\n // =========================\n // Subscriptions\n // =========================\n\n subscribers.push($scope.$on('closePopovers', $scope.close));\n $document.on('keydown', handleEscapeKeyPress);\n\n $scope.$on('$destroy', () => {\n $document.off('keydown', handleEscapeKeyPress);\n removeAllSubscribers();\n });\n }\n };\n}\n","export const SortingType = {\n \"NAME\": \"NAME\",\n \"SIZE\": \"SIZE\",\n \"MODIFIED\": \"MODIFIED\",\n \"IMPORTED\": \"IMPORTED\",\n \"CONTEXT\": \"CONTEXT\"\n};\n","import 'angular/import/controllers/import-resource-message-dialog.controller';\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport * as stringUtils from \"../../utils/string-utils\";\n\nconst modules = ['graphdb.framework.impex.import.controllers.import-resource-message-dialog'];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-message', modules)\n .directive('importResourceMessage', importResourceMessageDirective);\n\nimportResourceMessageDirective.$inject = ['$uibModal'];\n\nfunction importResourceMessageDirective($uibModal) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-message.html',\n scope: {\n resource: '='\n },\n link: ($scope) => {\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.toTitleCase = (str) => stringUtils.toTitleCase(str);\n\n /**\n *\n * @param {ImportResourceTreeElement} resourceTreeElement\n */\n $scope.showMessage = (resourceTreeElement) => {\n $uibModal.open({\n templateUrl: 'js/angular/import/templates/import-resource-message-dialog.html',\n controller: 'ImportResourceMessageDialogController',\n size: 'lg',\n windowClass: 'import-resource-message-dialog',\n backdrop: 'static',\n resolve: {\n message: function () {\n return resourceTreeElement ? resourceTreeElement.importResource.message : '';\n }\n }\n });\n }\n }\n };\n}\n","import {upperFirst} from \"lodash\";\n\n/**\n * Removes brackets and serial commas from IRIs\n * when used to create ids for links and markers,\n * because elements with ids that contain such\n * are not valid XHTML and cause a host problems\n * when trying to style individual elements\n * @param {string} string The string to be processed.\n * @return {string} A string where the special characters are removed.\n */\nconst removeSpecialChars = (string) => {\n return string.replace(/[()']/g, \"\");\n};\n\nconst toBoolean = (value) => {\n if (typeof value === 'string') {\n return value === 'true';\n }\n return Boolean(value);\n};\n\nconst toTitleCase = (text) => {\n if (!text) {\n return text;\n }\n return upperFirst(text.toLowerCase());\n};\n\nexport {\n removeSpecialChars,\n toBoolean,\n toTitleCase\n};\n\n","import {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport 'angular/import/directives/import-resource-message.directive';\nimport 'angular/import/directives/import-resource-status-info.directive';\nimport {SortingType} from \"../../models/import/sorting-type\";\nimport {ImportResourceTreeElement} from \"../../models/import/import-resource-tree-element\";\nimport {TABS} from \"../services/import-context.service\";\nimport {ImportResourceTreeService} from \"../services/import-resource-tree.service\";\nimport {convertToBytes} from \"../../utils/size-util\";\n\nconst TYPE_FILTER_OPTIONS = {\n 'FILE': 'FILE',\n 'DIRECTORY': 'DIRECTORY',\n 'ALL': 'ALL'\n};\n\nconst STATUS_OPTIONS = {\n 'ALL': 'ALL',\n 'NONE': 'NONE',\n 'IMPORTED': 'IMPORTED',\n 'NOT_IMPORTED': 'NOT_IMPORTED'\n};\n\nconst modules = [\n 'graphdb.framework.import.directives.import-resource-message',\n 'graphdb.framework.import.directives.import-resource-status-info'\n];\n\nangular\n .module('graphdb.framework.import.directives.import-resource-tree', modules)\n .directive('importResourceTree', importResourceTreeDirective);\n\nimportResourceTreeDirective.$inject = ['$timeout', 'ImportContextService'];\n\nfunction importResourceTreeDirective($timeout, ImportContextService) {\n return {\n restrict: 'E',\n templateUrl: 'js/angular/import/templates/import-resource-tree.html',\n scope: {\n /**\n * Contains mapping of the column names to label keys. Should contain\n * keys for: name, size, imported, modified, context column names.\n */\n columnKeys: '=',\n /**\n * If the type filter buttons should be visible.\n */\n showTypeFilter: '=',\n /**\n * The default field to sort the resources by.\n */\n sortBy: '=',\n asc: '=',\n onImport: '&',\n onImportAll: '&',\n onReset: '&',\n onRemove: '&',\n onStopImport: '&',\n onEditResource: '&'\n },\n link: ($scope, element, attrs) => {\n\n // =========================\n // Public variables\n // =========================\n $scope.resources = new ImportResourceTreeElement();\n $scope.displayResources = [];\n $scope.TYPE_FILTER_OPTIONS = TYPE_FILTER_OPTIONS;\n $scope.filterByType = TYPE_FILTER_OPTIONS.ALL;\n $scope.filterByFileName = '';\n $scope.STATUS_OPTIONS = STATUS_OPTIONS;\n $scope.selectedByStatus = undefined;\n $scope.areAllDisplayedImportResourcesSelected = false;\n $scope.areAllDisplayedImportResourcesPartialSelected = false;\n $scope.ImportResourceStatus = ImportResourceStatus;\n $scope.canRemoveResource = angular.isDefined(attrs.onRemove);\n $scope.canResetSelectedResources = false;\n $scope.SORTING_TYPES = SortingType;\n $scope.sortAsc = angular.isDefined(attrs.asc) ? $scope.asc : true;\n $scope.sortedBy = $scope.sortBy;\n $scope.showLoader = ImportContextService.getShowLoader();\n $scope.hasSelection = false;\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Updates the selection model when a resource is selected or unselected.\n * @param {ImportResourceTreeElement} resource The resource that was selected or unselected.\n */\n $scope.selectionChanged = ((resource) => {\n resource.setSelection(resource.selected);\n updateSelectByStateDropdownModel();\n setCanResetResourcesFlag();\n updateHasSelection();\n });\n\n $scope.selectResourceWithStatus = (resourceStatus) => {\n $scope.selectedByStatus = resourceStatus;\n $scope.resources.setSelection(false);\n\n if (STATUS_OPTIONS.ALL === $scope.selectedByStatus) {\n $scope.resources.setSelection(true);\n } else if (STATUS_OPTIONS.IMPORTED === $scope.selectedByStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.DONE]);\n } else if (STATUS_OPTIONS.NOT_IMPORTED === $scope.selectedByStatus) {\n $scope.resources.selectAllWithStatus([ImportResourceStatus.IMPORTING, ImportResourceStatus.NONE, ImportResourceStatus.ERROR, ImportResourceStatus.PENDING, ImportResourceStatus.INTERRUPTING]);\n }\n\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n $scope.filterByTypeChanged = (newType) => {\n $scope.filterByType = newType;\n updateListedImportResources();\n };\n\n $scope.filterByFileNameChanged = (filterByFileName) => {\n $scope.filterByFileName = filterByFileName;\n debounce(updateListedImportResources, 100);\n };\n\n /**\n * Resets the status of the selected resources.\n */\n $scope.onResetStatus = () => {\n const resourcesNames = $scope.resources.getAllSelected()\n .map((resource) => resource.path);\n if (resourcesNames.length > 0) {\n $scope.onReset({resources: resourcesNames});\n }\n };\n\n /**\n * Resets the status of the given resource.\n * @param {ImportResourceTreeElement} importResource\n */\n $scope.resetStatus = (importResource) => {\n $scope.onReset({resources: [importResource.path]});\n };\n\n $scope.onRemoveResources = () => {\n const selectedResources = $scope.resources.getAllSelected();\n if (selectedResources && selectedResources.length > 0) {\n $scope.onRemove({resources: selectedResources});\n }\n };\n\n $scope.removeResource = (resource) => {\n $scope.onRemove({resources: [resource]});\n };\n\n $scope.importAll = (withoutChangingSettings) => {\n const selectedResources = $scope.resources.getAllSelectedForImport();\n if (selectedResources.length > 0) {\n $scope.onImportAll({selectedResources: selectedResources, withoutChangingSettings});\n }\n };\n\n $scope.stopImport = (importResource) => {\n $scope.onStopImport({resource: importResource});\n };\n\n /**\n * Sorts resources by provided sorting type.\n * @param {SortingType} sortedBy The sorting type to use.\n */\n $scope.sort = (sortedBy) => {\n if ($scope.sortedBy === sortedBy) {\n $scope.sortAsc = !$scope.sortAsc;\n } else {\n $scope.sortAsc = true;\n }\n $scope.sortedBy = sortedBy;\n updateListedImportResources();\n };\n\n $scope.editResource = (resource) => {\n $scope.onEditResource({resource});\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Sets the flag showing if any of the selected resources is already imported\n * and can have their states reset.\n */\n const setCanResetResourcesFlag = () => {\n $scope.canResetSelectedResources = $scope.resources.getSelectedImportedResources();\n };\n\n const updateListedImportResources = () => {\n $scope.resources.getRoot().updateSelectionState();\n sortResources();\n $scope.displayResources = $scope.resources.toList()\n .filter(filterByType)\n .filter(filterByName);\n\n updateHasSelection();\n updateSelectByStateDropdownModel();\n };\n\n const updateHasSelection = () => {\n const allSelectedFilesNames = $scope.resources.getAllSelectedFilesNames();\n $scope.hasSelection = allSelectedFilesNames.length > 0;\n ImportContextService.updateSelectedFilesNames(allSelectedFilesNames);\n };\n\n const updateSelectByStateDropdownModel = () => {\n const hasUnselectedDisplayedImportResource = $scope.displayResources.some((resource) => !resource.selected);\n const hasSelectedDisplayedImportResource = $scope.displayResources.some((resource) => resource.selected);\n $scope.areAllDisplayedImportResourcesSelected = hasSelectedDisplayedImportResource && !hasUnselectedDisplayedImportResource;\n $scope.areAllDisplayedImportResourcesPartialSelected = hasSelectedDisplayedImportResource && hasUnselectedDisplayedImportResource;\n };\n\n const sortResources = () => {\n if (SortingType.NAME === $scope.sortedBy) {\n $scope.resources.sort(compareByName($scope.sortAsc));\n } else if (SortingType.SIZE === $scope.sortedBy) {\n $scope.resources.sort(compareBySize($scope.sortAsc));\n } else if (SortingType.MODIFIED === $scope.sortedBy) {\n $scope.resources.sort(compareByModified($scope.sortAsc));\n } else if (SortingType.IMPORTED === $scope.sortedBy) {\n $scope.resources.sort(compareByImportedOn($scope.sortAsc));\n } else if (SortingType.CONTEXT === $scope.sortedBy) {\n $scope.resources.sort(compareByContext($scope.sortAsc));\n }\n };\n\n const compareByName = (acs) => (r1, r2) => {\n return acs ? r1.importResource.name.localeCompare(r2.importResource.name) : r2.importResource.name.localeCompare(r1.importResource.name);\n };\n\n const compareBySize = (acs) => (r1, r2) => {\n // The format of size returned by the backend has changed, but we need to keep the old format for backward compatibility.\n // Therefore, we convert the size to always be in bytes.\n const r1Size = convertToBytes(r1.importResource.size);\n const r2Size = convertToBytes(r2.importResource.size);\n return acs ? r1Size - r2Size : r2Size - r1Size;\n };\n\n const compareByModified = (acs) => (r1, r2) => {\n const r1ModifiedOn = r1.importResource.modifiedOn || Number.MAX_VALUE;\n const r2ModifiedOn = r2.importResource.modifiedOn || Number.MAX_VALUE;\n return acs ? r1ModifiedOn - r2ModifiedOn : r2ModifiedOn - r1ModifiedOn;\n };\n\n const compareByImportedOn = (acs) => (r1, r2) => {\n const r1ImportedOn = r1.importResource.importedOn || Number.MAX_VALUE;\n const r2ImportedOn = r2.importResource.importedOn || Number.MAX_VALUE;\n return acs ? r1ImportedOn - r2ImportedOn : r2ImportedOn - r1ImportedOn;\n };\n\n const compareByContext = (acs) => (r1, r2) => {\n return acs ? r1.importResource.context.localeCompare(r2.importResource.context) : r2.importResource.context.localeCompare(r1.importResource.context);\n };\n\n const filterByType = (resource) => {\n if (TYPE_FILTER_OPTIONS.ALL === $scope.filterByType) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.isFile();\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.isDirectory();\n }\n\n return false;\n };\n\n const filterByName = (resource) => {\n if (!$scope.filterByFileName) {\n return true;\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.DIRECTORY) {\n return resource.hasTextInDirectoriesName($scope.filterByFileName);\n }\n\n if ($scope.filterByType === TYPE_FILTER_OPTIONS.FILE) {\n return resource.hasTextInFilesName($scope.filterByFileName);\n }\n return resource.hasTextInResourcesName($scope.filterByFileName);\n };\n\n let debounceTimeout;\n const debounce = (func, delay) => {\n // Clear previous timeout\n if (debounceTimeout) {\n $timeout.cancel(debounceTimeout);\n }\n\n // Set new timeout\n debounceTimeout = $timeout(func, delay);\n };\n\n // =========================\n // Subscription handlers\n // =========================\n\n const onResourcesUpdatedHandler = (newResources = []) => {\n const isUserImport = TABS.USER === ImportContextService.getActiveTabId();\n if ($scope.resources.isEmpty()) {\n $scope.resources = ImportResourceTreeService.toImportResourceTree(newResources, isUserImport);\n if (isUserImport) {\n $scope.sortedBy = SortingType.MODIFIED;\n }\n } else {\n ImportResourceTreeService.mergeResourceTree($scope.resources, newResources, isUserImport);\n }\n ImportResourceTreeService.calculateElementIndent($scope.resources);\n ImportResourceTreeService.setupAfterTreeInitProperties($scope.resources);\n updateListedImportResources();\n setCanResetResourcesFlag();\n };\n\n // =========================\n // Subscriptions\n // =========================\n const subscriptions = [];\n\n subscriptions.push(ImportContextService.onResourcesUpdated(onResourcesUpdatedHandler));\n subscriptions.push(ImportContextService.onShowLoaderUpdated((showLoader) => $scope.showLoader = showLoader));\n subscriptions.push(ImportContextService.onActiveTabIdUpdated(() => $scope.resources = new ImportResourceTreeElement()));\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 };\n}\n","angular\n .module('graphdb.framework.impex.import.controllers.import-resource-message-dialog', [])\n .controller('ImportResourceMessageDialogController', ImportResourceMessageDialogController);\n\nImportResourceMessageDialogController.$inject = ['$scope', '$uibModalInstance', '$translate', 'toastr', 'message'];\n\nfunction ImportResourceMessageDialogController($scope, $uibModalInstance, $translate, toastr, message) {\n\n $scope.message = message;\n\n\n $scope.close = () => {\n $uibModalInstance.dismiss();\n };\n\n $scope.copyToClipboard = () => {\n navigator.clipboard.writeText($scope.message)\n .then(() => {\n toastr.success($translate.instant('import.help.messages.copied_to_clipboard'));\n $scope.close();\n }, (err) => {\n console.error('Could not copy text: ', err);\n });\n };\n}\n"],"names":["TABS","USER","SERVER","ImportContextService","EventEmitterService","_activeTabId","_importedResources","_resourcesForUpload","_files","_showLoader","_selectedFilesNames","updateActiveTabId","activeTabId","emitSync","getActiveTabId","onActiveTabIdUpdated","callback","subscribeSync","getFiles","addFile","file","files","push","updateFiles","cloneDeep","onFilesUpdated","getImportedResources","updateImportedResources","importResources","getResources","onImportedResourcesUpdated","importedResources","onResourcesUpdated","resources","updateShowLoader","showLoader","getShowLoader","onShowLoaderUpdated","updateSelectedFilesNames","selectedFilesNames","getSelectedFilesNames","onSelectedFilesNamesUpdated","selectedFilenames","updateResourceForUpload","updatedResourceFroUpload","resourcesForUpload","getResourcesForUpload","foundResource","find","name","nameOfResourceForUpload","Object","assign","updateResourcesForUpload","getResourceForUpload","onResourcesForUploadChanged","uploadFiles","uploadedResources","overridingForUploadResource","forEach","importResourceName","foundResourceForUpdate","nameOfUploadingResource","status","ImportResourceStatus","UPLOADED","length","filter","some","nameOfUploadedResource","uploadingResourceName","concat","notifyResourceChanged","angular","module","factory","$inject","importResourceStatusInfoDirective","$rootScope","$document","restrict","templateUrl","scope","resource","link","$scope","subscribers","popoverTemplate","popoverIsOpen","context","importResource","replaceGraphs","baseUrl","decodeURIComponent","baseURI","forceSerial","importedOn","parserSettings","open","closeAllDialogs","$broadcast","close","handleEscapeKeyPress","event","key","$apply","$on","on","off","subscriber","directive","SortingType","importResourceMessageDirective","$uibModal","toTitleCase","str","stringUtils","showMessage","resourceTreeElement","controller","size","windowClass","backdrop","resolve","message","removeSpecialChars","string","replace","toBoolean","value","Boolean","text","upperFirst","toLowerCase","TYPE_FILTER_OPTIONS","STATUS_OPTIONS","importResourceTreeDirective","$timeout","columnKeys","showTypeFilter","sortBy","asc","onImport","onImportAll","onReset","onRemove","onStopImport","onEditResource","element","attrs","ImportResourceTreeElement","displayResources","filterByType","ALL","filterByFileName","selectedByStatus","undefined","areAllDisplayedImportResourcesSelected","areAllDisplayedImportResourcesPartialSelected","canRemoveResource","isDefined","canResetSelectedResources","SORTING_TYPES","sortAsc","sortedBy","hasSelection","selectionChanged","setSelection","selected","updateSelectByStateDropdownModel","setCanResetResourcesFlag","updateHasSelection","selectResourceWithStatus","resourceStatus","IMPORTED","selectAllWithStatus","DONE","NOT_IMPORTED","IMPORTING","NONE","ERROR","PENDING","INTERRUPTING","updateListedImportResources","filterByTypeChanged","newType","filterByFileNameChanged","debounce","onResetStatus","resourcesNames","getAllSelected","map","path","resetStatus","onRemoveResources","selectedResources","removeResource","importAll","withoutChangingSettings","getAllSelectedForImport","stopImport","sort","editResource","getSelectedImportedResources","getRoot","updateSelectionState","sortResources","toList","filterByName","allSelectedFilesNames","getAllSelectedFilesNames","hasUnselectedDisplayedImportResource","hasSelectedDisplayedImportResource","NAME","compareByName","SIZE","compareBySize","MODIFIED","compareByModified","compareByImportedOn","CONTEXT","compareByContext","acs","r1","r2","localeCompare","r1Size","convertToBytes","r2Size","r1ModifiedOn","modifiedOn","Number","MAX_VALUE","r2ModifiedOn","r1ImportedOn","r2ImportedOn","FILE","isFile","DIRECTORY","isDirectory","hasTextInDirectoriesName","hasTextInFilesName","hasTextInResourcesName","debounceTimeout","func","delay","cancel","subscriptions","onResourcesUpdatedHandler","newResources","isUserImport","isEmpty","ImportResourceTreeService","toImportResourceTree","mergeResourceTree","calculateElementIndent","setupAfterTreeInitProperties","removeAllSubscribers","subscription","ImportResourceMessageDialogController","$uibModalInstance","$translate","toastr","dismiss","copyToClipboard","navigator","clipboard","writeText","then","success","instant","err","console","error"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"84727.b93b2f9857352d39b241.bundle.js","mappings":"oJASA,SAASA,EAA0BC,GAC/B,MAAO,CACHC,SAAU,IACVC,MAAO,CACHC,MAAO,IACPC,KAAM,IACNC,qBAAsB,KAE1BC,YAAa,6EACbC,KAAM,SAASC,GACXA,EAAOC,WAAaA,EAAAA,UACxB,EAER,CAnBAC,QACKC,OAAO,uDAFI,IAGXC,UAAU,mBAAoBb,GAEnCA,EAA0Bc,QAAU,E,aC+BpCH,QAAQC,OAAO,yDAA0D,IACpEC,UAAU,sBAAuB,CAAC,aAAc,SAAUE,GACvD,MAAO,CACHb,SAAU,IACVc,QAAS,UACTb,MAAO,CACHc,QAAS,IACTC,cAAe,MAEnBX,YAAa,sFACbC,KAAM,SAASC,EAAQU,EAASC,EAAOC,GAInCZ,EAAOa,QAAS,EAMhB,MAAMC,EAAuBC,IACpBL,EAAQ,GAAGM,SAASD,EAAME,SAC3BjB,EAAOkB,OAAO,KACVlB,EAAOa,QAAS,KAe5Bb,EAAOmB,eAAiB,WACpBnB,EAAOa,QAAUb,EAAOa,MAC5B,EAMAb,EAAOoB,gBAAkB,SAAUC,GAC/BA,EAAOC,UAAYD,EAAOC,SAnBVC,MAChB,MAAMD,EAAWtB,EAAOQ,QAAQgB,OAAO,SAASH,GAC5C,OAAOA,EAAOC,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AU,E","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/core/directives/multiselect-dropdown/multiselect-dropdown.directive.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/dynamic-form/dynamic-form.directive.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 * @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 '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"],"names":["dynamicFormFieldDirective","$compile","restrict","scope","field","form","translationKeyPrefix","templateUrl","link","$scope","FIELD_TYPE","angular","module","directive","$inject","$translate","require","options","dropdownLabel","element","attrs","ngModel","isOpen","handleDocumentClick","event","contains","target","$apply","toggleDropdown","toggleSelection","option","selected","updateModel","filter","$setViewValue","getSelectedText","selectedOptions","length","instant","map","label","join","$render","isArray","$viewValue","forEach","some","selectedOption","value","document","addEventListener","$on","removeEventListener","dynamicFormDirective","formModel","showAllFields","onValidityChange","formCtrl","undefined","init","find","controller","console","error","originalSetValidity","$setValidity","validationToken","isValid","modelCtrl","call","valid","$valid"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=85281;export const __webpack_ids__=[85281];export const __webpack_modules__={85281:()=>{function n(n,t,e,i,o,a){return{restrict:"E",templateUrl:"js/angular/graphql/templates/step-configure-endpoint.html",scope:{stepDefinition:"=",selectedSourceRepository:"="},link:r=>{r.endpointConfiguration=void 0,r.generationSettings=void 0,r.generationSettingsValid=!1,r.showAdvancedSettings=!1,r.handleValidityChange=n=>{r.endpointConfigurationSettingsValid=n},r.next=()=>{o.nextEndpointCreationStep()},r.back=()=>{o.previousEndpointCreationStep()},r.cancel=()=>{const n=e.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.title"),i=e.instant("graphql.create_endpoint.wizard_steps.actions.cancel.confirmation.body");t.openConfirmation(n,i,()=>{o.cancelEndpointCreation()})},r.toggleAdvancedSettings=()=>{r.showAdvancedSettings=!r.showAdvancedSettings};const s=[];r.$on("$destroy",()=>{s.forEach(n=>n())}),r.endpointConfiguration=o.getNewEndpoint(),r.endpointConfiguration.settings||(r.endpointConfiguration,r.loadingData=!0,n.all([i.getGraphqlGenerationSettings(r.selectedSourceRepository.id).catch(n=>{console.error("Error loading generation settings",n),a.error(getError(n))})]).then(([n])=>{r.endpointConfiguration.settings=n}).finally(()=>{r.loadingData=!1}))}}}angular.module("graphdb.framework.graphql.directives.configure-endpoint",[]).directive("configureEndpoint",n),n.$inject=["$q","ModalService","$translate","GraphqlService","GraphqlContextService","toastr"]}};
|
|
2
|
-
//# sourceMappingURL=85281.27b5a1eb8e7ac2cf8459.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"85281.27b5a1eb8e7ac2cf8459.bundle.js","mappings":"oHAMA,SAASA,EAA2BC,EAAIC,EAAcC,EAAYC,EAAgBC,EAAuBC,GACrG,MAAO,CACHC,SAAU,IACVC,YAAa,4DACbC,MAAO,CACHC,eAAgB,IAChBC,yBAA0B,KAE9BC,KAAOC,IASHA,EAAOC,2BAAwBC,EAM/BF,EAAOG,wBAAqBD,EAM5BF,EAAOI,yBAA0B,EAOjCJ,EAAOK,sBAAuB,EAU9BL,EAAOM,qBAAwBC,IAC3BP,EAAOQ,mCAAqCD,GAMhDP,EAAOS,KAAO,KACVjB,EAAsBkB,4BAM1BV,EAAOW,KAAO,KACVnB,EAAsBoB,gCAM1BZ,EAAOa,OAAS,KACZ,MAAMC,EAAQxB,EAAWyB,QAAQ,0EAC3BC,EAAuB1B,EAAWyB,QAAQ,yEAChD1B,EAAa4B,iBAAiBH,EAAOE,EAAsB,KACvDxB,EAAsB0B,4BAO9BlB,EAAOmB,uBAAyB,KAC5BnB,EAAOK,sBAAwBL,EAAOK,sBAO1C,MAuBMe,EAAgB,GAMtBpB,EAAOqB,IAAI,WAJOC,KACdF,EAAcG,QAASC,GAAiBA,OAMxCxB,EAAOC,sBAAwBT,EAAsBiC,iBAGhDzB,EAAOC,sBAAsByB,WACrB1B,EAAOC,sBA3BpBD,EAAO2B,aAAc,EACrBvC,EAAGwC,IAAI,CATArC,EAAesC,6BAA6B7B,EAAOF,yBAAyBgC,IAC9EC,MAAOC,IACJC,QAAQD,MAAM,oCAAqCA,GACnDvC,EAAOuC,MAAME,SAASF,QAOzBG,KAAK,EAAEhC,MACJH,EAAOC,sBAAsByB,SAAWvB,IAE3CiC,QAAQ,KACLpC,EAAO2B,aAAc,MA2B7C,CAtIAU,QACKC,OAAO,0DAA2D,IAClEC,UAAU,oBAAqBpD,GAEpCA,EAA2BqD,QAAU,CAAC,KAAM,eAAgB,aAAc,iBAAkB,wBAAyB,S","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/graphql/directives/configure-endpoint.directive.js"],"sourcesContent":["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"],"names":["ConfigureEndpointComponent","$q","ModalService","$translate","GraphqlService","GraphqlContextService","toastr","restrict","templateUrl","scope","stepDefinition","selectedSourceRepository","link","$scope","endpointConfiguration","undefined","generationSettings","generationSettingsValid","showAdvancedSettings","handleValidityChange","isValid","endpointConfigurationSettingsValid","next","nextEndpointCreationStep","back","previousEndpointCreationStep","cancel","title","instant","confirmDeleteMessage","openConfirmation","cancelEndpointCreation","toggleAdvancedSettings","subscriptions","$on","onDestroy","forEach","subscription","getNewEndpoint","settings","loadingData","all","getGraphqlGenerationSettings","id","catch","error","console","getError","then","finally","angular","module","directive","$inject"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"86639.ab85108411ef0f006e10.bundle.js","mappings":"oHAAA,MAAMA,EAAkC,4CAExCC,eAAeC,IAAI,aAAc,CAC7B,CACIC,eAAgB,wBAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WAC5B,MAAO,CACH,CACIJ,eAAgB,oBAChBE,QAAS,CACLG,QAAS,uEAELH,EAAQI,WAAa,CAAC,EAAI,CAAEC,MAAOV,GACvCW,MAAO,mBACPC,iBAAiB,KACdP,EACHQ,IAAK,aACLC,gBAAiBP,EAAWQ,wBAAwB,2BACpDC,YAAaA,YAOjC,CACIb,eAAgB,6BAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WAC5B,MAAO,CACH,CACIJ,eAAgB,gBAChBE,QAAS,CACLG,QAAS,gEAELH,EAAQI,WAAa,CAAC,EAAI,CAAEC,MAAOV,GACvCW,MAAO,iCACJN,EACHQ,IAAK,0BACLC,gBAAiBP,EAAWQ,wBAAwB,yBACpDE,eAAgBA,IAAMC,QAAQC,QAAQZ,EAAWa,0BAA0Bb,EAAWQ,wBAAwB,gCAMlI,CACIZ,eAAgB,6BAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WAC5B,MAAO,CACH,CACIJ,eAAgB,oBAChBE,QAAS,CACLG,QAAS,4DAELH,EAAQI,WAAa,CAAC,EAAI,CAAEC,MAAOV,GACvCW,MAAO,0BACPU,qBAAqB,EACrBT,iBAAiB,KACdP,EACHQ,IAAK,0BACLC,gBAAiBP,EAAWQ,wBAAwB,+BACpDC,YAAaA,YAOjC,CACIb,eAAgB,uCAChBC,SAAUA,CAACC,EAASC,IAET,CACH,CACID,QAAS,CACLG,QAAS,iDACTG,MAAO,oBACJN,EACHiB,sBAPOhB,EAASC,WAOkBQ,wBAAwB,gCAM9E,CACIZ,eAAgB,0BAChBC,SAAUA,CAACC,EAASC,KAChB,MAAMC,EAAaD,EAASC,WAG5B,OAFAF,EAAQI,WAAa,0BAEd,CACH,CACIN,eAAgB,kBAChBE,QAASkB,QAAQC,OAAO,CAAC,EAAG,CACxBC,KAAM,aACNC,WAAW,GACZrB,IAEP,CACIF,eAAgB,wBAAyBE,QAAS,IAAIA,IAE1D,CACIF,eAAgB,6BAA8BE,QAAS,IAAIA,IAE/D,CACIF,eAAgB,6BAA8BE,QAAS,IAAIA,IAE/D,CAEIF,eAAgB,eAChBE,QAASkB,QAAQC,OAAO,CAAC,EAAG,CACxBG,kBAAmBA,CAACC,EAAOC,IAAgBtB,EAAWuB,aAAavB,EAAWQ,wBAAwB,SAAU,GAC3GgB,KAAK,KACF,MAAMC,EAASH,EAAYI,GAK3BC,WAAW,IAAMN,EAAMO,KAAKH,EAAS,MAExCI,MAAM,KAKHF,WAAW,IAAMN,EAAMS,WAEhChC,IAEP,CACIF,eAAgB,uCAAwCE,QAAS,IAAIA,Q","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/guides/steps/complex/create-similarity-index/plugin.js"],"sourcesContent":["const CREATE_SIMILARITY_INDEX_DEFAULT = \"guide.step-action.create-similarity-index\";\n\nPluginRegistry.add('guide.step', [\n {\n guideBlockName: 'similarity-click-link',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.create-similarity-index.create-similarity-index',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: CREATE_SIMILARITY_INDEX_DEFAULT }),\n class: 'similarity-index',\n disableNextFlow: true,\n ...options,\n url: 'similarity',\n elementSelector: GuideUtils.getGuideElementSelector('create-similarity-index'),\n onNextClick: () => {\n }\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'similarity-type-index-name',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n guideBlockName: 'input-element',\n options: {\n content: 'guide.step_plugin.create-similarity-index.input-index-name',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: CREATE_SIMILARITY_INDEX_DEFAULT }),\n class: 'similarity-index-name-input',\n ...options,\n url: 'similarity/index/create',\n elementSelector: GuideUtils.getGuideElementSelector('similarity-index-name'),\n onNextValidate: () => Promise.resolve(GuideUtils.validateTextInputNotEmpty(GuideUtils.getGuideElementSelector('similarity-index-name')))\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'similarity-click-to-create',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n guideBlockName: 'clickable-element',\n options: {\n content: 'guide.step_plugin.create-similarity-index.create-index',\n // If mainAction is set the title will be set automatically\n ...(options.mainAction ? {} : { title: CREATE_SIMILARITY_INDEX_DEFAULT }),\n class: 'create-similarity-index',\n disablePreviousFlow: false,\n disableNextFlow: true,\n ...options,\n url: 'similarity/index/create',\n elementSelector: GuideUtils.getGuideElementSelector('create-similarity-index-btn'),\n onNextClick: () => {\n }\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'similarity-hold-and-wait-until-shown',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n return [\n {\n options: {\n content: 'guide.step_plugin.create-similarity-index.wait',\n class: 'wait-for-index',\n ...options,\n elementSelectorToWait: GuideUtils.getGuideElementSelector('similarity-indexes-table'),\n }\n }\n ]\n }\n },\n {\n guideBlockName: 'create-similarity-index',\n getSteps: (options, services) => {\n const GuideUtils = services.GuideUtils;\n options.mainAction = 'create-similarity-index';\n\n return [\n {\n guideBlockName: 'click-main-menu',\n options: angular.extend({}, {\n menu: 'similarity',\n showIntro: true\n }, options)\n },\n {\n guideBlockName: 'similarity-click-link', options: {...options}\n },\n {\n guideBlockName: 'similarity-type-index-name', options: {...options}\n },\n {\n guideBlockName: 'similarity-click-to-create', options: {...options}\n },\n {\n // check if error block is shown and go back 2 steps or proceed\n guideBlockName: 'info-message',\n options: angular.extend({}, {\n beforeShowPromise: (guide, currentStep) => GuideUtils.getOrWaitFor(GuideUtils.getGuideElementSelector('error'), 1)\n .then(() => {\n const stepId = currentStep.id;\n // Using a timeout\n // because the library executes logic\n // to show the step in a then clause\n // which causes current and next steps to show\n setTimeout(() => guide.show(stepId - 2))\n })\n .catch(() => {\n // Using a timeout\n // because the library executes logic\n // to show the step in a then clause\n // which causes current and next steps to show\n setTimeout(() => guide.next())\n }),\n }, options)\n },\n {\n guideBlockName: 'similarity-hold-and-wait-until-shown', options: {...options}\n }\n ];\n }\n }\n]);\n"],"names":["CREATE_SIMILARITY_INDEX_DEFAULT","PluginRegistry","add","guideBlockName","getSteps","options","services","GuideUtils","content","mainAction","title","class","disableNextFlow","url","elementSelector","getGuideElementSelector","onNextClick","onNextValidate","Promise","resolve","validateTextInputNotEmpty","disablePreviousFlow","elementSelectorToWait","angular","extend","menu","showIntro","beforeShowPromise","guide","currentStep","getOrWaitFor","then","stepId","id","setTimeout","show","catch","next"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=89647;export const __webpack_ids__=[12940,30553,89598,89647];export const __webpack_modules__={12940:(e,r,n)=>{n.r(r);var t=n(5949),o=n(89598),c=n(30553);const l={buttonStyle:"position: absolute; top: 0; right: 0; margin-right: 24px"};function s(e){const r=(0,t.A)().use(o.markdownCodeCopyPlugin).use(c.markdownOpenInSparqlEditorPlugin,l);return{renderMarkdown:(n,s)=>{try{return e.trustAsHtml((e=>e?(0,t.A)().use(o.markdownCodeCopyPlugin,e).use(c.markdownOpenInSparqlEditorPlugin,_.merge({},l,e)):r)(s).render(n))}catch(r){return console.error("Error rendering markdown:",r),e.trustAsHtml(n)}}}}angular.module("graphdb.framework.core.services.markdown-service",[]).service("MarkdownService",s),s.$inject=["$sce"]},30553:(e,r,n)=>{n.r(r),n.d(r,{markdownOpenInSparqlEditorPlugin:()=>c});const t={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,r){return r=_.merge({},t,r),(...n)=>{const[t,o]=n,c=t[o],l=t[o].content.replaceAll('"',""").replaceAll("'","'"),s=e(...n);return"fence"===c.type&&"sparql"===c.info&&s.trim()?`<div style="position: relative">\n ${s}\n <open-in-sparql-editor\n style="${r.buttonStyle}"\n class="${r.buttonClass}"\n execute-query="${r.executeQuery}"\n repository-id="${r.repositoryId}"\n query="${l}">\n </open-in-sparql-editor>\n </div>`:s}}const c=(e,r)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,r),e.renderer.rules.fence=o(e.renderer.rules.fence,r)}},89598:(e,r,n)=>{n.r(r),n.d(r,{markdownCodeCopyPlugin:()=>c});const t={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,r){return r=_.merge({},t,r),(...n)=>{const[t,o]=n,c=t[o],l=t[o].content.replaceAll('"',""").replaceAll("'","'"),s=e(...n);return"fence"===c.type&&s.trim()?`<div style="position: relative">\n ${s}\n <copy-to-clipboard\n style="${r.buttonStyle}"\n class="${r.buttonClass}"\n tooltip-text="ttyg.chat_panel.btn.copy_sparql.tooltip"\n text-to-copy="${l}">\n </copy-to-clipboard>\n </div>`:s}}const c=(e,r)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,r),e.renderer.rules.fence=o(e.renderer.rules.fence,r)}},89647:(e,r,n)=>{function t(e,r){return{templateUrl:"js/angular/core/templates/markdown-content/markdown-content.html",restrict:"E",scope:{content:"@",options:"="},link:function(n,t){n.markdownContent=void 0;n.markdownContent=r.renderMarkdown(n.content,n.options),n.$evalAsync(()=>{const r=t.find(".markdown-content");e(angular.element(r).contents())(n)})}}}n.r(r),n(12940),angular.module("graphdb.framework.core.directives.markdown-content",["graphdb.framework.core.services.markdown-service"]).directive("markdownContent",t),t.$inject=["$compile","MarkdownService"]}};
|
|
2
|
-
//# sourceMappingURL=89647.b1a4e522d685f0b5d60f.bundle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"89647.b1a4e522d685f0b5d60f.bundle.js","mappings":"sLAIA,MAAMA,EAAgC,CAClCC,YAAa,4DAcjB,SAASC,EAAgBC,GACrB,MAAMC,GAAmBC,EAAAA,EAAAA,KACpBC,IAAIC,EAAAA,wBACJD,IAAIE,EAAAA,iCAAkCR,GAkC3C,MAAO,CACHS,eAXmBA,CAACC,EAAMC,KAC1B,IACI,OAAOR,EAAKS,YAlBCD,IACbA,GACON,EAAAA,EAAAA,KACFC,IAAIC,EAAAA,uBAAwBI,GAC5BL,IAAIE,EAAAA,iCAAkCK,EAAEC,MAAM,CAAC,EAAGd,EAA+BW,IAGnFP,EAWqBW,CAAYJ,GAAQK,OAAON,GACvD,CAAE,MAAOO,GAGL,OAFAC,QAAQC,MAAM,4BAA6BF,GAEpCd,EAAKS,YAAYF,EAC5B,GAMR,CA9CAU,QACKC,OAAO,mDAAoD,IAC3DC,QAAQ,kBAAmBpB,GAEhCA,EAAgBqB,QAAU,CAAC,O,yECjB3B,MAAMC,EAAiC,CACnCvB,YAAa,wCACbwB,YAAa,IAyBjB,SAASC,EAAWC,EAAUC,GAE1B,OADAA,EAAUf,EAAEC,MAAM,CAAC,EAAGU,EAAgCI,GAC/C,IAAIC,KACP,MAAOC,EAAQC,GAAOF,EAChBG,EAAQF,EAAOC,GAEfE,EAAUH,EAAOC,GAAKE,QACvBC,WAAW,IAAK,UAChBA,WAAW,IAAK,UACfC,EAAeR,KAAYE,GAEjC,MAAmB,UAAfG,EAAMI,MAAmC,WAAfJ,EAAMK,MA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IAKlE,EAER,C,gBApDAhC,QACKC,OAAO,qDAvBI,CACZ,qDAuBCuC,UAAU,kBAAmBd,GAElCA,EAAyBvB,QAAU,CAAC,WAAY,kB","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/core/services/markdown/markdown.service.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/core/services/markdown/plugins/markdown-open-in-sparql-editor-plugin.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/core/services/markdown/plugins/markdown-code-copy-plugin.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/core/directives/markdown-content/markdown-content.js"],"sourcesContent":["import markdownIt from 'markdown-it';\nimport {markdownCodeCopyPlugin} from \"./plugins/markdown-code-copy-plugin\";\nimport {markdownOpenInSparqlEditorPlugin} from \"./plugins/markdown-open-in-sparql-editor-plugin\";\n\nconst OPEN_IN_SPARQL_PLUGIN_OPTIONS = {\n buttonStyle: 'position: absolute; top: 0; right: 0; margin-right: 24px'\n};\n\n/**\n * AngularJS service that provides methods for rendering Markdown text.\n * @class MarkdownService\n * @param {$sce} $sce - AngularJS service for Strict Contextual Escaping.\n */\nangular\n .module('graphdb.framework.core.services.markdown-service', [])\n .service('MarkdownService', MarkdownService);\n\nMarkdownService.$inject = ['$sce'];\n\nfunction MarkdownService($sce) {\n const markdownInstance = markdownIt()\n .use(markdownCodeCopyPlugin)\n .use(markdownOpenInSparqlEditorPlugin, OPEN_IN_SPARQL_PLUGIN_OPTIONS);\n\n /**\n * Retrieves a Markdown-it instance with optional custom configuration.\n * @function getMarkdown\n * @param {Object} [config] - Optional custom configuration for Markdown-it.\n * @return {Object} The Markdown instance.\n */\n const getMarkdown = (config) => {\n if (config) {\n return markdownIt()\n .use(markdownCodeCopyPlugin, config)\n .use(markdownOpenInSparqlEditorPlugin, _.merge({}, OPEN_IN_SPARQL_PLUGIN_OPTIONS, config));\n\n }\n return markdownInstance;\n };\n\n /**\n * Renders Markdown text into HTML.\n * @function renderMarkdown\n * @param {string} text - The Markdown text to render.\n * @return {string} The rendered HTML, or the original text in case of an error.\n */\n const renderMarkdown = (text, config) => {\n try {\n return $sce.trustAsHtml(getMarkdown(config).render(text));\n } catch (e) {\n console.error('Error rendering markdown:', e);\n // Return the original text in case of an error\n return $sce.trustAsHtml(text);\n }\n };\n\n return {\n renderMarkdown\n };\n}\n","const DEFAULT_MARKDOWN_CONFIGURATION = {\n buttonStyle: \"position: absolute; top: 0; right: 0;\",\n buttonClass: \"\"\n};\n\n/**\n * This function enhances the rendering of fenced code blocks in markdown that contain SPARQL queries\n * by appending an \"open in SPARQL editor\" button to each SPARQL code block.\n *\n * @param {Function} origRule The original rule function responsible for rendering code blocks.\n * @param {Object} options The options to customize the rendering. These will be merged with the default configuration.\n * Options model description:\n * ```JSON\n * {\n * // Inline CSS styles applied to position the button inside the code block. Defaults to positioning the button at the top-right of the block.\n * buttonStyle: \"position: absolute; top: 0; right: 0;\",\n * // The CSS class for styling the button.\n * buttonClass: \"\",\n * // A flag that determines whether the SPARQL query should be automatically executed when opened in the SPARQL editor. Defaults to `false`.\n * executeQuery: false,\n * // The ID of the repository that the SPARQL query will be executed against.\n * repositoryId: ''\n * }\n * ```\n *\n * @return {Function} A function that renders a fenced code block with an \"open in SPARQL editor\" button when the block is recognized as containing SPARQL code.\n */\nfunction renderCode(origRule, options) {\n options = _.merge({}, DEFAULT_MARKDOWN_CONFIGURATION, options);\n return (...args) => {\n const [tokens, idx] = args;\n const token = tokens[idx];\n\n const content = tokens[idx].content\n .replaceAll('\"', '"')\n .replaceAll(\"'\", \"'\");\n const origRendered = origRule(...args);\n\n if (token.type === 'fence' && token.info === 'sparql' && origRendered.trim()) {\n return `<div style=\"position: relative\">\n ${origRendered}\n <open-in-sparql-editor\n style=\"${options.buttonStyle}\"\n class=\"${options.buttonClass}\"\n execute-query=\"${options.executeQuery}\"\n repository-id=\"${options.repositoryId}\"\n query=\"${content}\">\n </open-in-sparql-editor>\n </div>`;\n } else {\n return origRendered;\n }\n };\n}\n\nexport const markdownOpenInSparqlEditorPlugin = (md, options) => {\n md.renderer.rules.code_block = renderCode(md.renderer.rules.code_block, options);\n md.renderer.rules.fence = renderCode(md.renderer.rules.fence, options);\n};\n","const DEFAULT_MARKDOWN_CONFIGURATION = {\n buttonStyle: \"position: absolute; top: 0; right: 0;\",\n buttonClass: \"\"\n};\n\n/**\n * This function enhances the rendering of code blocks in markdown by appending a \"copy to clipboard\" button to each code block.\n *\n * @param {Function} origRule The original rule function responsible for rendering code blocks.\n * @param {Object} options The options to customize the rendering. These will be merged with the default configuration.\n * Options model description:\n * ```JSON\n * {\n * // Inline CSS styles applied to position the button inside the code block. Defaults to positioning the button at the top-right of the block.\n * buttonStyle: \"position: absolute; top: 0; right: 0;\",\n * // The CSS class for styling the button. The default applies Bootstrap-like styles with a small button size and a secondary theme\n * buttonClass: \"btn btn-link btn-sm secondary\",\n * }\n * ```\n * @return {Function} A function that renders a code block with a \"copy to clipboard\" button, when a fenced code block is detected.\n */\nfunction renderCode(origRule, options) {\n options = _.merge({}, DEFAULT_MARKDOWN_CONFIGURATION, options);\n return (...args) => {\n const [tokens, idx] = args;\n const token = tokens[idx];\n\n const content = tokens[idx].content\n .replaceAll('\"', '"')\n .replaceAll(\"'\", \"'\");\n const origRendered = origRule(...args);\n\n if (token.type === 'fence' && origRendered.trim()) {\n return `<div style=\"position: relative\">\n ${origRendered}\n <copy-to-clipboard\n style=\"${options.buttonStyle}\"\n class=\"${options.buttonClass}\"\n tooltip-text=\"ttyg.chat_panel.btn.copy_sparql.tooltip\"\n text-to-copy=\"${content}\">\n </copy-to-clipboard>\n </div>`;\n } else {\n return origRendered;\n }\n };\n}\n\nexport const markdownCodeCopyPlugin = (md, options) => {\n md.renderer.rules.code_block = renderCode(md.renderer.rules.code_block, options);\n md.renderer.rules.fence = renderCode(md.renderer.rules.fence, options);\n};\n","import 'angular/core/services/markdown/markdown.service';\n\nconst modules = [\n 'graphdb.framework.core.services.markdown-service'\n];\n\n/**\n * @ngdoc directive\n * @name graphdb.framework.core.directives.markdown-content:markdownContent\n * @restrict E\n *\n * @description\n * The `markdownContent` directive is used to render and compile Markdown content inside AngularJS applications.\n * It dynamically compiles any AngularJS directives within the rendered Markdown content, ensuring that the\n * directives are properly recognized and executed.\n *\n * @param {string=} content The markdown content to be rendered. This can be passed dynamically from the scope.\n * @param {object=} options Optional configuration object to pass to the Markdown rendering engine, providing\n * customization for how the Markdown is rendered.\n *\n * @example\n * Usage:\n * <markdown-content content=\"markdownText\" options=\"markdownOptions\"></markdown-content>\n */\nangular\n .module('graphdb.framework.core.directives.markdown-content', modules)\n .directive('markdownContent', markdownContentDirective);\n\nmarkdownContentDirective.$inject = ['$compile', 'MarkdownService'];\n\nfunction markdownContentDirective($compile, MarkdownService) {\n return {\n templateUrl: 'js/angular/core/templates/markdown-content/markdown-content.html',\n restrict: 'E',\n scope: {\n content: '@',\n options: '='\n },\n link: function ($scope, element) {\n\n // =========================\n // Public variables\n // =========================\n\n /**\n * The rendered HTML content generated from the provided Markdown.\n *\n * @type {string} markdownContent\n */\n $scope.markdownContent = undefined;\n\n // =========================\n // Private functions\n // =========================\n\n const init = () => {\n $scope.markdownContent = MarkdownService.renderMarkdown($scope.content, $scope.options);\n compileMarkdownAnswerContents();\n };\n\n /**\n * Manually compiles AngularJS directives within the dynamically generated markdown HTML content.\n * AngularJS does not automatically detect and compile directives inside HTML that is dynamically\n * inserted, so this function ensures that the content is compiled after it is rendered.\n */\n const compileMarkdownAnswerContents = () => {\n $scope.$evalAsync(() => {\n // Find the dynamically rendered element that needs to be compiled\n const markdownElement = element.find('.markdown-content');\n $compile(angular.element(markdownElement).contents())($scope);\n });\n };\n\n init();\n }\n };\n}\n"],"names":["OPEN_IN_SPARQL_PLUGIN_OPTIONS","buttonStyle","MarkdownService","$sce","markdownInstance","markdownIt","use","markdownCodeCopyPlugin","markdownOpenInSparqlEditorPlugin","renderMarkdown","text","config","trustAsHtml","_","merge","getMarkdown","render","e","console","error","angular","module","service","$inject","DEFAULT_MARKDOWN_CONFIGURATION","buttonClass","renderCode","origRule","options","args","tokens","idx","token","content","replaceAll","origRendered","type","info","trim","executeQuery","repositoryId","md","renderer","rules","code_block","fence","markdownContentDirective","$compile","templateUrl","restrict","scope","link","$scope","element","markdownContent","undefined","$evalAsync","markdownElement","find","contents","directive"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=95953;export const __webpack_ids__=[11637,14102,17187,25593,27473,50479,51682,59263,61105,65191,66989,75232,95953];export const __webpack_modules__={11637:(e,t,n)=>{n.r(t),n.d(t,{SimilarityIndexStatus:()=>o});const o={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>o.CREATING===e,isBuildingStatus:e=>o.BUILDING===e,isBuiltStatus:e=>o.BUILT===e,isRebuildingStatus:e=>o.REBUILDING===e,isOutdatedStatus:e=>o.OUTDATED===e,isInterruptedStatus:e=>o.INTERRUPTED===e,isObsoleteStatus:e=>o.OBSOLETE===e,isFailedStatus:e=>o.FAILED===e}},14102:(e,t,n)=>{n.r(t),n.d(t,{SimilarityIndex:()=>i});var o=n(50479),r=n(11637);class i{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=o.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return o.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return o.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return o.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}},17187:(e,t,n)=>{function o(e,t,n,o,r){e.agentInstructionsExplain=r.agentInstructionsExplain,e.close=()=>{t.dismiss({})},e.onCloseAgentInstructionsExplainModal=()=>{t.dismiss({})};const i=[];e.$on("$destroy",()=>{i.forEach(e=>e())})}n.r(t),n(51682),n(66989),n(36665),n(69289),angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",o),o.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},25593:(e,t,n)=>{n.r(t),n.d(t,{ConnectorListModel:()=>i,ConnectorModel:()=>s,ConnectorSettingsModel:()=>a,ConnectorTypeModel:()=>r,ConnectorTypesListModel:()=>o});class o{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class i{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class s{constructor(e){this._name=e.name,this._settings=new a(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class a{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},27473:(e,t,n)=>{n.r(t),n.d(t,{mapIndexesResponseToSimilarityIndex:()=>r});var o=n(14102);const r=e=>e.map(e=>{const t=new o.SimilarityIndex;return t.type=e.type,t.stopList=e.stopList,t.status=e.status,t.selectQuery=e.selectQuery,t.searchQuery=e.searchQuery,t.sameAs=e.sameAs,t.options=e.options,t.name=e.name,t.infer=e.infer,t.analyzer=e.analyzer,t.analogicalQuery=e.analogicalQuery,t})},50479:(e,t,n)=>{n.r(t),n.d(t,{SimilarityIndexType:()=>o});const o={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>o.TEXT===e,isTextLiteralType:e=>o.TEXT_LITERAL===e,isPredicationType:e=>o.PREDICATION===e}},51682:(e,t,n)=>{n.r(t),n(75232);var o=n(27473),r=n(38940);function i(e){const t=(t,n)=>e.getIndexes(t,n).then(e=>(0,o.mapIndexesResponseToSimilarityIndex)(e.data));return{getIndexes:t,getIndexesAsMenuModel:(e,n)=>t(e,n).then(e=>e.map(e=>new r.SelectMenuOptionsModel({label:e.name,value:e.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},59263:(e,t,n)=>{n.r(t),n.d(t,{connectorTypesListMapper:()=>r,connectorsMapper:()=>i});var o=n(25593);const r=e=>{const t=new o.ConnectorTypesListModel;return e?(t.connectors=Object.keys(e).map(t=>new o.ConnectorTypeModel({name:t,prefix:e[t]})),t):t},i=e=>{const t=new o.ConnectorListModel;return e?(t.connectors=e.map(e=>new o.ConnectorModel(e)),t):t}},61105:()=>{angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];const e="rest/connectors";function t(t){return{getConnectors:function(n,o){return n?t.get(e,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":o}}):t.get(e)},initConnector:function(n){return t.get(`${e}/options?prefix=${n}`)},hasConnector:function(n,o,r){return o?t.get(`${e}/existing?prefix=${n}`,{headers:{"X-GraphDB-Repository":o,"X-GraphDB-Repository-Location":r}}):t.get(`${e}/existing?prefix=${n}`)},checkConnector:function(n){return t.post(`${e}/check`,n,{headers:{"Content-Type":"text/plain"}})}}}},65191:()=>{function e(e,t,n,o,r){e.externalIntegrationConfiguration=r.externalIntegrationConfiguration,e.difyExtension=r.difyExtensionUrl,e.queryMethods=r.queryMethodsUrl,e.agentId=r.agentId,e.agentName=r.agentName,e.close=()=>{t.dismiss({})},e.onCloseExternalIntegrationConfigurationModal=()=>{t.dismiss({})}}angular.module("graphdb.framework.ttyg.controllers.external-integration-configuration-modal",[]).controller("ExternalIntegrationConfigurationModalController",e),e.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},66989:(e,t,n)=>{n.r(t),n(61105);var o=n(59263),r=n(38940);function i(e){const t=(t,n)=>e.getConnectors(t,n).then(e=>(0,o.connectorTypesListMapper)(e.data)),n=(t,n,r)=>e.hasConnector(encodeURIComponent(t),n,r).then(e=>(0,o.connectorsMapper)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:(e,n,o)=>t(n,o).then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(e,t,o)=>n(e,t,o).then(e=>e.connectors.map(e=>new r.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},75232:()=>{angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];const e="rest/similarity";function t(t){return{getIndexes:function(n,o){return n?t.get(e,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":o}}):t.get(e)},getSearchQueries:function(){return t.get(`${e}/config`)},rebuildIndex:function(e){return n("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(n){return t.delete(`${e}?name=${n.name}`)},createIndex:n,getSamples:function(){return t.get(`${e}/samples`)},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function n(n,o,r,i,s,a,l,c,d,g,u){return t({method:n,url:`${e}`,noCancelOnRouteChange:!0,data:{name:o,options:r,selectQuery:i,stopList:l,infer:c,sameAs:d,type:g,analyzer:u,searchQuery:s,analogicalQuery:a}})}}},84430:(e,t,n)=>{n.r(t),n(65191);var o=n(70826);function r(e,t,n){return{open:function(r){return t.getExternalUrl().then(t=>{const n=function(e,t){return{agentName:e.name,agentId:e.id,queryMethodsUrl:`${t}/rest/llm/tool/ttyg/${e.id}`,difyExtensionUrl:`${t}/rest/llm/ttyg/${e.id}/dify`}}(r,t.data);return e.open({templateUrl:"js/angular/ttyg/templates/modal/external-integration-configuration-modal.html",controller:"ExternalIntegrationConfigurationModalController",windowClass:"external-integration-configuration-modal",backdrop:"static",resolve:{dialogModel:()=>n}}).result.then(()=>{}).catch(()=>{})}).catch(e=>{n.error(getError(e,0,o.TTYG_ERROR_MSG_LENGTH))})}}}angular.module("graphdb.framework.ttyg.services.externalIntegrationModal",["graphdb.framework.ttyg.controllers.external-integration-configuration-modal"]).factory("ExternalIntegrationModalService",r),r.$inject=["$uibModal","LocationsRestService","toastr"]},95953:(e,t,n)=>{n.r(t);var o=n(69937),r=n(28319),i=(n(51682),n(66989),n(36665),n(69289),n(17187),n(84430),n(51445)),s=n(71920),a=n(70826),l=n(16135),c=n(76076);function d(e,t,n,d,g,u,m,p,y,h,I,S,x,E,T,M,f,_,v){e.AGENT_OPERATION=a.AGENT_OPERATION,e.operation=S.operation,e.savingAgent=!1,e.agentFormModel=S.agentFormModel,e.activeRepositoryInfo=S.activeRepositoryInfo,e.extractionMethodLoaderFlags={[r.ExtractionMethod.SIMILARITY]:!1},e.activeRepositoryList=S.activeRepositoryList,e.extractionMethods=r.ExtractionMethod,e.additionalExtractionMethods=r.AdditionalExtractionMethod,e.ExtractionMethodTemplates=T,e.showAdvancedSettings=!1,e.showHighTemperatureWarning=!1,e.showSystemInstructionWarning=!1,e.similarityIndexes=[],e.retrievalConnectors=[],e.ftsEnabled=!1,e.autocompleteSuggestions=[],e.showContextSize=null!==e.agentFormModel.contextSize,e.toggleExtractionMethod=t=>{t.expanded=t.selected,e.agentSettingsForm.extractionMethods.$setTouched(),O(),w[t.method](t)},e.onExtractionMethodPanelToggle=e=>{e.toggleCollapse(),w[e.method](e)},e.toggleAdditionalExtractionMethod=t=>{t.expanded=t.selected,e.checkAutocompleteIndexEnabled(),k[t.method](t)},e.onAdditionalExtractionMethodPanelToggle=e=>{e.toggleCollapse(),k[e.method](e)},e.helpInfoForModel={ttygHelpInfo:function(){const e=(0,o.Gz)(I.instant("ttyg.agent.create_agent_modal.form.model.hint"));return p.trustAsHtml(e)}(),linkText:I.instant("ttyg.agent.create_agent_modal.form.model.link_text"),documentationUrl:c.DocumentationUrlResolver.getDocumentationUrl(v.productShortVersion,"talk-to-graph.html#prerequisites-and-configuration")},e.getFTSDisabledHelpMessage=()=>{const t=(0,o.Gz)(I.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"repository/edit/"+e.agentFormModel.repositoryId}));return p.trustAsHtml(t)},e.goToAutocompleteView=t=>{t.preventDefault(),x.emit(s.TTYGEventName.GO_TO_AUTOCOMPLETE_INDEX_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.goToCreateSimilarityView=t=>{t.preventDefault(),x.emit(s.TTYGEventName.GO_TO_CREATE_SIMILARITY_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.goToConnectorsView=t=>{t.preventDefault(),x.emit(s.TTYGEventName.GO_TO_CONNECTORS_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.ok=()=>{const t=e.agentFormModel.toPayload();return R[e.operation](t)},e.cancel=()=>{t.dismiss({})},e.close=()=>{t.dismiss({})},e.updateSimilaritySearchPanel=(t=!1)=>{const n=e.agentFormModel.assistantExtractionMethods.getSimilarityExtractionMethod();n.selected&&(t&&(n.similarityIndex=null),$(n))},e.updateRetrievalConnectorPanel=(t=!1)=>{const n=e.agentFormModel.assistantExtractionMethods.getRetrievalExtractionMethod();n.selected&&(t&&(n.retrievalConnectorInstance=null),N(n))},e.checkIfFTSEnabled=()=>{e.agentFormModel.repositoryId?e.agentFormModel.assistantExtractionMethods.getFTSSearchExtractionMethod().selected?(e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!0,m.getRepositoryModel({id:e.agentFormModel.repositoryId}).then(t=>{e.ftsEnabled=t.getParamValue(i.REPOSITORY_PARAMS.enableFtsIndex)}).catch(e=>{L(e,"ttyg.agent.messages.error_repository_config_loading")}).finally(()=>{e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!1,e.agentSettingsForm.$setValidity("FTSDisabled",e.ftsEnabled)})):e.agentSettingsForm.$setValidity("FTSDisabled",!0):e.agentSettingsForm.$setValidity("FTSDisabled",!1)},e.openExternalIntegrationConfig=()=>{const t=e.agentFormModel;_.open(t)},e.onRepositoryChange=()=>{U(!0,!0)},e.checkAutocompleteIndexEnabled=t=>{if(t||(t=e.agentFormModel.additionalExtractionMethods.additionalExtractionMethods.find(e=>e.method===r.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH)),t&&!t.selected||!e.agentFormModel.repositoryId)return;const n=b();M.checkAutocompleteStatus(n.repositoryId,n.repositoryLocation).then(t=>{e.autocompleteEnabled=t,e.agentSettingsForm.$setValidity("autocompleteDisabled",t)}).catch(t=>{e.agentSettingsForm.$setValidity("autocompleteDisabled",!1),y.error(getError(t))})},e.onRestoreDefaultContextSize=()=>{e.agentFormModel.contextSize=e.agentFormModel.contextSizeCopy},e.onRestoreDefaultSystemInstructions=()=>{e.agentFormModel.instructions.systemInstruction=e.agentFormModel.instructions.systemInstructionCopy},e.onRestoreDefaultUserInstructions=()=>{e.agentFormModel.instructions.userInstruction=e.agentFormModel.instructions.userInstructionCopy},e.onTemperatureChange=()=>{e.showHighTemperatureWarning=e.agentFormModel.temperature.value>1},e.onSystemInstructionChange=()=>{""===e.agentFormModel.instructions.systemInstruction||e.showSystemInstructionWarning||(e.showSystemInstructionWarning=!0,n.openModalAlert({title:I.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.title"),message:I.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.body")}).result.then(function(){})),""===e.agentFormModel.instructions.systemInstruction&&(e.showSystemInstructionWarning=!1)},e.onExplainAgentSettings=()=>{const t=e.agentFormModel.toPayload();E.explainAgentSettings(t).then(e=>{const t={templateUrl:"js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html",controller:"AgentInstructionsExplainModalController",windowClass:"agent-instructions-explain-modal",backdrop:"static",resolve:{dialogModel:function(){return{agentInstructionsExplain:e}}},size:"lg"};d.open(t).result.then(()=>{})}).catch(e=>{y.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))})},e.getSuggestions=t=>{const n=t.target.value;f.getAutocompleteSuggestions(n).then(l.mapUriAsNtripleAutocompleteResponse).then(t=>{e.autocompleteSuggestions=t.map(e=>({text:e.value}))}).catch(e=>{y.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))})};const R={[a.AGENT_OPERATION.CREATE]:e=>C(e),[a.AGENT_OPERATION.EDIT]:e=>A(e),[a.AGENT_OPERATION.CLONE]:e=>F(e)},C=n=>(e.savingAgent=!0,E.createAgent(n).then(e=>{t.close(e),y.success(I.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{y.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),A=n=>(e.savingAgent=!0,E.editAgent(n).then(e=>{t.close(e),y.success(I.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{y.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),F=n=>(e.savingAgent=!0,E.createAgent(n).then(e=>{t.close(e),y.success(I.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{y.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),L=(e,t)=>{console.error(e),y.error(I.instant(t))},O=()=>{e.agentSettingsForm.extractionMethods.$setValidity("required",e.agentFormModel.hasExtractionMethodSelected())},b=()=>{const t=e.activeRepositoryList.find(t=>t.value===e.agentFormModel.repositoryId);return{repositoryId:t?t.data.repository.id:void 0,repositoryLocation:t?t.data.repository.location:void 0}},$=t=>{if(t.selected||e.agentSettingsForm.$setValidity("missingIndex",!0),e.agentFormModel.repositoryId&&t.expanded){e.extractionMethodLoaderFlags[t.method]=!0;const n=b();g.getIndexesAsMenuModel(n.repositoryId,n.repositoryLocation).then(n=>{e.similarityIndexes=n,e.agentSettingsForm.$setValidity("missingIndex",!t.selected||!(!n||!n.length)),G(e.similarityIndexes,t)}).catch(t=>{e.agentSettingsForm.$setValidity("missingIndex",!1),L(t,"ttyg.agent.messages.error_similarity_indexes_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})}},G=(e,t)=>{if(0===e.length)return void(t.similarityIndex=null);const n=e.find(e=>e.value===t.similarityIndex);t.similarityIndex=n?n.value:e[0].value},N=t=>{if(e.agentFormModel.repositoryId&&(t.selected||e.agentSettingsForm.$setValidity("missingConnector",!0),t.expanded)){e.extractionMethodLoaderFlags[t.method]=!0;const n=b();u.getConnectorPrefixByName("ChatGPT Retrieval",n.repositoryId,n.repositoryLocation).then(e=>u.getConnectorsByTypeAsSelectMenuOptions(e,n.repositoryId,n.repositoryLocation)).then(n=>{e.retrievalConnectors=n,e.agentSettingsForm.$setValidity("missingConnector",!t.selected||!(!n||!n.length)),D(e.retrievalConnectors,t)}).catch(t=>{e.agentSettingsForm.$setValidity("missingConnector",!1),L(t,"ttyg.agent.messages.error_retrieval_connectors_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})}},D=(e,t)=>{if(0===e.length)return void(t.retrievalConnectorInstance=null);const n=e.find(e=>e.value===t.retrievalConnectorInstance);t.retrievalConnectorInstance=n?n.value:e[0].value},w={[r.ExtractionMethod.FTS_SEARCH]:t=>{e.checkIfFTSEnabled()},[r.ExtractionMethod.SPARQL]:e=>{},[r.ExtractionMethod.SIMILARITY]:e=>$(e),[r.ExtractionMethod.RETRIEVAL]:e=>N(e)},k={[r.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH]:e=>P(e),[r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH]:()=>{}},P=t=>{t.selected||e.agentSettingsForm.$setValidity("autocompleteDisabled",!0),e.checkAutocompleteIndexEnabled(t)},U=(t=!1,n=!1)=>{e.checkIfFTSEnabled(),e.updateSimilaritySearchPanel(t),e.updateRetrievalConnectorPanel(n),e.checkAutocompleteIndexEnabled()},B=()=>{document.hidden||U()},V=(e,t)=>{const n=document.getElementById(e);n&&(n.value=t)};document.addEventListener("visibilitychange",B),e.$on("$destroy",()=>{document.removeEventListener("visibilitychange",B)}),b().repositoryId||(e.agentFormModel.repositoryId=null),setTimeout(O,0),t.rendered.then(()=>{V("temperatureSlider",e.agentFormModel.temperature.value),V("topPSlider",e.agentFormModel.topP.value)})}angular.module("graphdb.framework.ttyg.controllers.agent-settings-modal",["graphdb.framework.core.services.similarity","graphdb.framework.core.services.connectors","graphdb.framework.rest.repositories.service","graphdb.framework.ttyg.controllers.agent-instructions-explain-modal","graphdb.framework.ttyg.services.externalIntegrationModal","ngTagsInput"]).constant("ExtractionMethodTemplates",{iri_discovery_search:"iri-discovery-search",autocomplete_iri_discovery_search:"autocomplete-iri-discovery-search"}).controller("AgentSettingsModalController",d),d.$inject=["$scope","$uibModalInstance","ModalService","$uibModal","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel","TTYGContextService","TTYGService","ExtractionMethodTemplates","AutocompleteService","AutocompleteRestService","ExternalIntegrationModalService","productInfo"]}};
|
|
2
|
-
//# sourceMappingURL=95953.4ea6a7c68a22779ba299.bundle.js.map
|