graphdb-workbench 3.3.3-TR1 → 3.3.3

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.
Files changed (183) hide show
  1. package/dist/{10759.b2e1d643d681ebd9c124.bundle.js → 10759.57059f90014058a86952.bundle.js} +2 -2
  2. package/dist/10759.57059f90014058a86952.bundle.js.map +1 -0
  3. package/dist/{18961.01ff5fcc0f4b9f99236e.bundle.js → 18961.732c0c355509452ac6da.bundle.js} +2 -2
  4. package/dist/18961.732c0c355509452ac6da.bundle.js.map +1 -0
  5. package/dist/{20694.4becb7771236462dcc5a.bundle.js → 20694.03b5abf23347ae0bad65.bundle.js} +2 -2
  6. package/dist/{20694.4becb7771236462dcc5a.bundle.js.map → 20694.03b5abf23347ae0bad65.bundle.js.map} +1 -1
  7. package/dist/38644.7c01b17edbb63f7bf2cc.bundle.js +2 -0
  8. package/dist/38644.7c01b17edbb63f7bf2cc.bundle.js.map +1 -0
  9. package/dist/39518.a40451f994622fd35756.bundle.js +2 -0
  10. package/dist/{39518.1c641a7dc1c50a526845.bundle.js.map → 39518.a40451f994622fd35756.bundle.js.map} +1 -1
  11. package/dist/{39874.710e94f211579215f997.bundle.js → 39874.17dde6245fc4cc91bb58.bundle.js} +2 -2
  12. package/dist/39874.17dde6245fc4cc91bb58.bundle.js.map +1 -0
  13. package/dist/{45758.1212136a37dd4f7528f8.bundle.js → 45758.b9ce5fe0ed6c8c4fc141.bundle.js} +2 -2
  14. package/dist/45758.b9ce5fe0ed6c8c4fc141.bundle.js.map +1 -0
  15. package/dist/{60560.6ba1b091a34af6c00770.bundle.js → 60560.62ed0cb0b3d07fecbf28.bundle.js} +2 -2
  16. package/dist/60560.62ed0cb0b3d07fecbf28.bundle.js.map +1 -0
  17. package/dist/{60730.35493812d428872eddb6.bundle.js → 60730.a9fc5342637039776562.bundle.js} +2 -2
  18. package/dist/60730.a9fc5342637039776562.bundle.js.map +1 -0
  19. package/dist/67888.6279be833ab8b2f2f9e6.bundle.js +2 -0
  20. package/dist/67888.6279be833ab8b2f2f9e6.bundle.js.map +1 -0
  21. package/dist/{7815.2aec5ebbcd434f5582ff.bundle.js → 7815.89cc59b6625e84913351.bundle.js} +2 -2
  22. package/dist/7815.89cc59b6625e84913351.bundle.js.map +1 -0
  23. package/dist/{78681.9e1d4e064e9e1fb5fb21.bundle.js → 78681.6c8614aad7e5465be505.bundle.js} +2 -2
  24. package/dist/78681.6c8614aad7e5465be505.bundle.js.map +1 -0
  25. package/dist/{82206.229877d7931849236456.bundle.js → 82206.473f6d4f79e12f6a9da6.bundle.js} +2 -2
  26. package/dist/82206.473f6d4f79e12f6a9da6.bundle.js.map +1 -0
  27. package/dist/{82926.bbdac6a7e9eb883ae97b.bundle.js → 82926.164acb5a9d5ffd8e8ce3.bundle.js} +2 -2
  28. package/dist/{82926.bbdac6a7e9eb883ae97b.bundle.js.map → 82926.164acb5a9d5ffd8e8ce3.bundle.js.map} +1 -1
  29. package/dist/99448.b8ccb0c0fd74bb99d5a5.bundle.js +2 -0
  30. package/dist/99448.b8ccb0c0fd74bb99d5a5.bundle.js.map +1 -0
  31. package/dist/css/splash-screen.css +1 -1
  32. package/dist/index.html +9 -9
  33. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  34. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  35. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  36. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  37. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  38. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  39. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +2 -2
  40. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  41. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  42. package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
  43. package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
  44. package/dist/js/angular/core/templates/search-resource-input.html +1 -1
  45. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  46. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  47. package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
  48. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  49. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  50. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  51. package/dist/js/angular/security/templates/user.html +2 -2
  52. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  53. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  54. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  55. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  56. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  57. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  58. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
  59. package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
  60. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  61. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  62. package/dist/legacyWorkbench.ce850285bee5789a585d.js +3 -0
  63. package/dist/{legacyWorkbench.4d8a4e8dde83fc9ac427.js.map → legacyWorkbench.ce850285bee5789a585d.js.map} +1 -1
  64. package/dist/main.83f9d186d9b0827c6774.js +3 -0
  65. package/dist/main.83f9d186d9b0827c6774.js.map +1 -0
  66. package/dist/pages/aclmanagement.html +1 -1
  67. package/dist/pages/autocomplete.html +1 -1
  68. package/dist/pages/choose-repository-type.html +1 -1
  69. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  70. package/dist/pages/create-index.html +1 -1
  71. package/dist/pages/dependencies.html +1 -1
  72. package/dist/pages/domainRangeInfo.html +2 -2
  73. package/dist/pages/edit.html +1 -1
  74. package/dist/pages/explore.html +1 -1
  75. package/dist/pages/export.html +1 -1
  76. package/dist/pages/find.html +1 -1
  77. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  78. package/dist/pages/graphs-visualizations.html +7 -7
  79. package/dist/pages/guides.html +1 -1
  80. package/dist/pages/home.html +1 -1
  81. package/dist/pages/import.html +2 -2
  82. package/dist/pages/jdbc-create.html +1 -1
  83. package/dist/pages/jdbc.html +1 -1
  84. package/dist/pages/monitor/backup-and-restore.html +1 -1
  85. package/dist/pages/monitor/queries.html +1 -1
  86. package/dist/pages/monitor/resources.html +1 -1
  87. package/dist/pages/namespaces.html +2 -2
  88. package/dist/pages/plugins.html +1 -1
  89. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  90. package/dist/pages/rdfrank.html +2 -2
  91. package/dist/pages/repositories.html +1 -1
  92. package/dist/pages/repository.html +1 -1
  93. package/dist/pages/similarity-indexes.html +1 -1
  94. package/dist/pages/sparql-editor.html +1 -1
  95. package/dist/pages/sparql-template-create.html +1 -1
  96. package/dist/pages/sparql-templates.html +1 -1
  97. package/dist/pages/ux-test1.html +2 -2
  98. package/dist/pages/webapi.html +2 -2
  99. package/dist/res/swagger5/index.html +11 -11
  100. package/dist/shared-components/cjs/index-CTK5NoJt.js +2 -0
  101. package/dist/shared-components/cjs/loader.cjs.js +1 -1
  102. package/dist/shared-components/cjs/onto-cookie-consent_2.cjs.entry.js +1 -1
  103. package/dist/shared-components/cjs/onto-dialog_2.cjs.entry.js +1 -1
  104. package/dist/shared-components/cjs/onto-dropdown.cjs.entry.js +1 -1
  105. package/dist/shared-components/cjs/onto-footer_5.cjs.entry.js +1 -1
  106. package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
  107. package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
  108. package/dist/shared-components/cjs/onto-permission-banner.cjs.entry.js +1 -1
  109. package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
  110. package/dist/shared-components/cjs/onto-toastr.cjs.entry.js +1 -1
  111. package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
  112. package/dist/shared-components/cjs/translate-label.cjs.entry.js +1 -1
  113. package/dist/shared-components/collection/collection-manifest.json +2 -2
  114. package/dist/shared-components/collection/components/dialogs/onto-dialog.js +1 -1
  115. package/dist/shared-components/collection/components/onto-dropdown/onto-dropdown.js +1 -1
  116. package/dist/shared-components/collection/components/onto-language-selector/onto-language-selector.js +1 -1
  117. package/dist/shared-components/collection/components/onto-license-alert/onto-license-alert.js +1 -1
  118. package/dist/shared-components/collection/components/onto-loader/onto-loader.js +1 -1
  119. package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
  120. package/dist/shared-components/collection/components/onto-operations-notification/onto-operations-notification.js +1 -1
  121. package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.js +1 -1
  122. package/dist/shared-components/collection/components/onto-search-resource-input/onto-search-resource-input.js +1 -1
  123. package/dist/shared-components/collection/components/onto-test-context/onto-test-context.js +1 -1
  124. package/dist/shared-components/collection/components/onto-toggle-switch/onto-toggle-switch.js +1 -1
  125. package/dist/shared-components/collection/components/onto-user-menu/onto-user-menu.js +1 -1
  126. package/dist/shared-components/collection/components/translate-label/translate-label.js +1 -1
  127. package/dist/shared-components/esm/index-EiAqSNMq.js +2 -0
  128. package/dist/shared-components/esm/loader.js +1 -1
  129. package/dist/shared-components/esm/onto-cookie-consent_2.entry.js +1 -1
  130. package/dist/shared-components/esm/onto-dialog_2.entry.js +1 -1
  131. package/dist/shared-components/esm/onto-dropdown.entry.js +1 -1
  132. package/dist/shared-components/esm/onto-footer_5.entry.js +1 -1
  133. package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
  134. package/dist/shared-components/esm/onto-layout.entry.js +1 -1
  135. package/dist/shared-components/esm/onto-permission-banner.entry.js +1 -1
  136. package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
  137. package/dist/shared-components/esm/onto-toastr.entry.js +1 -1
  138. package/dist/shared-components/esm/shared-components.js +1 -1
  139. package/dist/shared-components/esm/translate-label.entry.js +1 -1
  140. package/dist/shared-components/shared-components/{p-6d34b2cb.entry.js → p-1103d100.entry.js} +1 -1
  141. package/dist/shared-components/shared-components/{p-9b2c6e80.entry.js → p-2e2bb175.entry.js} +1 -1
  142. package/dist/shared-components/shared-components/{p-b754971e.entry.js → p-50735428.entry.js} +1 -1
  143. package/dist/shared-components/shared-components/{p-7e47d850.entry.js → p-59707503.entry.js} +1 -1
  144. package/dist/shared-components/shared-components/{p-598d33d7.entry.js → p-6a37f808.entry.js} +1 -1
  145. package/dist/shared-components/shared-components/{p-9214bb16.entry.js → p-6fb5eec5.entry.js} +1 -1
  146. package/dist/shared-components/shared-components/{p-c27fe716.entry.js → p-97930684.entry.js} +1 -1
  147. package/dist/shared-components/shared-components/p-EiAqSNMq.js +2 -0
  148. package/dist/shared-components/shared-components/{p-b5d4081d.entry.js → p-a5a49d87.entry.js} +1 -1
  149. package/dist/shared-components/shared-components/{p-74888633.entry.js → p-d134e207.entry.js} +1 -1
  150. package/dist/shared-components/shared-components/{p-5886e663.entry.js → p-ec2f4ea5.entry.js} +1 -1
  151. package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
  152. package/dist/shared-components/types/stencil-public-runtime.d.ts +10 -147
  153. package/package.json +1 -1
  154. package/dist/10759.b2e1d643d681ebd9c124.bundle.js.map +0 -1
  155. package/dist/18961.01ff5fcc0f4b9f99236e.bundle.js.map +0 -1
  156. package/dist/38644.cc471c67239fa24901cc.bundle.js +0 -2
  157. package/dist/38644.cc471c67239fa24901cc.bundle.js.map +0 -1
  158. package/dist/39518.1c641a7dc1c50a526845.bundle.js +0 -2
  159. package/dist/39874.710e94f211579215f997.bundle.js.map +0 -1
  160. package/dist/45758.1212136a37dd4f7528f8.bundle.js.map +0 -1
  161. package/dist/60560.6ba1b091a34af6c00770.bundle.js.map +0 -1
  162. package/dist/60730.35493812d428872eddb6.bundle.js.map +0 -1
  163. package/dist/67888.7224e1b2689d73c4d468.bundle.js +0 -2
  164. package/dist/67888.7224e1b2689d73c4d468.bundle.js.map +0 -1
  165. package/dist/7815.2aec5ebbcd434f5582ff.bundle.js.map +0 -1
  166. package/dist/78681.9e1d4e064e9e1fb5fb21.bundle.js.map +0 -1
  167. package/dist/82206.229877d7931849236456.bundle.js.map +0 -1
  168. package/dist/99448.b9922814bd15808a9d1c.bundle.js +0 -2
  169. package/dist/99448.b9922814bd15808a9d1c.bundle.js.map +0 -1
  170. package/dist/legacyWorkbench.4d8a4e8dde83fc9ac427.js +0 -3
  171. package/dist/main.14f083264cd64618d96a.js +0 -3
  172. package/dist/main.14f083264cd64618d96a.js.map +0 -1
  173. package/dist/shared-components/cjs/app-globals-V2Kpy_OQ.js +0 -1
  174. package/dist/shared-components/cjs/index-L_ZmIeD5.js +0 -2
  175. package/dist/shared-components/esm/app-globals-DQuL1Twl.js +0 -1
  176. package/dist/shared-components/esm/index-CGqARDX4.js +0 -2
  177. package/dist/shared-components/shared-components/p-CGqARDX4.js +0 -2
  178. package/dist/shared-components/shared-components/p-DQuL1Twl.js +0 -1
  179. /package/dist/{legacyWorkbench.4d8a4e8dde83fc9ac427.js.LICENSE.txt → legacyWorkbench.ce850285bee5789a585d.js.LICENSE.txt} +0 -0
  180. /package/dist/{main.14f083264cd64618d96a.js.LICENSE.txt → main.83f9d186d9b0827c6774.js.LICENSE.txt} +0 -0
  181. /package/dist/shared-components/cjs/{index-L_ZmIeD5.js.LICENSE.txt → index-CTK5NoJt.js.LICENSE.txt} +0 -0
  182. /package/dist/shared-components/esm/{index-CGqARDX4.js.LICENSE.txt → index-EiAqSNMq.js.LICENSE.txt} +0 -0
  183. /package/dist/shared-components/shared-components/{p-CGqARDX4.js.LICENSE.txt → p-EiAqSNMq.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- import{r as e}from"./p-CGqARDX4.js";import{EventEmitter as t,ServiceProvider as o,ConfigurationContextService as n,LicenseContextService as s,ProductInfoContextService as a,RepositoryService as i,RepositoryContextService as r,mapAuthenticatedUserResponseToModel as l,SecurityContextService as u,AuthenticationStorageService as c,AuthenticationService as p,LanguageContextService as d,EventService as m,NavigationEnd as g,RepositoryLocationContextService as h,ToastMessage as _,CREATE_TOAST_EVENT as b,service as f,OntoToastrService as y,notify as v,AutocompleteContextService as k,NamespacesContextService as x,NamespaceMap as C,AuthorizationService as R,AuthStrategyResolver as A,SecurityConfig as S}from"@ontotext/workbench-api";var E={"menu.logo.link.title":"GraphDB logo","menu.buttons.expand":"Expand menu","menu.buttons.collapse":"Collapse menu",common:{import:"Import",button:{ok:"OK",close:"Close"},loading:"Loading..."},"menu.rdf.label":"RDF","menu.explore.label":"Explore","menu.graphs.overview.label":"Graphs overview","menu.class.relationships.label":"Class relationships","menu.class.hierarchy.label":"Class hierarchy","menu.similarity.label":"Similarity","menu.sparql.label":"SPARQL","menu.monitor.label":"Monitor","menu.queries.and.updates.label":"Queries and Updates","menu.backup_and_restore.label":"Backup and Restore","menu.enableFtsIndex.label":"Enable full-text search (FTS) index","menu.ftsIndexes.label":"FTS indexes to build (comma delimited)","menu.ftsStringLiteralsIndex.label":"FTS index for xsd:string literals","menu.ftsIrisIndex.label":"FTS index for full-text indexing of IRIs","menu.ftsDefaultAnalyzer.label":"Analyzer for the default index","menu.resources.label":"System","menu.setup.label":"Setup","menu.lab.label":"Lab","menu.ttyg.label":"Talk to Your Graph","menu.repositories.label":"Repositories","menu.aclmanagement.label":"ACL Management","menu.users.and.access.label":"Users and Access","menu.my.settings.label":"My Settings","menu.cluster.label":"Cluster","menu.connectors.label":"Connectors","menu.namespaces.label":"Namespaces","menu.autocomplete.label":"Autocomplete","menu.jdbc.label":"JDBC","menu.sparql.template.label":"SPARQL Templates","menu.license.label":"License","menu.help.label":"Help","menu.system.information.label":"System information","menu.rest.api.label":"REST API","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutorials","menu.support.label":"Support","menu.guides.label":"Interactive guides","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Endpoint Management","menu.graphql-playground.label":"GraphQL Playground","visual.graph.label":"Visual graph","view.rdf.rank.title":"RDF Rank",language_selector:{toggle_menu:{label:"Select language",tooltip:"Current language: English"},language:{en:{label:"en &middot; English",tooltip:{selected:"Current language",not_selected:"Change language to English"}},fr:{label:"fr &middot; Français",tooltip:{selected:"Current language",not_selected:"Changer la langue en Français"}}}},"repository-selector":{btn:{toggle:"Choose repository",no_repositories:"No accessible repositories"},tooltip:{repository:"Repository",location:"Location",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"System",ontop:"Ontop",fedx:"FedX",unknown:"Unknown"},access:"Access",accesses:{read:"Read",write:"Write",read_write:"Read/Write"},"repository-size":{total:"Total statements",explicit:"Explicit",inferred:"Inferred",expansion_ratio:"Expansion ratio (total/explicit)"}}},license_alert:{label:"No valid license",no_license_set:"No license was set."},footer:{label:{all_rights_reserved:"All rights reserved."}},permission_banner:{no_access_error:"You have no permission to access this functionality with your current credentials.",change_menu_or_user_warning:"Please choose another menu item or login as a different user."},cookie:{cookie_consent:"We may use cookies to help us improve GraphDB and develop better features. No personal or sensitive information is collected. By clicking “OK” you consent to our ",cookie_policy_url_label:"Cookie Policy",policy:{title:"Cookies Policy",purpose_heading:"Purpose",purpose_text:"This Cookies Policy explains the data Ontotext collects and uses when you use our GraphDB product, specifically the Free Edition.",purpose_enterprise_text:"Note that if you upgrade to the commercial GraphDB Enterprise Edition, no cookies will be stored on your device, regardless of settings.",privacy_commitment_heading:"Ontotext privacy commitment",privacy_commitment_text:"We are committed to not collecting any personal data or information when you use GraphDB Free. Additionally:",privacy_commitment_1:"We will not sell or rent the technical information we collect to others.",privacy_commitment_2:"We strive to maximize the protection of all technical data collected.",cookies_heading:"Cookies",cookies_text:"When you use GraphDB Free Edition, Ontotext will store cookies on your device to collect anonymous information about how you interact with the product. This technical data helps us improve and refine our software. Importantly, we cannot link this information to you personally or to any identifiable data. These cookies are solely intended to help us understand user interactions and identify potential issues within GraphDB.",manage_cookies_heading:"Manage cookies",statistic_cookies:"GraphDB analytics cookies",statistic_tooltip:"Toggle GraphDB analytics cookies",statistic_text:"These cookies help us understand how users interact with different aspects of GraphDB by collecting and reporting information anonymously. This data allows us to improve the overall product experience and develop features based on how GraphDB is used, without collecting any personal information.",third_party_cookies:"Third-party cookies",third_party_tooltip:"Toggle Third-party cookies",third_party_cookies_text:"We use Google Analytics 4 (GA4) cookies to help us recognize unique users and sessions, track interactions, and collect data such as page views, session duration, and engagement. These cookies are managed by Google, meaning we do not control their operation. IP anonymization is enabled by default in GA4, so it cannot store IP addresses or track users personally. No data is shared between GA4 and other Google products, and processing occurs globally, primarily in the USA, without breaching GDPR, as no personal data is collected.",change_cookies:"You can change your cookie preferences at any time in",change_cookies_location4:"Cookie policy"}},security:{user:{settings:"User settings"}},operations_notification:{links:{queries:"Running queries",updates:"Running updates",imports:"Running imports",CREATE_BACKUP_IN_PROGRESS:"Creating backup",RESTORE_BACKUP_IN_PROGRESS:"Restoring backup",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Creating cloud backup",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restoring cloud backup",IN_SYNC:"In sync",RECOVERING:"Recovering",OUT_OF_SYNC:"Out of sync",UNAVAILABLE_NODES:"Unavailable nodes"}},user_menu:{my_settings:"My settings",logout:"Logout",login:"Login"},rdf_search:{labels:{search:"Search RDF resources",hint:'Hint: "abC" matches "abC*", "ab c*" and "ab-c*"'},buttons:{table:"Table",visual:"Visual"},tooltips:{close_search_area:"Close search",clear:"Clear"},toasts:{use_view_resource:"<b>Search RDF resources</b></br>Use <b>View resource</b> on this page",autocomplete_is_off:"Autocomplete is OFF<br>Go to Setup -> Autocomplete",empty_input:"Please fill the input field!",invalid_uri:"Invalid IRI"}},openid:{errors:{title:"OpenID Authentication Failed",unknown_flow:"Unknown auth flow: {{authFlow}}",invalid_pkce_state:"Invalid PKCE state",cannot_retrieve_token:"Cannot retrieve token after login: {{error}}",cannot_refresh_token:"Could not refresh OpenID token: {{error}}",user_no_access:"User has no access to GraphDB"}}},G={"menu.logo.link.title":"Logo GraphDB","menu.buttons.expand":"Développer le menu","menu.buttons.collapse":"Réduire le menu",common:{import:"Importer",button:{ok:"D'accord",close:"Fermer"},loading:"Chargement..."},"menu.rdf.label":"RDF","menu.explore.label":"Explorez","menu.graphs.overview.label":"Aperçu des graphes","menu.class.relationships.label":"Relations entre les classes","menu.class.hierarchy.label":"Hiérarchie des classes","menu.similarity.label":"Similarité","menu.sparql.label":"SPARQL","menu.monitor.label":"Surveiller","menu.queries.and.updates.label":"Requêtes et mises à jour","menu.backup_and_restore.label":"Sauvegarde et Restauration","menu.enableFtsIndex.label":"Activer l'index de recherche plein texte","menu.ftsIndexes.label":"Index de recherche en texte intégral à construire (délimités par des virgules)","menu.ftsStringLiteralsIndex.label":"Index de recherche en texte intégral pour les littéraux xsd:string","menu.ftsIrisIndex.label":"Index de recherche en texte intégral pour l'indexation en texte intégral des IRI","menu.ftsDefaultAnalyzer.label":"Analyseur pour l'index par défaut","menu.resources.label":"Système","menu.setup.label":"Configurer","menu.lab.label":"Laboratoire","menu.ttyg.label":"Parlez à votre graphe","menu.repositories.label":"Dépôts","menu.aclmanagement.label":"Gestion ACL","menu.users.and.access.label":"Utilisateurs et accès","menu.my.settings.label":"Mes paramètres","menu.cluster.label":"Cluster","menu.connectors.label":"Connecteurs","menu.namespaces.label":"Espaces de noms","menu.autocomplete.label":"Autocomplétion","menu.jdbc.label":"JDBC","menu.sparql.template.label":"Modèles SPARQL","menu.license.label":"Licence","menu.help.label":"Aide","menu.system.information.label":"Informations sur le système","menu.rest.api.label":"API REST","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutoriels","menu.support.label":"Support","menu.guides.label":"Guides interactifs","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Gestion des points de terminaison","menu.graphql-playground.label":"GraphQL Playground","visual.graph.label":"Graphique visuel","view.rdf.rank.title":"Rang RDF",language_selector:{toggle_menu:{label:"Sélectionner la langue",tooltip:"Langue actuelle : Français"},language:{en:{label:"en &middot; Anglais",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Anglais"}},fr:{label:"fr &middot; Français",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Français"}}}},"repository-selector":{btn:{toggle:"Choisissez le dépôt",no_repositories:"Aucun dépôt accessible"},tooltip:{repository:"Dépôt",location:"L'emplacement",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"Système",ontop:"Ontop",fedx:"FedX",unknown:"Inconnu"},access:"Accéder",accesses:{read:"Lire",write:"Écrire",read_write:"Lire/Écrire"},"repository-size":{total:"Total des déclarations",explicit:"Explicite",inferred:"Déduit",expansion_ratio:"Taux d'expansion (total/explicite)"}}},license_alert:{label:"Aucune licence valide",no_license_set:"Aucune licence n'a été définie."},footer:{label:{all_rights_reserved:"Tous droits réservés."}},permission_banner:{no_access_error:"Vous n'avez pas la permission d'accéder à cette fonctionnalité avec vos informations d'identification actuelles.",change_menu_or_user_warning:"Veuillez choisir un autre élément du menu ou vous connecter comme un autre utilisateur."},cookie:{cookie_consent:"Nous pouvons utiliser des cookies pour nous aider à améliorer GraphDB et développer de meilleures fonctionnalités. Aucune information personnelle ou sensible n'est collectée. En cliquant sur « D'accord », vous consentez à notre ",cookie_policy_url_label:"politique de cookies",policy:{title:"Politique de cookies",purpose_heading:"Objectif",purpose_text:"Cette politique de cookies explique les données qu'Ontotext collecte et utilise lorsque vous utilisez notre produit GraphDB, en particulier l'édition Free.",purpose_enterprise_text:"Veuillez noter que si vous passez à l'édition commerciale GraphDB Enterprise, aucun cookie ne sera stocké sur votre appareil, quel que soit le paramètre.",privacy_commitment_heading:"Engagement de confidentialité d'Ontotext",privacy_commitment_text:"Nous nous engageons à ne collecter aucune donnée personnelle ou information lorsque vous utilisez GraphDB Free. De plus :",privacy_commitment_1:"Nous ne vendrons ni ne louerons à d'autres les informations techniques que nous collectons.",privacy_commitment_2:"Nous nous efforçons de maximiser la protection de toutes les données techniques collectées.",cookies_heading:"Cookies",cookies_text:"Lorsque vous utilisez l'édition GraphDB Free, Ontotext stockera des cookies sur votre appareil pour collecter des informations anonymes sur la façon dont vous interagissez avec le produit. Ces données techniques nous aident à améliorer et affiner notre produit. Il est important de noter que nous ne pouvons pas relier ces informations à vous personnellement ni à aucune donnée identifiable. Ces cookies ont uniquement pour but de nous aider à comprendre les interactions des utilisateurs et à identifier les éventuels problèmes dans GraphDB.",manage_cookies_heading:"Gérer les cookies",statistic_cookies:"Cookies d'analyse GraphDB",statistic_tooltip:"Activer/désactiver les cookies d'analyse GraphDB",statistic_text:"Ces cookies nous aident à comprendre comment les utilisateurs interagissent avec différents aspects de GraphDB en collectant et en rapportant des informations de manière anonyme. Ces données nous permettent d'améliorer l'expérience globale du produit et de développer des fonctionnalités en fonction de l'utilisation de GraphDB, sans collecter d'informations personnelles.",third_party_cookies:"Cookies tiers",third_party_tooltip:"Activer/désactiver les cookies tiers",third_party_cookies_text:"Nous utilisons les cookies Google Analytics 4 (GA4) pour nous aider à reconnaître les utilisateurs et sessions uniques, à suivre les interactions et à collecter des données telles que les pages consultées, la durée des sessions et l'engagement. Ces cookies sont gérés par Google, ce qui signifie que nous n'avons pas de contrôle sur leur fonctionnement. L'anonymisation IP est activée par défaut dans GA4, de sorte qu'il ne peut ni stocker les adresses IP ni suivre les utilisateurs personnellement. Aucune donnée n'est partagée entre GA4 et d'autres produits Google, et le traitement s'effectue à l'échelle mondiale, principalement aux États-Unis, sans enfreindre le RGPD, car aucune donnée personnelle n'est collectée.",change_cookies:"Vous pouvez modifier vos préférences de cookies à tout moment dans",change_cookies_location4:"Politique de cookies"}},security:{user:{settings:"Paramètres de l'utilisateur"}},operations_notification:{links:{queries:"Exécution de requêtes",updates:"Exécution de mises à jour",imports:"Exécution d'importations",CREATE_BACKUP_IN_PROGRESS:"Création de sauvegarde en cours",RESTORE_BACKUP_IN_PROGRESS:"Restauration de sauvegarde en cours",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Création de sauvegarde cloud en cours",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restauration de sauvegarde cloud en cours",IN_SYNC:"Synchronisé",RECOVERING:"Récupération en cours",OUT_OF_SYNC:"Désynchronisé",UNAVAILABLE_NODES:"Nœuds indisponibles"}},user_menu:{my_settings:"Mes paramètres",logout:"Déconnexion",login:"Se connecter"},rdf_search:{labels:{search:"Rechercher des ressources RDF",hint:'Indice : "abC" correspond à "abC*", "ab c*" et "ab-c*".'},buttons:{table:"Tableau",visual:"Visuel"},tooltips:{close_search_area:"Fermer la recherche",clear:"Clair"},toasts:{use_view_resource:"<b>Rechercher des ressources RDF</b></br>Utilisez <b>Voir la ressource</b> sur cette page",autocomplete_is_off:"L'autocomplétion est désactivée<br>Aller à Configuration -> Autocomplétion",empty_input:"S'il vous plaît remplir le champ de saisie!",invalid_uri:"IRI non valide"}},openid:{errors:{title:"Échec de l'authentification OpenID",unknown_flow:"Flux d'authentification inconnu: {{authFlow}}",invalid_pkce_state:"État PKCE invalide",cannot_retrieve_token:"Impossible de récupérer le jeton après la connexion: {{error}}",cannot_refresh_token:"Impossible de rafraîchir le jeton OpenID: {{error}}",user_no_access:"L'utilisateur n'a pas accès à GraphDB"}}};const I=class{constructor(o){e(this,o),this.bundles={en:E,fr:G},this.eventEmitter=new t,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return o.get(n).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return o.get(s).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return o.get(a).updateProductInfo(e),Promise.resolve()}loadRepositories(){return o.get(i).getRepositories().then(e=>{o.get(r).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?l(e):void 0;return o.get(u).updateAuthenticatedUser(t),o.get(c).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return o.get(u).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return o.get(p).login(e,t)}changeLanguage(e){return o.get(d).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return o.get(m).emit(new g(e,t)),Promise.resolve()}updateSelectedRepository(e){return o.get(r).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return o.get(h).updateIsLoading(e),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:b,payload:new _(e.type,e.message)}),Promise.resolve()}addNotification(e){return f(y),v(e),Promise.resolve()}setAutocomplete(e){return o.get(k).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return o.get(x).updateNamespaces(new C(e)),Promise.resolve()}onLanguageChanged(){o.get(d).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=o.get(c),n=o.get(u),s=o.get(R);t.clearAuthToken(),f(A).resolveStrategy(e).initialize().then(t=>{n.updateIsLoggedIn(t),t||(s.hasFreeAccess()?s.initializeFreeAccess():e.hasOverrideAuth()&&s.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new S(t)}};export{I as onto_test_context};
1
+ import{r as e}from"./p-EiAqSNMq.js";import{EventEmitter as t,ServiceProvider as o,ConfigurationContextService as n,LicenseContextService as s,ProductInfoContextService as i,RepositoryService as a,RepositoryContextService as r,mapAuthenticatedUserResponseToModel as l,SecurityContextService as u,AuthenticationStorageService as c,AuthenticationService as p,LanguageContextService as d,EventService as m,NavigationEnd as g,RepositoryLocationContextService as h,ToastMessage as _,CREATE_TOAST_EVENT as b,service as f,OntoToastrService as y,notify as v,AutocompleteContextService as k,NamespacesContextService as x,NamespaceMap as C,AuthorizationService as R,AuthStrategyResolver as A,SecurityConfig as S}from"@ontotext/workbench-api";var E={"menu.logo.link.title":"GraphDB logo","menu.buttons.expand":"Expand menu","menu.buttons.collapse":"Collapse menu",common:{import:"Import",button:{ok:"OK",close:"Close"},loading:"Loading..."},"menu.rdf.label":"RDF","menu.explore.label":"Explore","menu.graphs.overview.label":"Graphs overview","menu.class.relationships.label":"Class relationships","menu.class.hierarchy.label":"Class hierarchy","menu.similarity.label":"Similarity","menu.sparql.label":"SPARQL","menu.monitor.label":"Monitor","menu.queries.and.updates.label":"Queries and Updates","menu.backup_and_restore.label":"Backup and Restore","menu.enableFtsIndex.label":"Enable full-text search (FTS) index","menu.ftsIndexes.label":"FTS indexes to build (comma delimited)","menu.ftsStringLiteralsIndex.label":"FTS index for xsd:string literals","menu.ftsIrisIndex.label":"FTS index for full-text indexing of IRIs","menu.ftsDefaultAnalyzer.label":"Analyzer for the default index","menu.resources.label":"System","menu.setup.label":"Setup","menu.lab.label":"Lab","menu.ttyg.label":"Talk to Your Graph","menu.repositories.label":"Repositories","menu.aclmanagement.label":"ACL Management","menu.users.and.access.label":"Users and Access","menu.my.settings.label":"My Settings","menu.cluster.label":"Cluster","menu.connectors.label":"Connectors","menu.namespaces.label":"Namespaces","menu.autocomplete.label":"Autocomplete","menu.jdbc.label":"JDBC","menu.sparql.template.label":"SPARQL Templates","menu.license.label":"License","menu.help.label":"Help","menu.system.information.label":"System information","menu.rest.api.label":"REST API","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutorials","menu.support.label":"Support","menu.guides.label":"Interactive guides","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Endpoint Management","menu.graphql-playground.label":"GraphQL Playground","visual.graph.label":"Visual graph","view.rdf.rank.title":"RDF Rank",language_selector:{toggle_menu:{label:"Select language",tooltip:"Current language: English"},language:{en:{label:"en &middot; English",tooltip:{selected:"Current language",not_selected:"Change language to English"}},fr:{label:"fr &middot; Français",tooltip:{selected:"Current language",not_selected:"Changer la langue en Français"}}}},"repository-selector":{btn:{toggle:"Choose repository",no_repositories:"No accessible repositories"},tooltip:{repository:"Repository",location:"Location",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"System",ontop:"Ontop",fedx:"FedX",unknown:"Unknown"},access:"Access",accesses:{read:"Read",write:"Write",read_write:"Read/Write"},"repository-size":{total:"Total statements",explicit:"Explicit",inferred:"Inferred",expansion_ratio:"Expansion ratio (total/explicit)"}}},license_alert:{label:"No valid license",no_license_set:"No license was set."},footer:{label:{all_rights_reserved:"All rights reserved."}},permission_banner:{no_access_error:"You have no permission to access this functionality with your current credentials.",change_menu_or_user_warning:"Please choose another menu item or login as a different user."},cookie:{cookie_consent:"We may use cookies to help us improve GraphDB and develop better features. No personal or sensitive information is collected. By clicking “OK” you consent to our ",cookie_policy_url_label:"Cookie Policy",policy:{title:"Cookies Policy",purpose_heading:"Purpose",purpose_text:"This Cookies Policy explains the data Ontotext collects and uses when you use our GraphDB product, specifically the Free Edition.",purpose_enterprise_text:"Note that if you upgrade to the commercial GraphDB Enterprise Edition, no cookies will be stored on your device, regardless of settings.",privacy_commitment_heading:"Ontotext privacy commitment",privacy_commitment_text:"We are committed to not collecting any personal data or information when you use GraphDB Free. Additionally:",privacy_commitment_1:"We will not sell or rent the technical information we collect to others.",privacy_commitment_2:"We strive to maximize the protection of all technical data collected.",cookies_heading:"Cookies",cookies_text:"When you use GraphDB Free Edition, Ontotext will store cookies on your device to collect anonymous information about how you interact with the product. This technical data helps us improve and refine our software. Importantly, we cannot link this information to you personally or to any identifiable data. These cookies are solely intended to help us understand user interactions and identify potential issues within GraphDB.",manage_cookies_heading:"Manage cookies",statistic_cookies:"GraphDB analytics cookies",statistic_tooltip:"Toggle GraphDB analytics cookies",statistic_text:"These cookies help us understand how users interact with different aspects of GraphDB by collecting and reporting information anonymously. This data allows us to improve the overall product experience and develop features based on how GraphDB is used, without collecting any personal information.",third_party_cookies:"Third-party cookies",third_party_tooltip:"Toggle Third-party cookies",third_party_cookies_text:"We use Google Analytics 4 (GA4) cookies to help us recognize unique users and sessions, track interactions, and collect data such as page views, session duration, and engagement. These cookies are managed by Google, meaning we do not control their operation. IP anonymization is enabled by default in GA4, so it cannot store IP addresses or track users personally. No data is shared between GA4 and other Google products, and processing occurs globally, primarily in the USA, without breaching GDPR, as no personal data is collected.",change_cookies:"You can change your cookie preferences at any time in",change_cookies_location4:"Cookie policy"}},security:{user:{settings:"User settings"}},operations_notification:{links:{queries:"Running queries",updates:"Running updates",imports:"Running imports",CREATE_BACKUP_IN_PROGRESS:"Creating backup",RESTORE_BACKUP_IN_PROGRESS:"Restoring backup",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Creating cloud backup",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restoring cloud backup",IN_SYNC:"In sync",RECOVERING:"Recovering",OUT_OF_SYNC:"Out of sync",UNAVAILABLE_NODES:"Unavailable nodes"}},user_menu:{my_settings:"My settings",logout:"Logout",login:"Login"},rdf_search:{labels:{search:"Search RDF resources",hint:'Hint: "abC" matches "abC*", "ab c*" and "ab-c*"'},buttons:{table:"Table",visual:"Visual"},tooltips:{close_search_area:"Close search",clear:"Clear"},toasts:{use_view_resource:"<b>Search RDF resources</b></br>Use <b>View resource</b> on this page",autocomplete_is_off:"Autocomplete is OFF<br>Go to Setup -> Autocomplete",empty_input:"Please fill the input field!",invalid_uri:"Invalid IRI"}},openid:{errors:{title:"OpenID Authentication Failed",unknown_flow:"Unknown auth flow: {{authFlow}}",invalid_pkce_state:"Invalid PKCE state",cannot_retrieve_token:"Cannot retrieve token after login: {{error}}",cannot_refresh_token:"Could not refresh OpenID token: {{error}}",user_no_access:"User has no access to GraphDB"}}},I={"menu.logo.link.title":"Logo GraphDB","menu.buttons.expand":"Développer le menu","menu.buttons.collapse":"Réduire le menu",common:{import:"Importer",button:{ok:"D'accord",close:"Fermer"},loading:"Chargement..."},"menu.rdf.label":"RDF","menu.explore.label":"Explorez","menu.graphs.overview.label":"Aperçu des graphes","menu.class.relationships.label":"Relations entre les classes","menu.class.hierarchy.label":"Hiérarchie des classes","menu.similarity.label":"Similarité","menu.sparql.label":"SPARQL","menu.monitor.label":"Surveiller","menu.queries.and.updates.label":"Requêtes et mises à jour","menu.backup_and_restore.label":"Sauvegarde et Restauration","menu.enableFtsIndex.label":"Activer l'index de recherche plein texte","menu.ftsIndexes.label":"Index de recherche en texte intégral à construire (délimités par des virgules)","menu.ftsStringLiteralsIndex.label":"Index de recherche en texte intégral pour les littéraux xsd:string","menu.ftsIrisIndex.label":"Index de recherche en texte intégral pour l'indexation en texte intégral des IRI","menu.ftsDefaultAnalyzer.label":"Analyseur pour l'index par défaut","menu.resources.label":"Système","menu.setup.label":"Configurer","menu.lab.label":"Laboratoire","menu.ttyg.label":"Parlez à votre graphe","menu.repositories.label":"Dépôts","menu.aclmanagement.label":"Gestion ACL","menu.users.and.access.label":"Utilisateurs et accès","menu.my.settings.label":"Mes paramètres","menu.cluster.label":"Cluster","menu.connectors.label":"Connecteurs","menu.namespaces.label":"Espaces de noms","menu.autocomplete.label":"Autocomplétion","menu.jdbc.label":"JDBC","menu.sparql.template.label":"Modèles SPARQL","menu.license.label":"Licence","menu.help.label":"Aide","menu.system.information.label":"Informations sur le système","menu.rest.api.label":"API REST","menu.documentation.label":"Documentation","menu.tutorials.label":"Tutoriels","menu.support.label":"Support","menu.guides.label":"Guides interactifs","menu.plugins.label":"Plugins","menu.graphql.label":"GraphQL","menu.graphql-endpoint-management.label":"Gestion des points de terminaison","menu.graphql-playground.label":"GraphQL Playground","visual.graph.label":"Graphique visuel","view.rdf.rank.title":"Rang RDF",language_selector:{toggle_menu:{label:"Sélectionner la langue",tooltip:"Langue actuelle : Français"},language:{en:{label:"en &middot; Anglais",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Anglais"}},fr:{label:"fr &middot; Français",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Français"}}}},"repository-selector":{btn:{toggle:"Choisissez le dépôt",no_repositories:"Aucun dépôt accessible"},tooltip:{repository:"Dépôt",location:"L'emplacement",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"Système",ontop:"Ontop",fedx:"FedX",unknown:"Inconnu"},access:"Accéder",accesses:{read:"Lire",write:"Écrire",read_write:"Lire/Écrire"},"repository-size":{total:"Total des déclarations",explicit:"Explicite",inferred:"Déduit",expansion_ratio:"Taux d'expansion (total/explicite)"}}},license_alert:{label:"Aucune licence valide",no_license_set:"Aucune licence n'a été définie."},footer:{label:{all_rights_reserved:"Tous droits réservés."}},permission_banner:{no_access_error:"Vous n'avez pas la permission d'accéder à cette fonctionnalité avec vos informations d'identification actuelles.",change_menu_or_user_warning:"Veuillez choisir un autre élément du menu ou vous connecter comme un autre utilisateur."},cookie:{cookie_consent:"Nous pouvons utiliser des cookies pour nous aider à améliorer GraphDB et développer de meilleures fonctionnalités. Aucune information personnelle ou sensible n'est collectée. En cliquant sur « D'accord », vous consentez à notre ",cookie_policy_url_label:"politique de cookies",policy:{title:"Politique de cookies",purpose_heading:"Objectif",purpose_text:"Cette politique de cookies explique les données qu'Ontotext collecte et utilise lorsque vous utilisez notre produit GraphDB, en particulier l'édition Free.",purpose_enterprise_text:"Veuillez noter que si vous passez à l'édition commerciale GraphDB Enterprise, aucun cookie ne sera stocké sur votre appareil, quel que soit le paramètre.",privacy_commitment_heading:"Engagement de confidentialité d'Ontotext",privacy_commitment_text:"Nous nous engageons à ne collecter aucune donnée personnelle ou information lorsque vous utilisez GraphDB Free. De plus :",privacy_commitment_1:"Nous ne vendrons ni ne louerons à d'autres les informations techniques que nous collectons.",privacy_commitment_2:"Nous nous efforçons de maximiser la protection de toutes les données techniques collectées.",cookies_heading:"Cookies",cookies_text:"Lorsque vous utilisez l'édition GraphDB Free, Ontotext stockera des cookies sur votre appareil pour collecter des informations anonymes sur la façon dont vous interagissez avec le produit. Ces données techniques nous aident à améliorer et affiner notre produit. Il est important de noter que nous ne pouvons pas relier ces informations à vous personnellement ni à aucune donnée identifiable. Ces cookies ont uniquement pour but de nous aider à comprendre les interactions des utilisateurs et à identifier les éventuels problèmes dans GraphDB.",manage_cookies_heading:"Gérer les cookies",statistic_cookies:"Cookies d'analyse GraphDB",statistic_tooltip:"Activer/désactiver les cookies d'analyse GraphDB",statistic_text:"Ces cookies nous aident à comprendre comment les utilisateurs interagissent avec différents aspects de GraphDB en collectant et en rapportant des informations de manière anonyme. Ces données nous permettent d'améliorer l'expérience globale du produit et de développer des fonctionnalités en fonction de l'utilisation de GraphDB, sans collecter d'informations personnelles.",third_party_cookies:"Cookies tiers",third_party_tooltip:"Activer/désactiver les cookies tiers",third_party_cookies_text:"Nous utilisons les cookies Google Analytics 4 (GA4) pour nous aider à reconnaître les utilisateurs et sessions uniques, à suivre les interactions et à collecter des données telles que les pages consultées, la durée des sessions et l'engagement. Ces cookies sont gérés par Google, ce qui signifie que nous n'avons pas de contrôle sur leur fonctionnement. L'anonymisation IP est activée par défaut dans GA4, de sorte qu'il ne peut ni stocker les adresses IP ni suivre les utilisateurs personnellement. Aucune donnée n'est partagée entre GA4 et d'autres produits Google, et le traitement s'effectue à l'échelle mondiale, principalement aux États-Unis, sans enfreindre le RGPD, car aucune donnée personnelle n'est collectée.",change_cookies:"Vous pouvez modifier vos préférences de cookies à tout moment dans",change_cookies_location4:"Politique de cookies"}},security:{user:{settings:"Paramètres de l'utilisateur"}},operations_notification:{links:{queries:"Exécution de requêtes",updates:"Exécution de mises à jour",imports:"Exécution d'importations",CREATE_BACKUP_IN_PROGRESS:"Création de sauvegarde en cours",RESTORE_BACKUP_IN_PROGRESS:"Restauration de sauvegarde en cours",CREATE_CLOUD_BACKUP_IN_PROGRESS:"Création de sauvegarde cloud en cours",RESTORE_CLOUD_BACKUP_IN_PROGRESS:"Restauration de sauvegarde cloud en cours",IN_SYNC:"Synchronisé",RECOVERING:"Récupération en cours",OUT_OF_SYNC:"Désynchronisé",UNAVAILABLE_NODES:"Nœuds indisponibles"}},user_menu:{my_settings:"Mes paramètres",logout:"Déconnexion",login:"Se connecter"},rdf_search:{labels:{search:"Rechercher des ressources RDF",hint:'Indice : "abC" correspond à "abC*", "ab c*" et "ab-c*".'},buttons:{table:"Tableau",visual:"Visuel"},tooltips:{close_search_area:"Fermer la recherche",clear:"Clair"},toasts:{use_view_resource:"<b>Rechercher des ressources RDF</b></br>Utilisez <b>Voir la ressource</b> sur cette page",autocomplete_is_off:"L'autocomplétion est désactivée<br>Aller à Configuration -> Autocomplétion",empty_input:"S'il vous plaît remplir le champ de saisie!",invalid_uri:"IRI non valide"}},openid:{errors:{title:"Échec de l'authentification OpenID",unknown_flow:"Flux d'authentification inconnu: {{authFlow}}",invalid_pkce_state:"État PKCE invalide",cannot_retrieve_token:"Impossible de récupérer le jeton après la connexion: {{error}}",cannot_refresh_token:"Impossible de rafraîchir le jeton OpenID: {{error}}",user_no_access:"L'utilisateur n'a pas accès à GraphDB"}}};const G=class{constructor(o){e(this,o),this.bundles={en:E,fr:I},this.eventEmitter=new t,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return o.get(n).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return o.get(s).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return o.get(i).updateProductInfo(e),Promise.resolve()}loadRepositories(){return o.get(a).getRepositories().then(e=>{o.get(r).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?l(e):void 0;return o.get(u).updateAuthenticatedUser(t),o.get(c).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return o.get(u).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return o.get(p).login(e,t)}changeLanguage(e){return o.get(d).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return o.get(m).emit(new g(e,t)),Promise.resolve()}updateSelectedRepository(e){return o.get(r).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return o.get(h).updateIsLoading(e),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:b,payload:new _(e.type,e.message)}),Promise.resolve()}addNotification(e){return f(y),v(e),Promise.resolve()}setAutocomplete(e){return o.get(k).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return o.get(x).updateNamespaces(new C(e)),Promise.resolve()}onLanguageChanged(){o.get(d).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=o.get(c),n=o.get(u),s=o.get(R);t.clearAuthToken(),f(A).resolveStrategy(e).initialize().then(t=>{n.updateIsLoggedIn(t),t||(s.hasFreeAccess()?s.initializeFreeAccess():e.hasOverrideAuth()&&s.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new S(t)}};export{G as onto_test_context};
@@ -1 +1 @@
1
- import{p as o,H as e,b as t}from"./p-CGqARDX4.js";export{s as setNonce}from"./p-CGqARDX4.js";import{g as n}from"./p-DQuL1Twl.js";var a=o=>{const e=o.cloneNode;o.cloneNode=function(o){if("TEMPLATE"===this.nodeName)return e.call(this,o);const t=e.call(this,!1),n=this.childNodes;if(o)for(let o=0;o<n.length;o++)2!==n[o].nodeType&&t.appendChild(n[o].cloneNode(!0));return t}};(()=>{a(e.prototype);const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),o(n)})().then(async o=>(await n(),t([["p-6d34b2cb",[[260,"onto-layout",{authenticatedUser:[32],authToken:[32],securityConfig:[32],isLowResolution:[32],showHeader:[32],showNavbar:[32],isEmbedded:[32],loading:[32]},[[0,"navbarToggled","onNavbarToggled"],[9,"resize","onResize"]]]]],["p-7e47d850",[[0,"onto-permission-banner"]]],["p-5886e663",[[0,"onto-test-context",{initConfigurationContext:[64],updateLicense:[64],updateProductInfo:[64],loadRepositories:[64],setAuthenticatedUser:[64],setSecurityConfig:[64],login:[64],changeLanguage:[64],emitNavigateEndEvent:[64],updateSelectedRepository:[64],updateIsLoadingActiveRepositoryLocation:[64],addToastr:[64],addNotification:[64],setAutocomplete:[64],updateNamespaces:[64]}]]],["p-9b2c6e80",[[0,"onto-toastr",{toasts:[32]},[[16,"create-toast-event","handleToastCreate"]]]]],["p-c27fe716",[[0,"onto-dropdown",{dropdownButtonName:[1,"dropdown-button-name"],dropdownButtonNameLabelKey:[1,"dropdown-button-name-label-key"],dropdownButtonGuideSelector:[1,"dropdown-button-guide-selector"],dropdownButtonTooltip:[1,"dropdown-button-tooltip"],dropdownButtonTooltipLabelKey:[1,"dropdown-button-tooltip-label-key"],iconClass:[1,"icon-class"],items:[16],tooltipTheme:[1,"tooltip-theme"],tooltipPlacement:[1,"tooltip-placement"],dropdownAlignment:[1,"dropdown-alignment"],autoClose:[4,"auto-close"],open:[32],buttonTooltipContent:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]],["p-b754971e",[[0,"translate-label",{labelKey:[1,"label-key"],translationParameters:[16],translatedLabel:[32]}]]],["p-598d33d7",[[260,"onto-dialog",{config:[16]}],[0,"onto-toggle-switch",{checked:[1028],labelKey:[1,"label-key"],tooltipTranslationKey:[1,"tooltip-translation-key"],context:[1],tooltipLabel:[32]}]]],["p-b5d4081d",[[0,"onto-cookie-consent",{showModal:[32]},[[0,"closeDialog","onDialogClose"]]],[0,"onto-cookie-policy-dialog",null,[[0,"toggleChanged","toggleChangeHandler"]]]]],["p-9214bb16",[[0,"onto-rdf-search",{isOpen:[32],buttonConfig:[32]},[[8,"click","handleClick"]]],[0,"onto-language-selector",{dropdownAlignment:[1,"dropdown-alignment"],currentLanguage:[32]}],[0,"onto-license-alert",{license:[16]}],[0,"onto-operations-notification",{activeOperations:[16],isOpen:[32]},[[8,"click","handleOutsideClick"]]],[0,"onto-repository-selector",{currentRepository:[16],items:[16],repositorySizeInfoFetcher:[16],totalTripletsFormatter:[16],expansionRatioFormatter:[16],canWriteRepo:[16],defaultToggleButtonName:[32],noRepositoriesButtonMessage:[32]},null,{items:[{onItemsChanged:0}]}],[0,"onto-user-login"],[0,"onto-user-menu",{user:[16],securityConfig:[16],isOpen:[32]}],[0,"onto-search-icon",{tooltipLabel:[32]}],[0,"onto-search-resource-input",{context:[1],skipValidation:[4,"skip-validation"],preserveSearch:[4,"preserve-search"],isHidden:[4,"is-hidden"],buttonConfig:[16],inputValue:[32],searchResult:[32],isAutocompleteEnabled:[32]},null,{isHidden:[{onVisibilityChange:0}]}]]],["p-74888633",[[0,"onto-header",{activeOperations:[32],license:[32],isFreeAccessEnabled:[32],shouldShowSearch:[32],isHomePage:[32],repositoryList:[32],currentRoute:[32],currentRepository:[32],securityConfig:[32],user:[32],showUserMenu:[32],showLoginButton:[32],applicationLogoPath:[32]}],[0,"onto-footer",{productInfo:[32],shouldShowCookieConsent:[32]},[[0,"consentGiven","handleConsentGiven"]]],[0,"onto-navbar",{navbarCollapsed:[4,"navbar-collapsed"],menuItems:[16],menuModel:[32],isCollapsed:[32]},null,{navbarCollapsed:[{navbarCollapsedChange:0}],menuItems:[{menuItemsChanged:0}]}],[1,"onto-loader",{size:[2],messageText:[1,"message-text"]}],[0,"onto-tooltip",null,[[5,"mouseover","onMouseover"],[5,"mouseout","onMouseout"]]]]]],o)));
1
+ import{p as o,H as e,g as t,b as n}from"./p-EiAqSNMq.js";export{s as setNonce}from"./p-EiAqSNMq.js";var a=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const t=o.call(this,!1),n=this.childNodes;if(e)for(let e=0;e<n.length;e++)2!==n[e].nodeType&&t.appendChild(n[e].cloneNode(!0));return t}};(()=>{a(e.prototype);const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),o(n)})().then(async e=>(await t(),n([["p-1103d100",[[4,"onto-layout",{authenticatedUser:[32],authToken:[32],securityConfig:[32],isLowResolution:[32],showHeader:[32],showNavbar:[32],isEmbedded:[32],loading:[32]},[[0,"navbarToggled","onNavbarToggled"],[9,"resize","onResize"]]]]],["p-59707503",[[0,"onto-permission-banner"]]],["p-ec2f4ea5",[[0,"onto-test-context",{initConfigurationContext:[64],updateLicense:[64],updateProductInfo:[64],loadRepositories:[64],setAuthenticatedUser:[64],setSecurityConfig:[64],login:[64],changeLanguage:[64],emitNavigateEndEvent:[64],updateSelectedRepository:[64],updateIsLoadingActiveRepositoryLocation:[64],addToastr:[64],addNotification:[64],setAutocomplete:[64],updateNamespaces:[64]}]]],["p-2e2bb175",[[0,"onto-toastr",{toasts:[32]},[[16,"create-toast-event","handleToastCreate"]]]]],["p-97930684",[[0,"onto-dropdown",{dropdownButtonName:[1,"dropdown-button-name"],dropdownButtonNameLabelKey:[1,"dropdown-button-name-label-key"],dropdownButtonGuideSelector:[1,"dropdown-button-guide-selector"],dropdownButtonTooltip:[1,"dropdown-button-tooltip"],dropdownButtonTooltipLabelKey:[1,"dropdown-button-tooltip-label-key"],iconClass:[1,"icon-class"],items:[16],tooltipTheme:[1,"tooltip-theme"],tooltipPlacement:[1,"tooltip-placement"],dropdownAlignment:[1,"dropdown-alignment"],autoClose:[4,"auto-close"],open:[32],buttonTooltipContent:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]],["p-50735428",[[0,"translate-label",{labelKey:[1,"label-key"],translationParameters:[16,"translation-parameters"],translatedLabel:[32]}]]],["p-6a37f808",[[4,"onto-dialog",{config:[16]}],[0,"onto-toggle-switch",{checked:[1028],labelKey:[1,"label-key"],tooltipTranslationKey:[1,"tooltip-translation-key"],context:[1],tooltipLabel:[32]}]]],["p-a5a49d87",[[0,"onto-cookie-consent",{showModal:[32]},[[0,"closeDialog","onDialogClose"]]],[0,"onto-cookie-policy-dialog",null,[[0,"toggleChanged","toggleChangeHandler"]]]]],["p-6fb5eec5",[[0,"onto-rdf-search",{isOpen:[32],buttonConfig:[32]},[[8,"click","handleClick"]]],[0,"onto-language-selector",{dropdownAlignment:[1,"dropdown-alignment"],currentLanguage:[32]}],[0,"onto-license-alert",{license:[16]}],[0,"onto-operations-notification",{activeOperations:[16,"active-operations"],isOpen:[32]},[[8,"click","handleOutsideClick"]]],[0,"onto-repository-selector",{currentRepository:[16,"current-repository"],items:[16],repositorySizeInfoFetcher:[16,"repository-size-info-fetcher"],totalTripletsFormatter:[16,"total-triplets-formatter"],expansionRatioFormatter:[16,"expansion-ratio-formatter"],canWriteRepo:[16,"can-write-repo"],defaultToggleButtonName:[32],noRepositoriesButtonMessage:[32]},null,{items:["onItemsChanged"]}],[0,"onto-user-login"],[0,"onto-user-menu",{user:[16],securityConfig:[16,"security-config"],isOpen:[32]}],[0,"onto-search-icon",{tooltipLabel:[32]}],[0,"onto-search-resource-input",{context:[1],skipValidation:[4,"skip-validation"],preserveSearch:[4,"preserve-search"],isHidden:[4,"is-hidden"],buttonConfig:[16,"button-config"],inputValue:[32],searchResult:[32],isAutocompleteEnabled:[32]},null,{isHidden:["onVisibilityChange"]}]]],["p-d134e207",[[0,"onto-header",{activeOperations:[32],license:[32],isFreeAccessEnabled:[32],shouldShowSearch:[32],isHomePage:[32],repositoryList:[32],currentRoute:[32],currentRepository:[32],securityConfig:[32],user:[32],showUserMenu:[32],showLoginButton:[32],applicationLogoPath:[32]}],[0,"onto-footer",{productInfo:[32],shouldShowCookieConsent:[32]},[[0,"consentGiven","handleConsentGiven"]]],[0,"onto-navbar",{navbarCollapsed:[4,"navbar-collapsed"],menuItems:[16,"menu-items"],menuModel:[32],isCollapsed:[32]},null,{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}],[1,"onto-loader",{size:[2],messageText:[1,"message-text"]}],[0,"onto-tooltip",null,[[5,"mouseover","onMouseover"],[5,"mouseout","onMouseout"]]]]]],e)));
@@ -1,6 +1,4 @@
1
- type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
3
- type MixinInstance<F> = F extends (base: MixedInCtor) => MixedInCtor<infer I> ? I : never;
1
+ declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
4
2
  export interface ComponentDecorator {
5
3
  (opts?: ComponentOptions): ClassDecorator;
6
4
  }
@@ -63,12 +61,6 @@ export interface ShadowRootOptions {
63
61
  * focusable part is given focus, and the shadow host is given any available `:focus` styling.
64
62
  */
65
63
  delegatesFocus?: boolean;
66
- /**
67
- * Sets the slot assignment mode for the shadow root. When set to `'manual'`, enables imperative
68
- * slotting using the `HTMLSlotElement.assign()` method. Defaults to `'named'` for standard
69
- * declarative slotting behavior.
70
- */
71
- slotAssignment?: 'manual' | 'named';
72
64
  }
73
65
  export interface ModeStyles {
74
66
  [modeName: string]: string | string[];
@@ -131,9 +123,6 @@ export interface AttachInternalsDecorator {
131
123
  export interface ListenDecorator {
132
124
  (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
133
125
  }
134
- export interface ResolveVarFunction {
135
- <T>(variable: T): string;
136
- }
137
126
  export interface ListenOptions {
138
127
  /**
139
128
  * Handlers can also be registered for an event other than the host itself.
@@ -162,15 +151,7 @@ export interface StateDecorator {
162
151
  (): PropertyDecorator;
163
152
  }
164
153
  export interface WatchDecorator {
165
- (propName: any, watchOptions?: {
166
- immediate?: boolean;
167
- }): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
168
- }
169
- export interface PropSerializeDecorator {
170
- (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
171
- }
172
- export interface AttrDeserializeDecorator {
173
- (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
154
+ (propName: string): CustomMethodDecorator<any>;
174
155
  }
175
156
  export interface UserBuildConditionals {
176
157
  isDev: boolean;
@@ -219,24 +200,6 @@ export declare const AttachInternals: AttachInternalsDecorator;
219
200
  * https://stenciljs.com/docs/events#listen-decorator
220
201
  */
221
202
  export declare const Listen: ListenDecorator;
222
- /**
223
- * The `resolveVar()` function is a compile-time utility that resolves const variables
224
- * and object properties to their string literal values. This allows variables to be
225
- * used in `@Listen` and `@Event` decorators instead of hardcoded strings.
226
- *
227
- * @example
228
- * ```ts
229
- * const MY_EVENT = 'myEvent';
230
- * @Listen(resolveVar(MY_EVENT))
231
- * ```
232
- *
233
- * @example
234
- * ```ts
235
- * const EVENTS = { MY_EVENT: 'myEvent' } as const;
236
- * @Event({ eventName: resolveVar(EVENTS.MY_EVENT) })
237
- * ```
238
- */
239
- export declare const resolveVar: ResolveVarFunction;
240
203
  /**
241
204
  * The `@Method()` decorator is used to expose methods on the public API.
242
205
  * Class methods decorated with the @Method() decorator can be called directly
@@ -270,14 +233,6 @@ export declare const State: StateDecorator;
270
233
  * https://stenciljs.com/docs/reactive-data#watch-decorator
271
234
  */
272
235
  export declare const Watch: WatchDecorator;
273
- /**
274
- * Decorator to serialize a property to an attribute string.
275
- */
276
- export declare const PropSerialize: PropSerializeDecorator;
277
- /**
278
- * Decorator to deserialize an attribute string to a property.
279
- */
280
- export declare const AttrDeserialize: AttrDeserializeDecorator;
281
236
  export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
282
237
  export type ErrorHandler = (err: any, element?: HTMLElement) => void;
283
238
  /**
@@ -394,58 +349,6 @@ export declare function readTask(task: RafCallback): void;
394
349
  * Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
395
350
  */
396
351
  export declare const setErrorHandler: (handler: ErrorHandler) => void;
397
- export type TagTransformer = (tag: string) => string;
398
- /**
399
- * Sets a tag transformer to be used when rendering your custom elements.
400
- * ```ts
401
- * setTagTransformer((tag) => {
402
- * if (tag.startsWith('my-')) return `new-${tag}`
403
- * return tag;
404
- * });
405
- * ```
406
- * Will mean all your components that start with `my-` are defined instead with `new-my-` prefix.
407
- *
408
- * @param transformer the transformer function to use which must return a string.
409
- */
410
- export declare function setTagTransformer(transformer: TagTransformer): void;
411
- /**
412
- * Transforms a tag name using a transformer set via `setTagTransformer`
413
- *
414
- * @param tag - the tag to transform e.g. `my-tag`
415
- * @returns the transformed tag e.g. `new-my-tag`
416
- */
417
- export declare function transformTag(tag: string): string;
418
- /**
419
- * @deprecated - Use `MixedInCtor` instead:
420
- * ```ts
421
- * import { MixedInCtor } from '@stencil/core';
422
- *
423
- * const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
424
- * ```
425
- */
426
- export type MixinFactory = (base: MixedInCtor) => MixedInCtor;
427
- export type MixedInCtor<T = {}> = new (...args: any[]) => T;
428
- /**
429
- * Compose multiple mixin classes into a single constructor.
430
- * The resulting class has the combined instance types of all mixed-in classes.
431
- *
432
- * Example:
433
- * ```ts
434
- * import { Mixin, MixedInCtor } from '@stencil/core';
435
- *
436
- * const AWrap = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
437
- * const BWrap = <B extends MixedInCtor>(Base: B) => {class B extends Base { propB = B }; return B;}
438
- * const CWrap = <B extends MixedInCtor>(Base: B) => {class C extends Base { propC = C }; return C;}
439
- *
440
- * class X extends Mixin(AWrap, BWrap, CWrap) {
441
- * render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
442
- * }
443
- * ```
444
- *
445
- * @param mixinFactories mixin factory functions that return a class which extends from the provided class.
446
- * @returns a class that is composed from extending each of the provided classes in the order they were provided.
447
- */
448
- export declare function Mixin<const TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<MixinInstance<TMixins[number]>>;
449
352
  /**
450
353
  * This file gets copied to all distributions of stencil component collections.
451
354
  * - no imports
@@ -618,7 +521,7 @@ export interface FunctionalUtilities {
618
521
  map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
619
522
  }
620
523
  export interface FunctionalComponent<T = {}> {
621
- (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
524
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
622
525
  }
623
526
  /**
624
527
  * A Child VDOM node
@@ -673,35 +576,6 @@ export declare function h(sel: any, text: string): VNode;
673
576
  export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
674
577
  export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
675
578
  export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
676
- /**
677
- * Automatic JSX runtime functions for TypeScript's react-jsx mode.
678
- * These functions are called automatically by TypeScript when using "jsx": "react-jsx".
679
- * @param type type of node
680
- * @param props properties of node
681
- * @param key optional key for the node
682
- * @returns a jsx vnode
683
- */
684
- export declare function jsx(type: any, props: any, key?: string): VNode;
685
- /**
686
- * Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
687
- * @param type type of node
688
- * @param props properties of node
689
- * @param key optional key for the node
690
- * @returns a jsx vnode
691
- */
692
- export declare function jsxs(type: any, props: any, key?: string): VNode;
693
- /**
694
- * Automatic JSX runtime functions for TypeScript's react-jsxdev mode.
695
- * These functions are called automatically by TypeScript when using "jsx": "react-jsxdev".
696
- * @param type type of node
697
- * @param props properties of node
698
- * @param key optional key for the node
699
- * @param isStaticChildren indicates if the children are static
700
- * @param source source information
701
- * @param self reference to the component instance
702
- * @returns a jsx vnode
703
- */
704
- export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
705
579
  export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
706
580
  /**
707
581
  * A virtual DOM node
@@ -732,7 +606,7 @@ declare namespace LocalJSX {
732
606
  export { LocalJSX as JSX };
733
607
  export declare namespace JSXBase {
734
608
  interface IntrinsicElements {
735
- slot: JSXBase.SlotAttributes<HTMLSlotElement>;
609
+ slot: JSXBase.SlotAttributes;
736
610
  a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
737
611
  abbr: JSXBase.HTMLAttributes;
738
612
  address: JSXBase.HTMLAttributes;
@@ -902,7 +776,7 @@ export declare namespace JSXBase {
902
776
  use: JSXBase.SVGAttributes;
903
777
  view: JSXBase.SVGAttributes;
904
778
  }
905
- interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
779
+ interface SlotAttributes extends JSXAttributes {
906
780
  name?: string;
907
781
  slot?: string;
908
782
  onSlotchange?: (event: Event) => void;
@@ -958,9 +832,6 @@ export declare namespace JSXBase {
958
832
  popoverTargetAction?: string;
959
833
  popoverTargetElement?: Element | null;
960
834
  popoverTarget?: string;
961
- command?: string;
962
- commandFor?: string;
963
- commandfor?: string;
964
835
  }
965
836
  interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
966
837
  height?: number | string;
@@ -975,7 +846,7 @@ export declare namespace JSXBase {
975
846
  interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
976
847
  open?: boolean;
977
848
  name?: string;
978
- onToggle?: (event: ToggleEvent) => void;
849
+ onToggle?: (event: Event) => void;
979
850
  }
980
851
  interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
981
852
  cite?: string;
@@ -1681,13 +1552,6 @@ export declare namespace JSXBase {
1681
1552
  z?: number | string;
1682
1553
  zoomAndPan?: string;
1683
1554
  }
1684
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1685
- interface ToggleEvent extends Event {
1686
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1687
- readonly newState: string;
1688
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1689
- readonly oldState: string;
1690
- }
1691
1555
  interface DOMAttributes<T> extends JSXAttributes<T> {
1692
1556
  slot?: string;
1693
1557
  part?: string;
@@ -1704,10 +1568,6 @@ export declare namespace JSXBase {
1704
1568
  onCompositionstartCapture?: (event: CompositionEvent) => void;
1705
1569
  onCompositionupdate?: (event: CompositionEvent) => void;
1706
1570
  onCompositionupdateCapture?: (event: CompositionEvent) => void;
1707
- onBeforeToggle?: (event: ToggleEvent) => void;
1708
- onBeforeToggleCapture?: (event: ToggleEvent) => void;
1709
- onToggle?: (event: ToggleEvent) => void;
1710
- onToggleCapture?: (event: ToggleEvent) => void;
1711
1571
  onFocus?: (event: FocusEvent) => void;
1712
1572
  onFocusCapture?: (event: FocusEvent) => void;
1713
1573
  onFocusin?: (event: FocusEvent) => void;
@@ -1726,6 +1586,10 @@ export declare namespace JSXBase {
1726
1586
  onSubmitCapture?: (event: Event) => void;
1727
1587
  onInvalid?: (event: Event) => void;
1728
1588
  onInvalidCapture?: (event: Event) => void;
1589
+ onBeforeToggle?: (event: Event) => void;
1590
+ onBeforeToggleCapture?: (event: Event) => void;
1591
+ onToggle?: (event: Event) => void;
1592
+ onToggleCapture?: (event: Event) => void;
1729
1593
  onLoad?: (event: Event) => void;
1730
1594
  onLoadCapture?: (event: Event) => void;
1731
1595
  onError?: (event: Event) => void;
@@ -1829,7 +1693,6 @@ export interface CustomElementsDefineOptions {
1829
1693
  exclude?: string[];
1830
1694
  resourcesUrl?: string;
1831
1695
  syncQueue?: boolean;
1832
- /** @deprecated in-favour of `setTagTransformer` and `transformTag` */
1833
1696
  transformTagName?: (tagName: string) => string;
1834
1697
  jmp?: (c: Function) => any;
1835
1698
  raf?: (c: FrameRequestCallback) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench",
3
- "version": "3.3.3-TR1",
3
+ "version": "3.3.3",
4
4
  "description": "The web application for GraphDB APIs",
5
5
  "engines": {
6
6
  "node": ">=22.17"
@@ -1 +0,0 @@
1
- {"version":3,"file":"10759.b2e1d643d681ebd9c124.bundle.js","mappings":"yMAIA,MAEMA,EAAqB,CACvB,CAACC,EAAAA,UAAUC,MAAO,wBAClB,CAACD,EAAAA,UAAUE,SAAU,0BACrB,CAACF,EAAAA,UAAUG,SAAU,kBACrB,CA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EAAOxE,GAKzB,MAH2B,iBAAhBmE,IACPA,EAAcvF,KAAK6F,sBAAsBD,EAAQxE,IAE9CmE,CACX,CAUAM,qBAAAA,CAAsBD,EAAQxE,GAC1B,IAAI0E,EAAO1E,EAAI2E,MAAM,KACrB,OAAO/F,KAAKgG,eAAeJ,EAAQE,EACvC,CASAE,cAAAA,CAAeC,EAAYH,GAEvB,IAAKA,IAASG,EACV,OAEJ,MAAMC,EAAoBD,EAAWH,EAAKT,OAAO,EAAG,GAAG,IACvD,OAAoB,IAAhBS,EAAKK,OACED,EAEsB,iBAAtBA,EAEHJ,EAAKK,OAAS,EACPnG,KAAKgG,eAAeE,EAAmBJ,GAE3CI,OALX,CAQJ,CACAR,eAAAA,CAAgBH,EAAaP,GACzB,OAAIA,EACOA,EAAWoB,OAElB,CAACb,EAAac,IAAclC,EAAkCmC,WAAWf,EAAac,GAAYd,GAE/FA,CACX,CACA,iBAAOe,CAAWf,EAAac,GAC3B,OAAOA,EAAYd,EAAYQ,MAAM,KAAKM,EAAUjF,SAASmF,KAAKF,EAAUvC,OAASyB,CACzF,CACAiB,yBAAAA,GACIC,OAAOC,KAAK1G,KAAKuE,6BAA6BoC,QAASC,KACjC5G,KAAKuE,4BAA4BqC,IAAc,IACvDD,QAAS5B,GAAaA,EAASE,SAASjF,KAAK0C,UAAUkE,EAAW7B,EAASC,eAE7F,CACAN,uBAAAA,GACI1E,KAAK6G,2BAA6B7G,KAAKoE,uBAAuB0C,wBAAyBlB,IAC/EA,IACA5F,KAAKyF,cAAgBG,EACrB5F,KAAKwG,8BAGjB,CACAO,OAAAA,GACQ/G,KAAK6G,4BACL7G,KAAK6G,4BAEb,EAEJ,MAAMpE,EAAqB,IAAI0B,C","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-toastr.entry.js","webpack://root-config/./packages/shared-components/dist/esm/translation.service-nljGIprK.js"],"sourcesContent":["import { r as registerInstance, h } from './index-CGqARDX4.js';\nimport { ToastMessageList, ToastrConfig, WindowService, ToastType } from '@ontotext/workbench-api';\nimport { s as sanitizeHTML, T as TranslationService } from './translation.service-nljGIprK.js';\n\nconst ontoToastrCss = () => `.onto-toastr-container{position:fixed;z-index:9999999;pointer-events:auto;flex-direction:column}.onto-toastr-container.bottom-right{bottom:12px;right:12px}.onto-toastr-container.bottom-left{bottom:12px;left:12px}.onto-toastr-container .onto-toast{display:flex;align-items:center;border-radius:0;box-shadow:0 0 12px rgba(0, 0, 0, 0.3);position:relative;width:400px;padding:25px 0;color:white;margin-bottom:5px;overflow-wrap:break-word}.onto-toastr-container .onto-toast:hover{box-shadow:0 0 12px #000;opacity:1;cursor:pointer}.onto-toastr-container .onto-toast.warning{color:var(--gw-toast-warn-color);background-color:var(--gw-toast-warn-background);border-color:var(--gw-toast-warn-border-color)}.onto-toastr-container .onto-toast.success{background-color:var(--gw-toast-success-background);border-color:var(--gw-toast-success-border-color);color:var(--gw-toast-success-color)}.onto-toastr-container .onto-toast.error{background-color:var(--gw-toast-error-background);border-color:var(--gw-toast-error-border-color);color:var(--gw-toast-error-color)}.onto-toastr-container .onto-toast.info{background-color:var(--gw-toast-info-background);border-color:var(--gw-toast-info-border-color);color:var(--gw-toast-info-color)}.onto-toastr-container .onto-toast i{font-size:1.8rem;padding:0 20px;color:inherit}.onto-toastr-container .onto-toast i:hover{transform:none}.onto-toastr-container .onto-toast .toast-message{font-size:1.2rem;opacity:1;max-width:370px}`;\n\nconst toastTypeToIconMap = {\n [ToastType.INFO]: 'ri-information-2-fill',\n [ToastType.SUCCESS]: 'ri-checkbox-circle-line',\n [ToastType.WARNING]: 'ri-message-line',\n [ToastType.ERROR]: 'ri-alert-line',\n};\nconst OntoToastr = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n /**\n * State containing the list of active toast messages\n */\n this.toasts = new ToastMessageList([]);\n /**\n * Map to track timeout IDs for each toast message\n */\n this.toastToTimeout = new Map();\n /** Configuration options, such as toast timeout */\n this.config = ToastrConfig.getDefaultConfig();\n this.onToastMouseEnter = (toast) => () => {\n this.clearToastTimeout(toast);\n };\n this.onToastMouseLeave = (toast) => () => {\n this.setTimeoutForToast(toast);\n };\n }\n /**\n * Listen for toast creation events\n *\n * @param event - Custom event containing the toast message to be displayed\n */\n // TODO Fix jest tests are failing- usage variables in stencil decorators is enabled since 4.3.0\n // see https://github.com/stenciljs/core/issues/2924\n handleToastCreate(event) {\n this.addToast(event.detail);\n }\n render() {\n var _a;\n return (h(\"section\", { key: '2d8a4bf8daa44b240995ecc4a22e3551a4287054', style: { display: this.toasts.isEmpty() ? 'none' : 'flex' }, class: `onto-toastr-container ${this.config.position}` }, (_a = this.toasts) === null || _a === void 0 ? void 0 : _a.getItems().map((toast) => {\n var _a, _b, _c;\n return (h(\"div\", { class: `onto-toast toast ${toast.type}`, key: toast.id, onMouseEnter: this.onToastMouseEnter(toast), onMouseLeave: this.onToastMouseLeave(toast), onClick: this.handleToastClick(toast), onKeyUp: this.handleKeyUp(toast) }, h(\"i\", { class: `${toastTypeToIconMap[toast.type]}` }), h(\"span\", null, ((_a = toast.config) === null || _a === void 0 ? void 0 : _a.title) ?\n h(\"div\", { class: \"toast-title\", innerHTML: sanitizeHTML(TranslationService.translate(toast.config.title, (_b = toast.config) === null || _b === void 0 ? void 0 : _b.translationParams)) }) : '', h(\"div\", { class: \"toast-message\", innerHTML: sanitizeHTML(TranslationService.translate(toast.message, (_c = toast.config) === null || _c === void 0 ? void 0 : _c.translationParams)) }))));\n })));\n }\n /**\n * Adds a new toast message.\n * The message is added to the start of the list, so new toasts appear on top.\n * The toast is also set to automatically be removed after the specified timeout.\n *\n * @param toast - The toast message to be added\n */\n addToast(toast) {\n this.toasts.addToStart(toast);\n this.setTimeoutForToast(toast);\n this.updateToastrReference();\n }\n /**\n * Sets a timeout for automatic removal of a toast message.\n * The value of the timeout is determined by the toast's configuration, or the default timeout, if\n * the toast hasn't provided a value\n *\n * @param toast - The toast message to set timeout for\n */\n setTimeoutForToast(toast) {\n var _a;\n const timeout = WindowService.getWindow().setTimeout(() => {\n this.toasts.remove(toast);\n this.clearToastTimeout(toast);\n }, ((_a = toast.config) === null || _a === void 0 ? void 0 : _a.timeout) || this.config.timeout);\n this.toastToTimeout.set(toast, timeout);\n }\n /**\n * Updates the toast list reference to trigger re-rendering\n */\n updateToastrReference() {\n this.toasts = new ToastMessageList(this.toasts.getItems());\n }\n /**\n * Clears the timeout for a toast message and removes it from the tracking map\n * When a user hovers over a toast message, the timeout is cleared, since the toast should\n * remain visible until the user stops hovering.\n *\n * @param toast - The toast message whose timeout should be cleared\n */\n clearToastTimeout(toast) {\n const timeoutId = this.toastToTimeout.get(toast);\n clearTimeout(timeoutId);\n this.toastToTimeout.delete(toast);\n this.updateToastrReference();\n }\n /**\n * Handle click events on toast messages.\n * Executes the configured onClick callback for the toast message, if provided.\n * Removes the toast message, if the removeOnClick configuration is enabled.\n *\n * @param toast - The clicked toast message\n * @returns An event handler function that processes click events on the toast\n */\n handleToastClick(toast) {\n return (event) => {\n var _a, _b;\n if ((_a = toast.config) === null || _a === void 0 ? void 0 : _a.onClick) {\n toast.config.onClick(event);\n }\n if ((_b = toast.config) === null || _b === void 0 ? void 0 : _b.removeOnClick) {\n this.toasts.remove(toast);\n this.clearToastTimeout(toast);\n }\n };\n }\n handleKeyUp(toast) {\n return (event) => {\n if (event.key === 'Enter') {\n this.handleToastClick(toast);\n }\n };\n }\n};\nOntoToastr.style = ontoToastrCss();\n\nexport { OntoToastr as onto_toastr };\n","import { Loggers, ServiceProvider, LanguageContextService } from '@ontotext/workbench-api';\n\nfunction sanitizeHTML(html) {\n const element = document.createElement('textarea');\n element.innerHTML = html;\n return element.value;\n}\n\nconst MODULE_NAME = 'SharedComponents';\n/**\n * Logger for the Shared Components module.\n */\nclass LoggerProvider {\n /**\n * Gets the logger instance for the Shared Components module.\n *\n * @returns LoggerService instance for the Shared Components module\n */\n static get logger() {\n return Loggers.getLoggerInstance(MODULE_NAME);\n }\n}\n\n/**\n * Service responsible for translation operations in the component.\n */\nclass TranslationServiceClassDefinition {\n constructor() {\n this.languageContextService = ServiceProvider.get(LanguageContextService);\n this.translationChangedObservers = {};\n this.logger = LoggerProvider.logger;\n // log with background color\n this.defaultBundle = this.languageContextService.getDefaultBundle();\n this.subscribeToBundleChange();\n }\n /**\n * Translates the <code>messageLabelKey</code> with <code>translationParameter</code> and call <code>translationCallback</code> with translation of current language.\n * The <code>translationCallback</code> is called upon subscription and whenever the selected language is changed.\n *\n * @param messageLabelKey - The label key for the translation.\n * @param translationParameter - Parameters, if needed, for translation.\n * @param translationCallback - A function to be called when translating the `messageLabelKey`.\n * @returns A function that, when called, unsubscribes the provided callback from further translation updates.\n */\n onTranslate(messageLabelKey, translationParameter = [], translationCallback = () => { }) {\n this.translationChangedObservers[messageLabelKey] = this.translationChangedObservers[messageLabelKey] || [];\n const observer = { parameters: translationParameter, callback: translationCallback };\n this.translationChangedObservers[messageLabelKey].push(observer);\n translationCallback(this.translate(messageLabelKey, translationParameter));\n return () => {\n const index = this.translationChangedObservers[messageLabelKey].indexOf(observer);\n if (index !== -1) {\n this.translationChangedObservers[messageLabelKey].splice(index, 1);\n }\n };\n }\n /**\n * Translates the provided key using the currently selected language by applying the parameters if\n * provided.\n * @param key The key for the label which needs to be translated.\n * @param parameters Optional parameters which to be applied during the translation.\n */\n translate(key, parameters) {\n return this.translateInLocale(key, parameters);\n }\n /**\n * Translates a given key into the specified locale. If parameters are provided,\n * they will be applied to the translation.\n *\n * @param key - The translation key, which can be dot-separated for nested translations.\n * @param parameters - Optional parameters to be substituted into the translation string.\n * @returns The translated string with parameters applied if available, or the key itself if not found.\n */\n translateInLocale(key, parameters) {\n // Attempt to retrieve the translation from the specified locale's bundle.\n let translation = this.translateFromBundle(this.currentBundle, key);\n // If not found, fall back to the default language bundle.\n if (!translation) {\n translation = this.translateFromBundle(this.defaultBundle, key);\n }\n // If translation was found, apply any parameters provided and return the result.\n if (translation) {\n translation = this.applyParameters(translation, parameters);\n return sanitizeHTML(translation);\n }\n this.logger.warn(`Missing translation for key: [${key}]`);\n return key;\n }\n /**\n * Retrieves a translation from a specified translation bundle using the given key.\n * If the key represents a nested JSON path, it attempts to resolve the key as such.\n *\n * @param bundle - The translation bundle for the specified locale.\n * @param key - The key to translate, which may be a simple key or dot-separated for nested keys.\n * @returns The translation string if found, or `undefined` if not available.\n */\n translateFromBundle(bundle, key) {\n if (!bundle) {\n return undefined;\n }\n // Try to retrieve the translation directly if it is defined as a whole string,\n // for instance as \"some_function.btn.label\".\n let translation = bundle[key];\n // If not found, attempt to retrieve the translation if it is defined as a JSON object.\n if (typeof translation !== 'string') {\n translation = this.translateAsJsonObject(bundle, key);\n }\n return translation;\n }\n /**\n * Resolves a nested translation key by treating it as a path in a JSON object.\n * For example, if the key is \"some.key.path\", this method will navigate through\n * the JSON object structure to retrieve the value at that path.\n *\n * @param bundle - The translation bundle containing nested keys.\n * @param key - The dot-separated key representing the path to the translation.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n translateAsJsonObject(bundle, key) {\n let path = key.split('.');\n return this.getTranslation(bundle, path);\n }\n /**\n * Recursively navigates through a JSON object based on a path array to retrieve\n * a translation string. Each element in the path array represents a nested key.\n *\n * @param jsonObject - The current JSON object or nested object being searched.\n * @param path - An array representing the path to the translation, where each element is a key.\n * @returns The translation string if found, or `undefined` if the path does not exist.\n */\n getTranslation(jsonObject, path) {\n // Stop the recursion if path or reach the inner element\n if (!path || !jsonObject) {\n return undefined;\n }\n const jsonOrTranslation = jsonObject[path.splice(0, 1)[0]];\n if (path.length === 0) {\n return jsonOrTranslation;\n }\n if (typeof jsonOrTranslation !== 'string') {\n // continue if the inner element is not reached.\n if (path.length > 0) {\n return this.getTranslation(jsonOrTranslation, path);\n }\n return jsonOrTranslation;\n }\n return undefined;\n }\n applyParameters(translation, parameters) {\n if (parameters) {\n return parameters.reduce(\n // replace all occurrence of parameter key with parameter value.\n (translation, parameter) => TranslationServiceClassDefinition.replaceAll(translation, parameter), translation);\n }\n return translation;\n }\n static replaceAll(translation, parameter) {\n return parameter ? translation.split(`{{${parameter.key}}}`).join(parameter.value) : translation;\n }\n notifyTranslationsChanged() {\n Object.keys(this.translationChangedObservers).forEach((eventName) => {\n const observers = this.translationChangedObservers[eventName] || [];\n observers.forEach((observer) => observer.callback(this.translate(eventName, observer.parameters)));\n });\n }\n subscribeToBundleChange() {\n this.languageChangeSubscription = this.languageContextService.onLanguageBundleChanged((bundle) => {\n if (bundle) {\n this.currentBundle = bundle;\n this.notifyTranslationsChanged();\n }\n });\n }\n destroy() {\n if (this.languageChangeSubscription) {\n this.languageChangeSubscription();\n }\n }\n}\nconst TranslationService = new TranslationServiceClassDefinition();\n\nexport { LoggerProvider as L, TranslationService as T, sanitizeHTML as s };\n"],"names":["toastTypeToIconMap","ToastType","INFO","SUCCESS","WARNING","ERROR","OntoToastr","constructor","hostRef","registerInstance","this","toasts","ToastMessageList","toastToTimeout","Map","config","ToastrConfig","getDefaultConfig","onToastMouseEnter","toast","clearToastTimeout","onToastMouseLeave","setTimeoutForToast","handleToastCreate","event","addToast","detail","render","_a","h","key","style","display","isEmpty","class","position","getItems","map","_b","_c","type","id","onMouseEnter","onMouseLeave","onClick","handleToastClick","onKeyUp","handleKeyUp","title","innerHTML","sanitizeHTML","TranslationService","translate","translationParams","message","addToStart","updateToastrReference","timeout","WindowService","getWindow","setTimeout","remove","set","timeoutId","get","clearTimeout","delete","removeOnClick","html","element","document","createElement","value","LoggerProvider","logger","Loggers","getLoggerInstance","TranslationServiceClassDefinition","languageContextService","ServiceProvider","LanguageContextService","translationChangedObservers","defaultBundle","getDefaultBundle","subscribeToBundleChange","onTranslate","messageLabelKey","translationParameter","translationCallback","observer","parameters","callback","push","index","indexOf","splice","translateInLocale","translation","translateFromBundle","currentBundle","applyParameters","warn","bundle","translateAsJsonObject","path","split","getTranslation","jsonObject","jsonOrTranslation","length","reduce","parameter","replaceAll","join","notifyTranslationsChanged","Object","keys","forEach","eventName","languageChangeSubscription","onLanguageBundleChanged","destroy"],"ignoreList":[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BY,GACpB,IAAId,EAAiB,GACrB,IACIA,QAAuBc,GAC3B,CACA,MAAOC,GACH5E,KAAKG,OAAOyE,MAAMA,EACtB,CACA,OAAOf,CACX,CACA,eAAIlC,GAAgB,OAAOkD,EAAAA,EAAAA,GAAW7E,KAAO,GAEjDJ,EAAakF,MApJiB,4zE,eCP9B,IAAIjE,E,iBACJ,SAAWA,GACPA,EAA6B,MAAI,QACjCA,EAA4B,KAAI,MACnC,CAHD,CAGGA,IAA0BA,EAAwB,CAAC,G","sources":["webpack://root-config/./packages/shared-components/dist/esm/onto-dropdown.entry.js","webpack://root-config/./packages/shared-components/dist/esm/dropdown-item-alignment-DghTf3pJ.js"],"sourcesContent":["import { r as registerInstance, c as createEvent, h, g as getElement } from './index-CGqARDX4.js';\nimport { L as LoggerProvider, T as TranslationService } from './translation.service-nljGIprK.js';\nimport { D as DropdownItemAlignment } from './dropdown-item-alignment-DghTf3pJ.js';\nimport { T as TooltipUtil } from './tooltip-util-CzsgdbCC.js';\nimport { O as OntoTooltipPlacement } from './onto-tooltip-placement-D_J2-9CG.js';\nimport '@ontotext/workbench-api';\n\nconst ontoDropdownCss = () => `:host{display:block}.onto-dropdown{position:relative;width:fit-content}.onto-dropdown.closed .onto-dropdown-menu{display:none}.onto-dropdown.open .onto-dropdown-button{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background);border-color:var(--gw-button-primary-border-color)}.onto-dropdown.open .onto-dropdown-button .button-icon{color:var(--gw-button-primary-icon-color)}.onto-dropdown.open .onto-dropdown-button:hover{color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-dropdown .onto-dropdown-button{display:flex;flex-direction:row;gap:0.3em;align-items:center;font-size:1rem;font-weight:400;padding:0.4em 1rem;line-height:1.5;outline:none;background-color:var(--gw-button-secondary-background);border:1px solid var(--gw-button-secondary-border-color);color:var(--gw-button-secondary-color);transition:all 0.15s ease-out}.onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-secondary-icon-color)}.onto-dropdown .onto-dropdown-button .ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-secondary-hover-background);border:1px solid var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.onto-dropdown .onto-dropdown-menu{position:absolute;margin:0;padding:0;z-index:1000;overflow-y:auto;max-height:340px;min-width:100%}.onto-dropdown .onto-dropdown-menu-item{display:block;text-decoration:none;font-size:1rem;font-weight:400;padding:0.5em 1.2em;color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background);text-align:end;white-space:nowrap;border:none;outline:none;width:100%}.onto-dropdown .onto-dropdown-menu-item:hover{cursor:pointer;color:var(--gw-button-primary-hover-color);background-color:var(--gw-button-primary-hover-background);border-color:var(--gw-button-primary-hover-border-color)}.onto-dropdown .onto-dropdown-menu-item:hover .item-icon{transform:scale(1.2)}.onto-dropdown .onto-dropdown-button:hover{cursor:pointer}.onto-dropdown .onto-dropdown-button:hover .button-icon{transform:scale(1.2)}.onto-dropdown .onto-dropdown-option-icon{margin-right:0.2em}.onto-dropdown .onto-dropdown-right-item-alignment{right:0;left:auto}`;\n\nconst OntoDropdown = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this.valueChanged = createEvent(this, \"valueChanged\");\n this.logger = LoggerProvider.logger;\n this.GUIDE_SELECTOR_ATTR = 'guide-selector';\n /**\n * Indicates whether the dropdown menu is open.\n */\n this.open = false;\n /**\n * Holds the content of the tooltip\n */\n this.buttonTooltipContent = '';\n /**\n * Icon class for the main dropdown button.\n */\n this.iconClass = '';\n /**\n * Specifies the items tooltip placement. Accepts a string of the placement or a function that returns the placement.\n * The function takes the isOpen parameter as a boolean and returns the placement as a string.\n * If not provided, the tooltip will be placed to the left.\n *\n */\n this.tooltipPlacement = OntoTooltipPlacement.LEFT;\n /**\n * Specifies the dropdown items' alignment. If not provided, the items and the dropdown button will be aligned to the left.\n *\n */\n this.dropdownAlignment = DropdownItemAlignment.LEFT;\n /**\n * Flag to determine if the dropdown should close automatically when a click occurs outside the dropdown.\n */\n this.autoClose = false;\n this.toggleButtonClickHandler = () => {\n TooltipUtil.destroyTooltip(this.dropdownButtonElement);\n this.buttonTooltipContent = '';\n this.clearDropdownItemTooltips();\n this.toggleComponent();\n };\n }\n /**\n * Listens for the Escape key keydown event globally.\n * Closes the dropdown menu if the Escape key is pressed.\n *\n * @param ev The keyboard event triggered by the Escape key.\n */\n keydownListener(ev) {\n if (ev.key === 'Escape') {\n this.closeMenu();\n }\n }\n /**\n * Listens for mouse click events globally.\n * Closes the dropdown menu if the click occurs outside the dropdown.\n *\n * @param ev The mouse event triggered by a click.\n */\n mouseClickListener(ev) {\n const target = ev.target;\n if (this.autoClose && !this.hostElement.contains(target)) {\n this.closeMenu();\n }\n }\n componentDidUpdate() {\n if (this.dropdownButtonElement) {\n if (this.buttonTooltipContent && this.buttonTooltipContent !== '') {\n TooltipUtil.updateTooltipContent(this.dropdownButtonElement, this.buttonTooltipContent);\n }\n else {\n TooltipUtil.destroyTooltip(this.dropdownButtonElement);\n }\n }\n }\n render() {\n var _a, _b;\n const dropdownAlignmentClass = this.dropdownAlignment === DropdownItemAlignment.RIGHT\n ? 'onto-dropdown-right-item-alignment' : 'onto-dropdown-left-item-alignment';\n const tooltipPlacement = typeof this.tooltipPlacement === 'function' ? this.tooltipPlacement(this.open) : this.tooltipPlacement;\n return (h(\"div\", { key: '36e8f37b8188fd8de748890b64e323346fd93d1d', class: `onto-dropdown ${this.open ? 'open' : 'closed'}` }, h(\"button\", Object.assign({ key: '079c4a67fc1e5d85d5cccb66c604308eaab6bcbc', class: \"onto-dropdown-button\", ref: (el) => this.dropdownButtonElement = el }, (this.dropdownButtonGuideSelector ? { [this.GUIDE_SELECTOR_ATTR]: this.dropdownButtonGuideSelector } : {}), { \"tooltip-placement\": tooltipPlacement, \"tooltip-content\": this.buttonTooltipContent }, (this.tooltipTheme ? { 'tooltip-theme': this.tooltipTheme } : {}), { onMouseEnter: this.setDropdownButtonTooltip(), onClick: this.toggleButtonClickHandler }), this.iconClass ? h(\"i\", { class: 'button-icon ri-lg ' + this.iconClass }) : '', h(\"span\", { key: '3a258b3105ff250ea6565140db7d95096e33aaa3', class: 'button-name' }, (_a = this.dropdownButtonName) !== null && _a !== void 0 ? _a : this.translate(this.dropdownButtonNameLabelKey)), h(\"i\", { key: '6efadb314fa809e7c7b49825699f4b5abd9b3bc0', class: `ri-arrow-down-s-line ${this.open ? 'rotate-180' : ''}` })), h(\"div\", { key: 'c6dd9f644a166347e5a34eb483520d82bc23270c', class: 'onto-dropdown-menu ' + dropdownAlignmentClass }, (_b = this.items) === null || _b === void 0 ? void 0 : _b.map((item) => {\n var _a;\n return h(\"button\", Object.assign({ class: 'onto-dropdown-menu-item ' + item.cssClass }, (item.guideSelector ? { [this.GUIDE_SELECTOR_ATTR]: item.guideSelector } : {}), { \"tooltip-placement\": OntoTooltipPlacement.LEFT }, (this.tooltipTheme ? { 'tooltip-theme': this.tooltipTheme } : {}), { onMouseEnter: this.setDropdownItemTooltip(item), onClick: this.itemClickHandler(item.value) }), item.iconClass ? h(\"span\", { class: 'onto-dropdown-option-icon ' + item.iconClass }) : '', h(\"span\", null, (_a = item.name) !== null && _a !== void 0 ? _a : this.translate(item.nameLabelKey)));\n }))));\n }\n setDropdownButtonTooltip() {\n return async () => {\n var _a;\n let tooltipContent;\n if (typeof this.dropdownButtonTooltip === 'function') {\n tooltipContent = await this.getTooltipContent(this.dropdownButtonTooltip);\n }\n else {\n tooltipContent = (_a = this.dropdownButtonTooltip) !== null && _a !== void 0 ? _a : this.translate(this.dropdownButtonTooltipLabelKey);\n }\n this.buttonTooltipContent = tooltipContent;\n };\n }\n setDropdownItemTooltip(item) {\n return async (event) => {\n var _a;\n const target = event.currentTarget;\n if (typeof item.tooltip === 'function') {\n let tooltipContent = await this.getTooltipContent(item.tooltip);\n target.setAttribute('tooltip-content', tooltipContent);\n }\n else {\n target.setAttribute('tooltip-content', (_a = item.tooltip) !== null && _a !== void 0 ? _a : this.translate(item.tooltipLabelKey));\n }\n };\n }\n clearDropdownItemTooltips() {\n this.hostElement\n .querySelectorAll('.onto-dropdown-menu-item')\n .forEach((el) => {\n TooltipUtil.destroyTooltip(el);\n el.setAttribute('tooltip-content', '');\n });\n }\n itemClickHandler(value) {\n return () => this.onSelect(value);\n }\n translate(key) {\n return key ? TranslationService.translate(key) : '';\n }\n onSelect(value) {\n this.open = false;\n this.valueChanged.emit(value);\n }\n toggleComponent() {\n this.open = !this.open;\n }\n closeMenu() {\n this.open = false;\n }\n async getTooltipContent(tooltipFunction) {\n let tooltipContent = '';\n try {\n tooltipContent = await tooltipFunction();\n }\n catch (error) {\n this.logger.error(error);\n }\n return tooltipContent;\n }\n get hostElement() { return getElement(this); }\n};\nOntoDropdown.style = ontoDropdownCss();\n\nexport { OntoDropdown as onto_dropdown };\n","var DropdownItemAlignment;\n(function (DropdownItemAlignment) {\n DropdownItemAlignment[\"RIGHT\"] = \"right\";\n DropdownItemAlignment[\"LEFT\"] = \"left\";\n})(DropdownItemAlignment || (DropdownItemAlignment = {}));\n\nexport { DropdownItemAlignment as D };\n"],"names":["OntoDropdown","constructor","hostRef","registerInstance","this","valueChanged","createEvent","logger","LoggerProvider","GUIDE_SELECTOR_ATTR","open","buttonTooltipContent","iconClass","tooltipPlacement","OntoTooltipPlacement","LEFT","dropdownAlignment","DropdownItemAlignment","autoClose","toggleButtonClickHandler","TooltipUtil","destroyTooltip","dropdownButtonElement","clearDropdownItemTooltips","toggleComponent","keydownListener","ev","key","closeMenu","mouseClickListener","target","hostElement","contains","componentDidUpdate","updateTooltipContent","render","_a","_b","dropdownAlignmentClass","RIGHT","h","class","Object","assign","ref","el","dropdownButtonGuideSelector","tooltipTheme","onMouseEnter","setDropdownButtonTooltip","onClick","dropdownButtonName","translate","dropdownButtonNameLabelKey","items","map","item","cssClass","guideSelector","setDropdownItemTooltip","itemClickHandler","value","name","nameLabelKey","async","tooltipContent","dropdownButtonTooltip","getTooltipContent","dropdownButtonTooltipLabelKey","event","currentTarget","tooltip","setAttribute","tooltipLabelKey","querySelectorAll","forEach","onSelect","TranslationService","emit","tooltipFunction","error","getElement","style"],"ignoreList":[],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- export const __webpack_esm_id__=38644;export const __webpack_esm_ids__=[38644];export const __webpack_esm_modules__={38644(t,e,r){var a=r(88141),n=r(19935),o=(r(32150),r(93462));function s(t,e,r,s,c,i,l,d,p,u,f,g,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const f=d(function(){!function(u){var f=1200,y=f/18,x=f/110,m=x/2,v=f/90,b=1.2,k=o.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),w=o.forceSimulation(),E=o.drag().subject(function(t){return t}).on("start",function(t,e){w.stop(),e.fx=t.x,e.fy=t.y,o.select(this).classed("selected",!0)}).on("end",function(t,e){e.fx=null,e.fy=null,o.select(this).classed("selected",!1),C?(w.alpha(.2).restart(),C=!1):w.restart()}).on("drag",function(t,e){C=!0,w.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y}),N=k.append("defs");N.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),o.select("#download-svg").on("mouseover",function(){var t=a.A.Export.getCSSRules("css/domain-range-graph.css?v=3.3.3-TR1");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=a.A.Export.generateBase64ImageSource("#domain-range svg");o.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})}),function(){var t=f/7,e=205.7142857142857,r=o.select(".legend-container").append("svg").attr("viewBox","0 0 "+t+" "+e).attr("preserveAspectRatio","xMidYMid meet");r.append("rect").attrs({width:t,height:e}).style("fill","rgba(235, 235, 235, 0.9)");var a=16,n=42.66666666666667,s=n+f/90,i=v/1.1,l=(r.append("circle").attrs({class:"legend-class-node",cx:29.333333333333336,cy:30,r:y/4.5}),30+f/370);r.append("text").attrs({x:s,y:l}).style("font-size",i+"px").text("main class node"),r.append("circle").attrs({class:"legend-object-node",cx:29.333333333333336,cy:70,r:8.727272727272727});var d=l+40;r.append("text").attrs({x:s,y:d}).style("font-size",i+"px").text("class node");var p=70+f/45;r.append("circle").attrs({class:"legend-datatype-node",cx:29.333333333333336,cy:p,r:m});var u=d+f/45;r.append("text").attrs({x:s,y:u}).style("font-size",i+"px").text("datatype node");var g=123.33333333333334;r.append("line").attrs({class:"property-arrow",x1:a,y1:g,x2:n,y2:g}).style("stroke-width",b).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:126.57657657657658}).style("font-size",i+"px").text("explicit property");var h=150;r.append("line").attrs({class:"implicit-property-arrow",x1:a,y1:h,x2:n,y2:h}).style("stroke-width",b).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:153.24324324324326}).style("font-size",i+"px").text("implicit property");var x=176.66666666666666;r.append("line").attrs({class:"collapsed-property-arrow",x1:a,y1:x,x2:n,y2:x}).style("stroke-width",2).attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)"),r.append("text").attrs({x:s,y:179.9099099099099}).style("font-size",i+"px").text("collapsed property")}();var R=c.search().uri,A=c.search().name;const L=c.search().collapsed;(function(t,e){s.getDomainRangeData(t,e).success(function(t,e,r){u.domainRangeGraphData=t}).error(function(t){p.error("Request for "+A+" failed!")})})(R,L),$(window).on("popstate",function(){i.set(l.DOMAIN_RANGE_WENT_BACK,!0)}),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",function(){angular.isUndefined(u.collapseEdges)||(i.set(l.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==i.get(l.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:R,name:A,collapsed:e})}(u.collapseEdges),i.remove(l.DOMAIN_RANGE_WENT_BACK))}),u.$watch("domainRangeGraphData",function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const S=r.nodes,I=r.links;w.nodes(S).force("x",o.forceX(600)).force("y",o.forceY(300)).force("charge",o.forceManyBody().strength(-800)).force("link",o.forceLink(I).distance(f/3.5));var a=k.selectAll(".link").data(I).enter().append("g");function B(t){t.style("stroke",g),t.style("stroke-width",2),t.attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)")}var s,i,l=0;a.each(function(t){if(t.objectPropNodeClassUri!==R)s=a.append("line").attrs({class:"link","marker-end":"url("+c.absUrl()+"#arrow)"}).style("stroke-width",b).each(function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=y;break;case"objectRight":t.targetRadius=x;break;case"datatype":t.targetRadius=m;break;default:t.targetRadius=0}var e=o.select(this);t.targetNodeEdgeCount>1?B(e):t.implicit&&e.style("stroke-dasharray","3, 3")});else{if(angular.isUndefined(i)){var e=y/2;i=o.select(this).append("path").attrs({d:"M 0 0 A "+e+" "+e+" 0 1 1 0 "+e,class:"loop-link",fill:"none","marker-end":"url("+c.absUrl()+"#arrow-loop)"}).style("stroke-width",b)}(l+=t.targetNodeEdgeCount)>1&&B(o.select(".loop-link"))}});var p={};function G(){$.isEmptyObject(p)||(p.text.style("fill","black"),p.background.style("fill","#f0f0f0"))}function W(t,e){G(),p.text=o.select(this),p.background=o.select(this.previousSibling),p.text.style("fill","white"),p.background.style("fill",g),d(function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e}),t.stopPropagation()}$("document").ready(function(){$("#domain-range").bind("click",G)});var N=a.append("text").attr("class",function(t){return t.objectPropNodeClassUri===R?"loop-link-property-name":"property-name"}).attr("dx",function(t){return y/2*("objectLeft"===t.propertyType?1:-1)}).style("text-anchor",function(t){return"objectLeft"===t.propertyType?"end":"start"}).style("font-size",v).text(function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name});N.each(function(t){var r=o.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",W):r.on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")})});var L=a.append("rect").attr("class",function(t){return t.objectPropNodeClassUri!==R?"link-background":"loop-link-background"}).attr("width",function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4}).attr("height",function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2}).attr("transform",function(t){var e=2-y/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"}).on("click",function(t){t.stopPropagation()}),C=k.selectAll(".node").data(S).enter().append("g"),P=C.filter(function(t){return t.objectPropClassUri!==R}).append("circle").each(function(t){var e=o.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:y}).attr("marker-end","url("+c.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:m}):e.attrs({class:"object-prop-node",r:x})}).call(E);function z(e,r,a){u.$apply(function(){t.$broadcast("reloadDomainRangeGraphView",r,a)})}o.selectAll(".object-prop-node").on("dblclick",z),C.filter(function(t){return t.objectPropClassName&&t.objectPropClassUri!==R}).append("text").attr("class",function(t){return t.classPosition+"-class-label"}).style("font-size",v).text(function(t){return t.objectPropClassName}).on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")});var U=C.select("text");k.select(".class-node").each(function(){o.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",function(t){return n.A.Text.calcFontSize(A,y)}).text(A).on("click",function(){e.open("resource?uri="+encodeURIComponent(R),"_blank")})});var j=k.select(".class-node + text"),T=o.select(".class-node"),M=o.selectAll(".loop-link-background"),O=o.selectAll(".loop-link-property-name");if(N=o.selectAll(".property-name"),!angular.isUndefined(i)){var D=[];M.each(function(t,e){o.select(this),D.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})})}function F(t){var e=8*w.alpha();function r(t){var e=t.x+2*y,r=t.y-35.08771929824562;var a=[];M.each(function(n,s){a.push(n),s<h?function(a,n){var o=$.grep(D,function(t){return t.idx==n});n>0&&(e+=parseFloat(n*(o[0].height/(n/1.4)))),a.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(o.select(this),s):o.select(this).remove()}),function(t){var e;o.select(".view-more-preds-label").style("font-weight","bold").each(function(r){r.target.allEdges=t,e=this.getComputedTextLength()}).on("click",W),o.select(".view-more-preds-rect").attr("height",e+4)}(a)}s.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.targetX}).attr("y2",function(t){return t.targetY}).each(function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius}),P.each(function(t){"main"!==t.classPosition||angular.isUndefined(i)||(function(t){var e=t.x+64,r=t.y-y/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var a=$.grep(D,function(t){return t.idx==r}),n=0;r>0&&(n=parseFloat(2*r*(a[0].height/1.4)));var o=t.x,s=t.y-2.1*y-n;e.attrs({x:o,y:s}).moveToFront()}O.each(function(t,r){var a=o.select(this),n=O.size()-h;n<0?e(a,r):(0==r&&!u.collapseEdges&&n>1&&(function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(a,o.select(this.nextSibling),n),e(a,r)),r<h?e(a,r):a.remove())})}(t),r(t)),t.objectPropClassUri!==R&&o.select(this).attr("cx",function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=T.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x}).attr("cy",function(t){return t.y})}),j.attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).moveToFront(),L.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),N.attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),U.attr("x",function(t){return"right"===t.classPosition?t.x+13.09090909090909:t.x-13.09090909090909}).attr("y",function(t){return t.y}).moveToFront()}w.on("tick",F)}});let C=!1}(u)},50);u.$on("$destroy",function(){d.cancel(f)})}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--gw-primary-base)").constant("ONTO_GREEN","var(--gw-tertiary-base)").constant("ONTO_BLUE","var(--gw-secondary-base)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",s),s.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]}};
2
- //# sourceMappingURL=38644.cc471c67239fa24901cc.bundle.js.map