graphdb-workbench 4.0.0-TR20 → 4.0.0-TR21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/28944.10ba3819ab642475c4cc.bundle.js +2 -0
- package/dist/28944.10ba3819ab642475c4cc.bundle.js.map +1 -0
- package/dist/43239.40282ca142f86c6dde15.bundle.js +2 -0
- package/dist/43239.40282ca142f86c6dde15.bundle.js.map +1 -0
- package/dist/44906.c4c659df4b02ccae9229.bundle.js +2 -0
- package/dist/44906.c4c659df4b02ccae9229.bundle.js.map +1 -0
- package/dist/{64709.3025889983ec8209d336.bundle.js → 64709.18515378d91873dbe224.bundle.js} +2 -2
- package/dist/{64709.3025889983ec8209d336.bundle.js.map → 64709.18515378d91873dbe224.bundle.js.map} +1 -1
- package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js → 65677.16009c5d1eabcad00aeb.bundle.js} +2 -2
- package/dist/{65677.8b962ec6b2c5833e14bc.bundle.js.map → 65677.16009c5d1eabcad00aeb.bundle.js.map} +1 -1
- package/dist/{7257.1990b2e548feb7975f39.bundle.js → 7257.d60c8e9f046b1392ea1e.bundle.js} +2 -2
- package/dist/{7257.1990b2e548feb7975f39.bundle.js.map → 7257.d60c8e9f046b1392ea1e.bundle.js.map} +1 -1
- package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js +2 -0
- package/dist/7714.5b4ab90c7b30c68d74f2.bundle.js.map +1 -0
- package/dist/{80933.3851df33b6cf8f94243c.bundle.js → 80933.32639a47f5bcab72f129.bundle.js} +2 -2
- package/dist/{80933.3851df33b6cf8f94243c.bundle.js.map → 80933.32639a47f5bcab72f129.bundle.js.map} +1 -1
- package/dist/{82917.c4d381f514d7ffa59784.bundle.js → 82917.a13bbac26dd299c57f0c.bundle.js} +2 -2
- package/dist/{82917.c4d381f514d7ffa59784.bundle.js.map → 82917.a13bbac26dd299c57f0c.bundle.js.map} +1 -1
- package/dist/{86099.dab1ff44dc71449a5aec.bundle.js → 86099.fe7fcec5f4ad92673a0b.bundle.js} +2 -2
- package/dist/{86099.dab1ff44dc71449a5aec.bundle.js.map → 86099.fe7fcec5f4ad92673a0b.bundle.js.map} +1 -1
- package/dist/96827.33e11fed0a796c76a367.bundle.js +2 -0
- package/dist/96827.33e11fed0a796c76a367.bundle.js.map +1 -0
- package/dist/assets/i18n/en.json +6 -2
- package/dist/assets/i18n/fr.json +6 -2
- package/dist/assets/i18n/language-config.json +1 -1
- package/dist/css/core-errors.css +1 -1
- package/dist/css/repositories.css +1 -1
- package/dist/css/repository-info-popover.css +1 -1
- package/dist/css/repository.create.css +1 -1
- package/dist/i18n/locale-en.json +9 -5
- package/dist/i18n/locale-fr.json +9 -5
- package/dist/index.html +9 -9
- package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
- package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +7 -7
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/core/templates/core-errors.html +4 -2
- package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
- package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
- package/dist/js/angular/core/templates/search-resource-input.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/repositories/templates/manage-remote-location-dialog.template.html +0 -13
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/security/templates/users.html +1 -1
- package/dist/js/angular/templates/repositorySize.html +10 -6
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
- package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/legacyWorkbench.d8ed4eb634c5be181feb.js +3 -0
- package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.map → legacyWorkbench.d8ed4eb634c5be181feb.js.map} +1 -1
- package/dist/{main.519bdd021ad27b8f7c2a.js → main.bb3c33c0be119ba8d7dd.js} +3 -3
- package/dist/main.bb3c33c0be119ba8d7dd.js.map +1 -0
- package/dist/pages/aclmanagement.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +2 -1
- package/dist/pages/cluster-management/clusterInfo.html +2 -2
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/home.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/jdbc.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +8 -4
- package/dist/pages/repository.html +6 -2
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/sparql-templates.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/viewQuery.html +1 -1
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +11 -11
- package/dist/shared-components/cjs/loader.cjs.js +1 -1
- package/dist/shared-components/cjs/onto-footer_3.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-language-selector_9.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-repository-info.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/onto-test-context.cjs.entry.js +1 -1
- package/dist/shared-components/cjs/shared-components.cjs.js +1 -1
- package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
- package/dist/shared-components/collection/components/onto-navbar/onto-navbar.js +1 -1
- package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.css +1 -1
- package/dist/shared-components/collection/components/onto-repository-info/onto-repository-info.js +1 -1
- package/dist/shared-components/collection/components/onto-repository-selector/onto-repository-selector.css +1 -1
- package/dist/shared-components/collection/components/onto-repository-selector/selector-item.js +1 -1
- package/dist/shared-components/esm/loader.js +1 -1
- package/dist/shared-components/esm/onto-footer_3.entry.js +1 -1
- package/dist/shared-components/esm/onto-language-selector_9.entry.js +1 -1
- package/dist/shared-components/esm/onto-layout.entry.js +1 -1
- package/dist/shared-components/esm/onto-repository-info.entry.js +1 -1
- package/dist/shared-components/esm/onto-test-context.entry.js +1 -1
- package/dist/shared-components/esm/shared-components.js +1 -1
- package/dist/shared-components/shared-components/p-0b5b6ae2.entry.js +1 -0
- package/dist/shared-components/shared-components/{p-b8548920.entry.js → p-3201c16d.entry.js} +1 -1
- package/dist/shared-components/shared-components/p-6bb1e333.entry.js +1 -0
- package/dist/shared-components/shared-components/p-b3e34efa.entry.js +1 -0
- package/dist/shared-components/shared-components/p-e07c6668.entry.js +1 -0
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +12 -0
- package/dist/shared-components/types/components/onto-navbar/onto-navbar.d.ts +3 -0
- package/dist/shared-components/types/components/onto-repository-info/onto-repository-info.d.ts +4 -0
- package/dist/shared-components/types/components/onto-repository-selector/selector-item.d.ts +1 -1
- package/dist/workbench/workbench/216.84774aeec22c9e0d.js +1 -0
- package/dist/workbench/workbench/{937.c2bb6617eb67b694.js → 272.720044b4ff7554f5.js} +1 -1
- package/dist/workbench/workbench/472.eb8524a286baa5e7.js +1 -0
- package/dist/workbench/workbench/workbenchApp.js +1 -1
- package/package.json +1 -1
- package/dist/28944.50f6cc0b531327c3210e.bundle.js +0 -2
- package/dist/28944.50f6cc0b531327c3210e.bundle.js.map +0 -1
- package/dist/43239.520a41f9703920195281.bundle.js +0 -2
- package/dist/43239.520a41f9703920195281.bundle.js.map +0 -1
- package/dist/44906.732540785071c9088916.bundle.js +0 -2
- package/dist/44906.732540785071c9088916.bundle.js.map +0 -1
- package/dist/7714.ccdf9a75e387a85cb980.bundle.js +0 -2
- package/dist/7714.ccdf9a75e387a85cb980.bundle.js.map +0 -1
- package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js +0 -2
- package/dist/96827.9f911e3c9bb060d8f9a9.bundle.js.map +0 -1
- package/dist/legacyWorkbench.ec3c7f8dd4342d75e489.js +0 -3
- package/dist/main.519bdd021ad27b8f7c2a.js.map +0 -1
- package/dist/shared-components/shared-components/p-388d4524.entry.js +0 -1
- package/dist/shared-components/shared-components/p-78c03a43.entry.js +0 -1
- package/dist/shared-components/shared-components/p-8952636b.entry.js +0 -1
- package/dist/shared-components/shared-components/p-b6fa9b0a.entry.js +0 -1
- package/dist/workbench/workbench/216.1d0b714ace0ab8e4.js +0 -1
- package/dist/workbench/workbench/472.d4b7ec12b3627aee.js +0 -1
- /package/dist/{legacyWorkbench.ec3c7f8dd4342d75e489.js.LICENSE.txt → legacyWorkbench.d8ed4eb634c5be181feb.js.LICENSE.txt} +0 -0
- /package/dist/{main.519bdd021ad27b8f7c2a.js.LICENSE.txt → main.bb3c33c0be119ba8d7dd.js.LICENSE.txt} +0 -0
package/dist/shared-components/shared-components/{p-b8548920.entry.js → p-3201c16d.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,a as e,d as r}from"./p-BntG-4Sv.js";import{D as s}from"./p-WQYHXM0G.js";import{ServiceProvider as n,LanguageService as i,LanguageContextService as a,navigateTo as l,OperationStatus as c,OperationGroup as u,SubscriptionList as d,EventService as h,ResourceSearchStorageService as p,UriUtil as g,SearchButtonConfig as b,SearchButton as f,openInNewTab as w,service as m,RepositoryContextService as v,RepositoryState as y,getRepositoryIdWithLocation as k,AutocompleteService as x,AutocompleteContextService as _,AutocompleteStorageService as C,OntoToastrService as S,NamespacesContextService as $,SuggestionType as z,SuggestionSelectedPayload as T,Suggestion as B,navigateToLoginPage as R,AuthenticationService as D,navigate as K,Logout as A}from"@ontotext/workbench-api";import{D as L}from"./p-DghTf3pJ.js";import{O as I}from"./p-D_J2-9CG.js";import{T as j,e as E}from"./p-DSYXTTde.js";import{H as N}from"./p-BSmKhkm5.js";import{R as F}from"./p-CNWCaedF.js";import{L as M}from"./p-BIkLC5Zf.js";const O=class{constructor(e){o(this,e),this.languageService=n.get(i),this.languageContextService=n.get(a),this.items=[],this.dropdownAlignment=L.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(e=>this.changeLanguage(e)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var o,r;return t(e,{key:"9984b524472fd68652a3fcbcf9eea97f8a223177"},t("onto-dropdown",{key:"428a5d4f65595214dbb2ed4bef9748ffed2d870c",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(o=this.currentLanguage)&&void 0!==o?o:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(r=this.dropdownAlignment)&&void 0!==r?r:L.RIGHT,iconClass:"ri-translate-2",items:this.items,"auto-close":!0}))}valueChangeHandler(){return e=>this.onSelectedLanguageChanged(e)}changeLanguage(e){let t=e;t||(t=this.languageService.getDefaultLanguage()),this.currentLanguage=t,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(e){this.languageContextService.updateSelectedLanguage(e.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(e=>{const t=this.currentLanguage===e?"ri-check-line":"";return(new s).setNameLabelKey(`language_selector.language.${e}.label`).setTooltipLabelKey(`language_selector.language.${e}.tooltip.`+(this.currentLanguage===e?"selected":"not_selected")).setIconClass(t).setCssClass(e).setValue(e)})}};O.style=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}";const V=class{constructor(e){o(this,e)}render(){var o;return t(e,{key:"9bac74e245fc646cfd6b63d638ac11ffeb50754b","tooltip-content":null===(o=this.license)||void 0===o?void 0:o.message,"tooltip-placement":I.BOTTOM,"data-test":"onto-license-alert"},t("button",{key:"317cbc79f9f3b9fe63284ebcd602c63b9d89a3fa",class:"onto-license-alert onto-btn",onClick:l("license")},t("span",{key:"dd60e1800d32e32bdbb88555f34b0bb55396914b",class:"ri-alert-line"}),t("translate-label",{key:"9f6886cf5803e3cbc8092c578152b3f8615c89cc",labelKey:"license_alert.label"})))}};V.style=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}";const H={[u.BACKUP]:"ri-archive-line",[u.QUERY]:"ri-arrow-left-right-line",[u.CLUSTER]:"ri-organization-chart",[u.IMPORT]:"icon-import"},G={[c.WARNING]:"status-warning",[c.INFORMATION]:"status-information",[c.CRITICAL]:"status-critical"},J={[c.WARNING]:"onto-btn-fade-warning",[c.CRITICAL]:"onto-btn-fade-danger"},P=class{constructor(e){o(this,e),this.isOpen=!1,this.DROPDOWN_ID="onto-operations-dropdown",this.toggleDropdown=e=>{e.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=this.activeOperations.toOperationGroupSummaryList(),t("section",{key:"13de6326145250d9f3459f5558e8c1791a3be35a",class:"operations-statuses"},t("button",{key:"de16a9fc8c01af9ad5a82b052c838f37e7e6713f",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=J[this.activeOperations.status])&&void 0!==e?e:""}`,ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},t("span",{key:"857f7317826c5285797374c1871104cd23bb5216",class:"screen-reader-only"},t("translate-label",{key:"6710d5a90dea211a7ae801cf63ae19c1032b584a",labelKey:"operations_notification.toggle_label"})),this.operationGroups.getItems().map(e=>t("section",{key:e.id,class:"operation-status-header"},t("i",{"aria-hidden":"true",class:`operation-status-icon icon-1-33x ${H[e.group]} ${G[e.status]}`}),e.totalOperations?t("sup",{class:"running-operation-count"},e.totalOperations):"")),t("i",{key:"3f98039d08623eccc3c03c20d7fd5c44b8f45fd4",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen&&t("div",{key:"622feb33220bc3d9f43525b38c16fb0c6eb9678c",class:"operations-dropdown",id:this.DROPDOWN_ID},t("ul",{key:"b9d6c474ef48b72292e9985637bf6d9b6d1356ab",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>t("li",{key:e.id},t("a",{class:`operation-status-content onto-btn no-underline ${G[e.status]}`,href:e.href,target:"_blank",rel:"noopener noreferrer"},t("i",{class:H[e.group],"aria-hidden":"true"}),t("span",{class:"operation-status-label"},t("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),t("span",{class:"operation-number"},e.count?t("span",{class:"operation-status-running-operation-count"},e.count):""),t("span",{class:"screen-reader-only"}," ",t("translate-label",{labelKey:"common.label.opens_in_new_window"}))))))))}onKeyDown(e){var t;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(t=this.toggleButton)||void 0===t||t.focus())}get el(){return r(this)}};P.style=".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:var(--gw-label-base-regular-font-weight);line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.operations-statuses .operations-statuses-dropdown-toggle:focus:not(:focus-visible){outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:2px}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}";const U=class{constructor(e){o(this,e),this.subscriptions=new d,this.eventService=n.get(h),this.resourceSearchStorageService=n.get(p),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=g.RESOURCE_URL,this.shouldMoveFocus=!1,this.closeAndFocusSearchIcon=()=>{this.isOpen&&(this.isOpen=!1,this.shouldMoveFocus=!0)}}handleClick(e){var t;this.isOpen&&((null===(t=this.rdfSearchRef)||void 0===t?void 0:t.contains(e.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.shouldMoveFocus&&(this.shouldMoveFocus=!1,this.moveFocus())}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return t("section",{key:"835735fbb93893e9c3240edabbcae5a465f1ca27",ref:e=>this.rdfSearchRef=e,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},t("section",{key:"fde50b68c1de8ed654af30b27d29ac9403a68f07",class:"search-area "+(this.isOpen?"visible":"invisible"),inert:!this.isOpen},t("button",{key:"4d1f1c2ceb2893177b04dd8b24e3c877da158000",type:"button",onClick:this.closeAndFocusSearchIcon,"aria-label":j.translate("rdf_search.tooltips.close_search_area"),"tooltip-content":j.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":I.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"close-btn"},t("i",{key:"4f6b19632fac056ea0d4632f5f62c7e70ed7aa29",class:"ri-close-line","aria-hidden":"true"})),t("onto-search-resource-input",{key:"204ff32df46482664896f8ac7d2ca9f1f55cd7fd",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":t("onto-search-icon",{ref:e=>this.searchIconRef=e,onClick:this.setIsOpen(!0)}))}setIsOpen(e){return()=>{this.isOpen=e,this.isOpen&&(this.shouldMoveFocus=!0,this.loadSelectedViewFromStorage())}}createButtonConfig(){return new b({isRadio:!0,buttons:[this.createSearchButton(F.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=g.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(F.TABLE_VIEW)},!0),this.createSearchButton(F.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=g.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(F.VISUAL_VIEW)},!1),this.createSearchButton(F.GRAPH_NAVIGATOR_VIEW,"rdf_search.buttons.graph_navigator",()=>{this.redirectUrl=g.GRAPH_NAVIGATOR_URL,this.resourceSearchStorageService.setSelectedView(F.GRAPH_NAVIGATOR_VIEW)},!1)]})}createSearchButton(e,t,o,r){return new f({label:j.translate(t),id:e,callback:o,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(F.SUGGESTION_SELECTED_EVENT,e=>{if(e.getContext()===this.RDF_CONTEXT){const t=e.getSuggestion().getOverrideToVisual()?g.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;w(g.createAutocompleteRedirect(t,e.getSuggestion().getValue()))}}))}onKeyDown(){return e=>{"Escape"===e.key?this.closeAndFocusSearchIcon():"Tab"===e.key&&this.keepFocusInSearchArea(e)}}keepFocusInSearchArea(e){if(!this.isOpen)return;const t=Array.from(this.rdfSearchRef.querySelectorAll(".search-area button:not(:disabled), .search-area input:not(:disabled)")),o=t[0],r=t[t.length-1],s=e.shiftKey?r:o;document.activeElement===(e.shiftKey?o:r)&&(e.preventDefault(),s.focus())}moveFocus(){var e;this.isOpen?N.focusElement(`#${this.RDF_CONTEXT}`):null===(e=this.searchIconRef)||void 0===e||e.componentOnReady().then(e=>{var t;return null===(t=e.querySelector("button"))||void 0===t?void 0:t.focus()})}loadSelectedViewFromStorage(){const e=this.resourceSearchStorageService.getSelectedView();if(e){const t=this.buttonConfig.getButtons().find(t=>t.id===e);t&&(this.buttonConfig=this.buttonConfig.selectButton(t))}}};U.style=".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:var(--gw-body-base-light-font-weight);max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;padding:0.5rem 0.8rem;font-size:1.5rem;line-height:var(--gw-normal-line-height);color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-rdf-search .search-area .close-btn i{display:inline-block;transition:all 0.15s ease-out}.onto-rdf-search .search-area .close-btn:hover i{transform:scale(1.2)}.onto-rdf-search .search-area .close-btn:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-rdf-search .search-area .close-btn:focus:not(:focus-visible){outline:none}";const W=({repository:e,defaultToggleButtonName:o,location:r})=>{var s;return t("div",{class:e?"repository-selection active-repository":"repository-selection no-selected-repository","data-test":"repository-selection"},e&&t("i",{class:"button-icon icon-1-5x icon-repo-"+e.type})," ",t("span",{class:"repository-id"},null!==(s=null==e?void 0:e.id)&&void 0!==s?s:o,r))},X=class{constructor(e){o(this,e),this.repositoryContextService=m(v),this.subscriptions=[],this.repositorySizeInfoCache=new Map,this.repositorySizeInfoRequests=new Map,this.clearRepositorySizeInfo=()=>{this.repositorySizeInfoCache.clear(),this.repositorySizeInfoRequests.clear()}}onItemsChanged(e){this.dropdownItems=(null==e?void 0:e.length)?this.attachTooltipsToItems(this.items):[]}connectedCallback(){var e;this.subscriptions.push(...this.subscribeToTranslationChanged(),this.subscribeToRepositoryListChanged()),this.dropdownItems=(null===(e=this.items)||void 0===e?void 0:e.length)?this.attachTooltipsToItems(this.items):[]}disconnectedCallback(){this.subscriptions.forEach(e=>e())}render(){const o=t(W,{key:"c603f4a2de6beef60a38bfc297ec323810414850",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return t(e,{key:"207c1e246f62dba2262616a6b6a9e637fb9f7166"},t("onto-dropdown",Object.assign({key:"ae203784eb20a87e3e4114c29dace0427df14960",ref:e=>this.dropdownElement=e,class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:o,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownAlignment:L.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",tooltipClass:"repository-selector-tooltip",items:this.dropdownItems,onMouseLeave:this.clearRepositorySizeInfo,"auto-close":!0})))}attachTooltipsToItems(e){return e?e.map(e=>e.setTooltip(this.createTooltipFunctionForRepository(e.value))):[]}tooltipAlignment(e){return e?I.LEFT:I.BOTTOM}onValueChanged(){return e=>this.onRepositoryChanged(e.detail)}createTooltipFunctionForRepository(e){return()=>{if(!e)return Promise.resolve("");if(e.state!==y.RUNNING)return this.buildRepositoryTooltipHtml(e);const t=k(e),o=this.repositorySizeInfoCache.get(t);return o?this.buildRepositoryTooltipHtml(e,o):(this.repositorySizeInfoRequests.has(t)||this.fetchRepositorySizeInfo(e),this.buildRepositoryTooltipHtml(e,void 0,!0))}}fetchRepositorySizeInfo(e){const t=k(e),o=this.repositorySizeInfoFetcher(e);this.repositorySizeInfoRequests.set(t,o),o.then(e=>{this.repositorySizeInfoCache.set(t,e)}).catch(e=>{M.logger.error("Failed to fetch repository size.",e)}).finally(()=>{var e;this.repositorySizeInfoRequests.get(t)===o&&this.repositorySizeInfoRequests.delete(t),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}buildRepositoryTooltipHtml(e,t,o=!1){const r=[`repository="${E(JSON.stringify(e))}"`,`permission="${E(this.getRepositoryPermission(e))}"`];return o&&r.push('loading="true"'),t&&r.push(`size-info="${E(JSON.stringify(t))}"`),Promise.resolve(`<onto-repository-info ${r.join(" ")}></onto-repository-info>`)}subscribeToRepositoryListChanged(){return this.repositoryContextService.onRepositoryListChanged(()=>{var e;this.clearRepositorySizeInfo(),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}subscribeToTranslationChanged(){return[j.onTranslate("repository-selector.btn.toggle",[],e=>{this.defaultToggleButtonName=e}),j.onTranslate("repository-selector.btn.no_repositories",[],e=>{this.noRepositoriesButtonMessage=e})]}onRepositoryChanged(e){this.repositoryContextService.updateSelectedRepository(e)}getLocation(){var e;return(null===(e=this.currentRepository)||void 0===e?void 0:e.location)?`@${g.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:["onItemsChanged"]}}};X.style=":host{display:block}.onto-repository-selector .repository-selection{max-width:16rem;display:flex}.onto-repository-selector .repository-selection .repository-id{overflow:hidden;text-overflow:ellipsis}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;text-align:left;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:1.2em;overflow-x:hidden;text-overflow:ellipsis}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.repository-selector-tooltip.onto-tooltip-box{min-width:22rem}";const Y=class{constructor(e){o(this,e),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new d}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return t("button",{key:"7351e75e718af25b9be67add8a7722cdae66fffe",type:"button",class:"onto-search-icon","aria-label":this.tooltipLabel,"tooltip-content":this.tooltipLabel,"tooltip-placement":I.BOTTOM},t("i",{key:"b81860bf830286b16a0d2b1b9d63d4af59a7fbbb",class:"ri-search-line ri-lg","aria-hidden":"true"}))}onTooltipChange(){this.subscriptions.add(j.onTranslate(this.tooltipKey,[],e=>this.tooltipLabel=e))}};Y.style=".onto-search-icon{padding:0.5rem 0.8rem;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-search-icon i{display:inline-block;transition:all 0.15s ease-out}.onto-search-icon:hover i{transform:scale(1.2)}.onto-search-icon:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-search-icon:focus:not(:focus-visible){outline:none}";const Q=class{constructor(e){o(this,e),this.autocompleteService=n.get(x),this.autocompleteContextService=n.get(_),this.autocompleteStorageService=n.get(C),this.resourceSearchStorageService=n.get(p),this.toastrService=n.get(S),this.eventService=n.get(h),this.namespaceContextService=n.get($),this.repositoryContextService=n.get(v),this.subscriptions=new d,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=e=>{const t=e.target;t.value?(this.setInputValue(t.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.clearInputAndFocus=()=>{this.clearInput(),this.inputRef.focus()},this.onKeyDown=e=>{switch(e.key){case"Enter":this.onEnter(e);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowDown":this.onArrowDown(e)}}}onVisibilityChange(e){var t;e?null===(t=this.searchResult)||void 0===t||t.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onRepositoryChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,o,r,s;const n=j.translate("rdf_search.labels.search"),i=`${this.context}-suggestions`,a=`${this.context}-hint`,l=null!==(o=null===(e=this.searchResult)||void 0===e?void 0:e.suggestions.getItems())&&void 0!==o?o:[],c=l.findIndex(e=>e.isHovered());return t("section",{key:"cda724e2a03c25a7186eff04130da0e38b77f7d8",class:"search-resources-input"},t("div",{key:"96bc8785ddecf838c7564d60d86e1ea224a466fe",class:"input-row"},t("span",{key:"9b6f94fb65209d461910ea79505336e6673d16df",class:"input-wrapper"},t("input",{key:"3a0f1962de2da50a3d0bc2ea1917d91b2ea63b32",value:this.inputValue,id:this.context,type:"text",role:"combobox","aria-label":n,"aria-autocomplete":"list","aria-expanded":l.length?"true":"false","aria-controls":i,"aria-activedescendant":c>=0?this.getSuggestionId(c):void 0,"aria-describedby":a,autocomplete:"off",placeholder:`${n}...`,ref:e=>this.inputRef=e,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(r=this.inputValue)||void 0===r?void 0:r.length)?t("button",{type:"button",onClick:this.clearInputAndFocus,"aria-label":j.translate("rdf_search.tooltips.clear"),"tooltip-content":j.translate("rdf_search.tooltips.clear"),"tooltip-placement":I.BOTTOM,class:"clear-input"},t("i",{class:"ri-close-line","aria-hidden":"true"})):""),null===(s=this.buttonConfig)||void 0===s?void 0:s.getButtons().getItems().map(e=>t("button",{key:e.label,type:"button","aria-pressed":e.selected?"true":"false",onClick:this.handleButtonClick(e),class:"onto-btn "+(e.selected?"selected":"")},e.label))),t("span",{key:"ef80fe089557adfd223b07c3d732bf0d9a5367fe",class:"hint",id:a},j.translate("rdf_search.labels.hint")),t("div",{key:"1eaa7699192a2a4fd1469e03045a5af09a891600",class:"autocomplete-results-wrapper",id:i,role:"listbox",tabindex:-1,"aria-label":n,"data-test":"onto-autocomplete-results"},l.map((e,o)=>t("p",{key:e.getId(),id:this.getSuggestionId(o),role:"option","aria-selected":e.isHovered()?"true":"false",onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}getSuggestionId(e){return`${this.context}-suggestion-${e}`}handleButtonClick(e){return()=>this.buttonConfig=this.buttonConfig.selectButton(e)}loadAutocompleteResults(){var e;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(e=>{this.onResultsReceived(e)}):null===(e=this.searchResult)||void 0===e||e.clearSuggestions()}hoverSuggestion(e){return()=>this.searchResult=this.searchResult.hoverSuggestion(e)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(e=>{this.isAutocompleteEnabled=null!=e?e:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const e=j.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: var(--gw-label-base-medium-font-weight)">${e}</a>`,{onClick:l("autocomplete"),removeOnClick:!0})}}onSuggestionClick(e){return t=>{e.setOverrideToVisual(t.ctrlKey||t.metaKey),this.searchRdfResource(e)}}searchRdfResource(e){e.getType()===z.PREFIX?this.expandPrefix(e):(this.notifyRdfResourceSelected(e),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(e))}notifyRdfResourceSelected(e){var t;this.searchResult=null===(t=this.searchResult)||void 0===t?void 0:t.selectSuggestion(e),this.eventService.emit({NAME:F.SUGGESTION_SELECTED_EVENT,payload:new T(e,this.context)})}expandPrefix(e){this.setInputValue(this.namespaces.getByPrefix(e.getValue())),this.inputRef.focus()}setInputValue(e){this.inputValue=e,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(()=>{this.autocompleteWarningShown=!1}))}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(e=>{this.namespaces=e}))}onEnter(e){var t;let o=null===(t=this.searchResult)||void 0===t?void 0:t.getHoveredSuggestion();o||(o=new B({value:g.removeAngleBrackets(this.inputValue),type:z.URI})),o.setOverrideToVisual(e.ctrlKey||e.metaKey),this.validateAndSearch(o)}onArrowUp(e){this.searchResult&&(this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(e))}onArrowDown(e){this.searchResult&&(this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(e))}displaySuggestion(e){e.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(e){return e.getType()===z.PREFIX?this.namespaces.getByPrefix(e.getValue()):e.getValue()}scrollToSuggestionBySelector(e,t){N.waitForElement(e).then(()=>{N.scrollElementIntoView(e,t)})}validateAndSearch(e){if(!this.skipValidation){if(!e.getValue())return void this.toastrService.error(j.translate("rdf_search.toasts.empty_input"));if(!g.isValidUri(this.getSuggestionValue(e)))return void this.toastrService.error(j.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(e)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(e){const t=null==e?void 0:e.getByValue(this.resourceSearchStorageService.getLastSelectedValue());t&&this.preserveSearch?(e.hoverSuggestion(t),this.searchResult=e.selectSuggestion(t),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=e.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:["onVisibilityChange"]}}};Q.style=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row .clear-input{position:absolute;right:10px;top:7px;z-index:10;padding:0;font-size:1.6rem;line-height:1;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.search-resources-input .input-row .clear-input:focus-visible{outline:2px solid var(--gw-focus-ring-color)}.search-resources-input .input-row .clear-input:focus:not(:focus-visible){outline:none}.search-resources-input .input-row>button{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;transition:all 0.15s ease-out;-webkit-user-select:none;user-select:none;border:1px solid var(--gw-button-secondary-border-color);padding:0.5rem 1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);--onto-btn-focus-ring-color:var(--gw-button-secondary-focus-ring-color)}.search-resources-input .input-row>button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color);border-color:var(--gw-button-primary-border-color)}.search-resources-input .input-row>button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}";const Z=class{constructor(e){o(this,e)}navigateToLogin(){return e=>{e.preventDefault(),R()}}render(){return t("section",{key:"0e775e390fe6d9733fbea06cc9b3137350be0a1a",class:"onto-user-login"},t("button",{key:"9f1b5dbfb20448c3a985bbfcd7e9a41d8b57a6fc",onClick:this.navigateToLogin()},t("i",{key:"c646277a5770c03535720d4117645da70a240fe8",class:"ri-arrow-right-circle-line"}),t("translate-label",{key:"a063b7d24946cbe3fbb6788beebcc0260d995e0b",class:"user-login-label label-base-regular",labelKey:"user_menu.login"})))}};Z.style=".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}";const q=class{constructor(e){o(this,e),this.authenticationService=m(D),this.eventService=m(h),this.DROPDOWN_ID="onto-user-menu-dropdown",this.openMySettings=e=>{e.preventDefault(),this.isOpen=!1,K("settings")},this.logout=()=>{this.isOpen=!1,this.eventService.emit(new A)},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return t("section",{key:"8359f0471e5bcda114532346c2cac8fa858e1779",class:"onto-user-menu"},t("div",{key:"69185865e40b622bd0e7081b98cafd07c309508f",class:"dropdown-toggle-wrapper"},t("button",{key:"4140088a554351f66ac40d9a5c04e10af1bff73b",class:"onto-user-menu-toggle label-base-regular "+(this.isOpen?"open":""),ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},t("i",{key:"bb463c88f7f365174c8ae45c091298883b046236",class:"ri-user-line ri-lg","aria-hidden":"true"}),t("span",{key:"415290f39545158b6eb4e3b9e29ac35647eda0a7",class:"username"},this.user.username),t("i",{key:"58bbdd73b5275b2f565a6bf6fb8408b884c459f5",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen?t("section",{class:"onto-user-menu-dropdown",id:this.DROPDOWN_ID},t("a",{class:"onto-user-menu-item label-base-regular",href:"settings",onClick:this.openMySettings},t("translate-label",{labelKey:"user_menu.my_settings"})),this.authenticationService.isExternalUser()?"":t("button",{class:"onto-user-menu-item label-base-regular",onClick:this.logout},t("translate-label",{labelKey:"user_menu.logout"}))):""))}onKeyDown(e){var t;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(t=this.toggleButton)||void 0===t||t.focus())}get hostElement(){return r(this)}};q.style=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu .onto-user-menu-toggle{display:flex;flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu .onto-user-menu-toggle .ri-user-line,.onto-user-menu .onto-user-menu-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu .onto-user-menu-toggle:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-menu .onto-user-menu-toggle:focus:not(:focus-visible){outline:none}.onto-user-menu .onto-user-menu-toggle.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-toggle.open .ri-user-line,.onto-user-menu .onto-user-menu-toggle.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu .onto-user-menu-toggle.open: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-user-menu .onto-user-menu-toggle.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle .username{padding:0 5px}.onto-user-menu .onto-user-menu-toggle i{transition:0.15s ease-out}.onto-user-menu .onto-user-menu-toggle i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;line-height:var(--gw-base-line-height);width:100%;color:var(--gw-tieredmenu-color);background-color:var(--gw-tieredmenu-background);border:1px solid var(--gw-tieredmenu-border-color);box-shadow:var(--gw-tieredmenu-shadow-1-offset-x) var(--gw-tieredmenu-shadow-1-offset-y) var(--gw-tieredmenu-shadow-1-blur) var(--gw-tieredmenu-shadow-1-spread) var(--gw-tieredmenu-shadow-1-color)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font:inherit;font-weight:var(--gw-label-base-regular-font-weight);text-align:start;text-decoration:none;color:inherit;background:none;border:none;cursor:pointer}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color);background-color:var(--gw-tieredmenu-item-focus-background)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus:not(:focus-visible){outline:none}";export{O as onto_language_selector,V as onto_license_alert,P as onto_operations_notification,U as onto_rdf_search,X as onto_repository_selector,Y as onto_search_icon,Q as onto_search_resource_input,Z as onto_user_login,q as onto_user_menu};
|
|
1
|
+
import{r as o,h as t,a as e,d as r}from"./p-BntG-4Sv.js";import{D as s}from"./p-WQYHXM0G.js";import{ServiceProvider as n,LanguageService as i,LanguageContextService as a,navigateTo as l,OperationStatus as c,OperationGroup as d,SubscriptionList as u,EventService as h,ResourceSearchStorageService as p,UriUtil as g,SearchButtonConfig as b,SearchButton as f,openInNewTab as w,service as m,RepositoryContextService as v,RepositoryState as y,getRepositoryIdWithLocation as k,AutocompleteService as x,AutocompleteContextService as _,AutocompleteStorageService as C,OntoToastrService as S,NamespacesContextService as $,SuggestionType as z,SuggestionSelectedPayload as T,Suggestion as B,navigateToLoginPage as R,AuthenticationService as D,navigate as K,Logout as A}from"@ontotext/workbench-api";import{D as L}from"./p-DghTf3pJ.js";import{O as I}from"./p-D_J2-9CG.js";import{T as j,e as E}from"./p-DSYXTTde.js";import{H as N}from"./p-BSmKhkm5.js";import{R as F}from"./p-CNWCaedF.js";import{L as M}from"./p-BIkLC5Zf.js";const O=class{constructor(e){o(this,e),this.languageService=n.get(i),this.languageContextService=n.get(a),this.items=[],this.dropdownAlignment=L.LEFT}connectedCallback(){this.onLanguageChangeSubscription=this.languageContextService.onSelectedLanguageChanged(e=>this.changeLanguage(e)),this.items=this.getLanguageDropdownOptions()}disconnectedCallback(){this.onLanguageChangeSubscription&&this.onLanguageChangeSubscription()}render(){var o,r;return t(e,{key:"9984b524472fd68652a3fcbcf9eea97f8a223177"},t("onto-dropdown",{key:"428a5d4f65595214dbb2ed4bef9748ffed2d870c",class:"onto-language-selector",onValueChanged:this.valueChangeHandler(),dropdownButtonNameLabelKey:this.currentLanguage?void 0:"language_selector.toggle_menu.label",dropdownButtonName:null!==(o=this.currentLanguage)&&void 0!==o?o:void 0,dropdownButtonTooltipLabelKey:this.currentLanguage?"language_selector.toggle_menu.tooltip":"language_selector.toggle_menu.label",dropdownAlignment:null!==(r=this.dropdownAlignment)&&void 0!==r?r:L.RIGHT,iconClass:"ri-translate-2",items:this.items,"auto-close":!0}))}valueChangeHandler(){return e=>this.onSelectedLanguageChanged(e)}changeLanguage(e){let t=e;t||(t=this.languageService.getDefaultLanguage()),this.currentLanguage=t,this.items=this.getLanguageDropdownOptions()}onSelectedLanguageChanged(e){this.languageContextService.updateSelectedLanguage(e.detail)}getLanguageDropdownOptions(){return this.languageService.getSupportedLanguages().map(e=>{const t=this.currentLanguage===e?"ri-check-line":"";return(new s).setNameLabelKey(`language_selector.language.${e}.label`).setTooltipLabelKey(`language_selector.language.${e}.tooltip.`+(this.currentLanguage===e?"selected":"not_selected")).setIconClass(t).setCssClass(e).setValue(e)})}};O.style=":host{display:block}onto-language-selector{display:block}onto-language-selector .onto-dropdown{height:100%}onto-language-selector .onto-dropdown .onto-dropdown-button{background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown .onto-dropdown-button .button-icon{color:var(--gw-button-tertiary-icon-color)}onto-language-selector .onto-dropdown .onto-dropdown-button:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}onto-language-selector .onto-dropdown.open{color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);border-color:var(--gw-button-tertiary-border-color)}onto-language-selector .onto-dropdown.open .onto-dropdown-button{height:fit-content}";const V=class{constructor(e){o(this,e)}render(){var o;return t(e,{key:"9bac74e245fc646cfd6b63d638ac11ffeb50754b","tooltip-content":null===(o=this.license)||void 0===o?void 0:o.message,"tooltip-placement":I.BOTTOM,"data-test":"onto-license-alert"},t("button",{key:"317cbc79f9f3b9fe63284ebcd602c63b9d89a3fa",class:"onto-license-alert onto-btn",onClick:l("license")},t("span",{key:"dd60e1800d32e32bdbb88555f34b0bb55396914b",class:"ri-alert-line"}),t("translate-label",{key:"9f6886cf5803e3cbc8092c578152b3f8615c89cc",labelKey:"license_alert.label"})))}};V.style=":host{display:block}.onto-license-alert{animation:fade-button 2s infinite;--fade-color:var(--gw-error-light);border:1px solid transparent !important}.onto-license-alert:hover{text-decoration:none;background-color:var(--gw-error-light) !important;border-color:var(--gw-error-light) !important}.onto-license-alert:hover span{transform:scale(1.2)}.onto-license-alert span{transition:transform 0.15s ease-out}.onto-license-alert .ri-alert-line{margin-right:0.2em;line-height:0.75;font-size:1.4em;display:inline-block;vertical-align:middle}";const H={[d.BACKUP]:"ri-archive-line",[d.QUERY]:"ri-arrow-left-right-line",[d.CLUSTER]:"ri-organization-chart",[d.IMPORT]:"icon-import"},G={[c.WARNING]:"status-warning",[c.INFORMATION]:"status-information",[c.CRITICAL]:"status-critical"},J={[c.WARNING]:"onto-btn-fade-warning",[c.CRITICAL]:"onto-btn-fade-danger"},P=class{constructor(e){o(this,e),this.isOpen=!1,this.DROPDOWN_ID="onto-operations-dropdown",this.toggleDropdown=e=>{e.stopPropagation(),this.isOpen=!this.isOpen}}handleOutsideClick(){this.isOpen&&(this.isOpen=!1)}render(){var e;return this.operationGroups=this.activeOperations.toOperationGroupSummaryList(),t("section",{key:"13de6326145250d9f3459f5558e8c1791a3be35a",class:"operations-statuses"},t("button",{key:"de16a9fc8c01af9ad5a82b052c838f37e7e6713f",class:`operations-statuses-dropdown-toggle ${this.isOpen?"open":"closed"} ${null!==(e=J[this.activeOperations.status])&&void 0!==e?e:""}`,ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},t("span",{key:"857f7317826c5285797374c1871104cd23bb5216",class:"screen-reader-only"},t("translate-label",{key:"6710d5a90dea211a7ae801cf63ae19c1032b584a",labelKey:"operations_notification.toggle_label"})),this.operationGroups.getItems().map(e=>t("section",{key:e.id,class:"operation-status-header"},t("i",{"aria-hidden":"true",class:`operation-status-icon icon-1-33x ${H[e.group]} ${G[e.status]}`}),e.totalOperations?t("sup",{class:"running-operation-count"},e.totalOperations):"")),t("i",{key:"3f98039d08623eccc3c03c20d7fd5c44b8f45fd4",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen&&t("div",{key:"622feb33220bc3d9f43525b38c16fb0c6eb9678c",class:"operations-dropdown",id:this.DROPDOWN_ID},t("ul",{key:"b9d6c474ef48b72292e9985637bf6d9b6d1356ab",class:"operations-statuses-content"},this.activeOperations.allRunningOperations.getItems().map(e=>t("li",{key:e.id},t("a",{class:`operation-status-content onto-btn no-underline ${G[e.status]}`,href:e.href,target:"_blank",rel:"noopener noreferrer"},t("i",{class:H[e.group],"aria-hidden":"true"}),t("span",{class:"operation-status-label"},t("translate-label",{labelKey:`operations_notification.links.${e.labelKey}`})),t("span",{class:"operation-number"},e.count?t("span",{class:"operation-status-running-operation-count"},e.count):""),t("span",{class:"screen-reader-only"}," ",t("translate-label",{labelKey:"common.label.opens_in_new_window"}))))))))}onKeyDown(e){var t;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(t=this.toggleButton)||void 0===t||t.focus())}get el(){return r(this)}};P.style=".operations-statuses{position:relative;background-color:transparent}.operations-statuses .operations-statuses-content i{padding-left:3px;padding-right:3px;font-size:1.1em;line-height:1.6rem !important;align-content:center;transition:transform 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle{display:flex;font-weight:var(--gw-label-base-regular-font-weight);line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid var(--gw-button-tertiary-border-color);padding:0.4rem 1rem;gap:0.75em;transition:all 0.15s ease-out}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-icon,.operations-statuses .operations-statuses-dropdown-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.operations-statuses .operations-statuses-dropdown-toggle:hover i:not(.ri-arrow-down-s-line){transform:scale(1.2)}.operations-statuses .operations-statuses-dropdown-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.operations-statuses .operations-statuses-dropdown-toggle:focus:not(:focus-visible){outline:none}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header{display:flex}.operations-statuses .operations-statuses-dropdown-toggle .operation-status-header .running-operation-count{line-height:1.7;display:inline;min-width:1rem;height:1rem;padding:0 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown{position:absolute;right:0;z-index:1000;background-color:var(--gw-contextmenu-background);border:1px solid var(--gw-contextmenu-border-color);color:var(--gw-contextmenu-color);list-style:none;padding:0;transition:all 150ms ease-out}.operations-statuses .operations-dropdown .operations-statuses-content{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.operations-statuses .operations-dropdown .operations-statuses-content li:first-child{margin-top:5px}.operations-statuses .operations-dropdown .operations-statuses-content li:last-child{margin-bottom:5px}.operations-statuses .operations-dropdown .operation-status-content{display:flex;flex-direction:row;margin:5px 10px;align-items:center;justify-content:start;cursor:pointer;text-decoration:none;width:auto;gap:0.5em}.operations-statuses .operations-dropdown .operation-status-content.status-warning{background-color:var(--gw-button-warn-background);border:1px solid var(--gw-button-warn-border-color);color:var(--gw-button-warn-color)}.operations-statuses .operations-dropdown .operation-status-content.status-warning:hover{background-color:var(--gw-button-warn-hover-background);border:1px solid var(--gw-button-warn-hover-border-color);color:var(--gw-button-warn-hover-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical{background-color:var(--gw-button-danger-background);border:1px solid var(--gw-button-danger-border-color);color:var(--gw-button-danger-color)}.operations-statuses .operations-dropdown .operation-status-content.status-critical:hover{background-color:var(--gw-button-danger-hover-background);border:1px solid var(--gw-button-danger-hover-border-color);color:var(--gw-button-danger-hover-color)}.operations-statuses .operations-dropdown .operation-status-content .operation-number{min-width:50px;display:block}.operations-statuses .operations-dropdown .operation-status-content .operation-number .operation-status-running-operation-count{display:inline;min-width:1rem;height:1rem;padding:2px 6px;background-color:var(--gw-badge-primary-background);color:var(--gw-badge-primary-color);font-size:0.625rem;font-weight:var(--gw-font-weight-600)}.operations-statuses .operations-dropdown .operation-status-content .operation-status-content>*{padding:0}.operations-statuses .operations-dropdown .operation-status-content .operation-status-label{width:66.66%;padding-left:5px;line-height:0;text-align:start}.operations-statuses .operations-dropdown .operation-status-content:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:2px}.operations-statuses .operations-dropdown .operation-status-content:hover{text-decoration:none;color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.operations-statuses .operations-dropdown .operation-status-content:hover i{transform:scale(1.2)}.operations-statuses .operations-dropdown .operation-status-content.status-information{background-color:var(--gw-button-tertiary-background);border:1px solid var(--gw-button-tertiary-border-color);color:var(--gw-button-tertiary-color)}.operations-statuses .operations-dropdown .operation-status-content.status-information:hover{background-color:var(--gw-button-tertiary-hover-background);border:1px solid var(--gw-button-tertiary-hover-border-color);color:var(--gw-button-tertiary-hover-color)}";const U=class{constructor(e){o(this,e),this.subscriptions=new u,this.eventService=n.get(h),this.resourceSearchStorageService=n.get(p),this.RDF_CONTEXT="rdfSearchContext",this.isOpen=!1,this.redirectUrl=g.RESOURCE_URL,this.shouldMoveFocus=!1,this.closeAndFocusSearchIcon=()=>{this.isOpen&&(this.isOpen=!1,this.shouldMoveFocus=!0)}}handleClick(e){var t;this.isOpen&&((null===(t=this.rdfSearchRef)||void 0===t?void 0:t.contains(e.target))||(this.isOpen=!1))}connectedCallback(){this.onSuggestionSelected()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}componentDidRender(){this.shouldMoveFocus&&(this.shouldMoveFocus=!1,this.moveFocus())}componentDidLoad(){this.buttonConfig=this.createButtonConfig()}render(){return t("section",{key:"835735fbb93893e9c3240edabbcae5a465f1ca27",ref:e=>this.rdfSearchRef=e,class:"onto-rdf-search",onKeyDown:this.onKeyDown(),"data-test":"onto-rdf-search-component"},t("section",{key:"fde50b68c1de8ed654af30b27d29ac9403a68f07",class:"search-area "+(this.isOpen?"visible":"invisible"),inert:!this.isOpen},t("button",{key:"4d1f1c2ceb2893177b04dd8b24e3c877da158000",type:"button",onClick:this.closeAndFocusSearchIcon,"aria-label":j.translate("rdf_search.tooltips.close_search_area"),"tooltip-content":j.translate("rdf_search.tooltips.close_search_area"),"tooltip-placement":I.BOTTOM,"data-test":"onto-rdf-resource-search-close-btn",class:"close-btn"},t("i",{key:"4f6b19632fac056ea0d4632f5f62c7e70ed7aa29",class:"ri-close-line","aria-hidden":"true"})),t("onto-search-resource-input",{key:"204ff32df46482664896f8ac7d2ca9f1f55cd7fd",buttonConfig:this.buttonConfig,preserveSearch:!0,isHidden:!this.isOpen,"data-test":"onto-rdf-resource-search-input",context:this.RDF_CONTEXT})),this.isOpen?"":t("onto-search-icon",{ref:e=>this.searchIconRef=e,onClick:this.setIsOpen(!0)}))}setIsOpen(e){return()=>{this.isOpen=e,this.isOpen&&(this.shouldMoveFocus=!0,this.loadSelectedViewFromStorage())}}createButtonConfig(){return new b({isRadio:!0,buttons:[this.createSearchButton(F.TABLE_VIEW,"rdf_search.buttons.table",()=>{this.redirectUrl=g.RESOURCE_URL,this.resourceSearchStorageService.setSelectedView(F.TABLE_VIEW)},!0),this.createSearchButton(F.VISUAL_VIEW,"rdf_search.buttons.visual",()=>{this.redirectUrl=g.GRAPHS_VISUALIZATIONS_URL,this.resourceSearchStorageService.setSelectedView(F.VISUAL_VIEW)},!1),this.createSearchButton(F.GRAPH_NAVIGATOR_VIEW,"rdf_search.buttons.graph_navigator",()=>{this.redirectUrl=g.GRAPH_NAVIGATOR_URL,this.resourceSearchStorageService.setSelectedView(F.GRAPH_NAVIGATOR_VIEW)},!1)]})}createSearchButton(e,t,o,r){return new f({label:j.translate(t),id:e,callback:o,selected:r})}onSuggestionSelected(){this.subscriptions.add(this.eventService.subscribe(F.SUGGESTION_SELECTED_EVENT,e=>{if(e.getContext()===this.RDF_CONTEXT){const t=e.getSuggestion().getOverrideToVisual()?g.GRAPHS_VISUALIZATIONS_URL:this.redirectUrl;w(g.createAutocompleteRedirect(t,e.getSuggestion().getValue()))}}))}onKeyDown(){return e=>{"Escape"===e.key?this.closeAndFocusSearchIcon():"Tab"===e.key&&this.keepFocusInSearchArea(e)}}keepFocusInSearchArea(e){if(!this.isOpen)return;const t=Array.from(this.rdfSearchRef.querySelectorAll(".search-area button:not(:disabled), .search-area input:not(:disabled)")),o=t[0],r=t[t.length-1],s=e.shiftKey?r:o;document.activeElement===(e.shiftKey?o:r)&&(e.preventDefault(),s.focus())}moveFocus(){var e;this.isOpen?N.focusElement(`#${this.RDF_CONTEXT}`):null===(e=this.searchIconRef)||void 0===e||e.componentOnReady().then(e=>{var t;return null===(t=e.querySelector("button"))||void 0===t?void 0:t.focus()})}loadSelectedViewFromStorage(){const e=this.resourceSearchStorageService.getSelectedView();if(e){const t=this.buttonConfig.getButtons().find(t=>t.id===e);t&&(this.buttonConfig=this.buttonConfig.selectButton(t))}}};U.style=".onto-rdf-search{display:flex;align-items:center;height:auto}.onto-rdf-search .search-area{white-space:nowrap;text-align:start;font-weight:var(--gw-body-base-light-font-weight);max-width:100vw;position:fixed;right:3em;z-index:1;display:block;width:60vw;transition:top 0.3s ease-in, opacity 0.5s ease;border-radius:0;margin-bottom:1em;padding:1.6rem;color:var(--gw-dialog-color);background-color:var(--gw-dialog-background);border:1px solid var(--gw-dialog-border-color);box-shadow:var(--gw-dialog-shadow-1-offset-x) var(--gw-dialog-shadow-1-offset-y) var(--gw-dialog-shadow-1-blur) var(--gw-dialog-shadow-1-spread) var(--gw-dialog-shadow-1-color)}.onto-rdf-search .search-area.visible{top:40px;opacity:1}.onto-rdf-search .search-area.invisible{top:-550px;opacity:0}.onto-rdf-search .search-area .close-btn{display:block;position:absolute;top:0;right:0;padding:0.5rem 0.8rem;font-size:1.5rem;line-height:var(--gw-normal-line-height);color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-rdf-search .search-area .close-btn i{display:inline-block;transition:all 0.15s ease-out}.onto-rdf-search .search-area .close-btn:hover i{transform:scale(1.2)}.onto-rdf-search .search-area .close-btn:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-rdf-search .search-area .close-btn:focus:not(:focus-visible){outline:none}";const W=({repository:e,defaultToggleButtonName:o,location:r})=>{var s;return t("div",{class:e?"repository-selection active-repository":"repository-selection no-selected-repository","data-test":"repository-selection"},e&&t("i",{class:"button-icon icon-1-5x icon-repo-"+e.type})," ",t("span",{class:"repository-id"},null!==(s=null==e?void 0:e.id)&&void 0!==s?s:o,r))},X=class{constructor(e){o(this,e),this.repositoryContextService=m(v),this.subscriptions=[],this.repositorySizeInfoCache=new Map,this.repositorySizeInfoRequests=new Map,this.clearRepositorySizeInfo=()=>{this.repositorySizeInfoCache.clear(),this.repositorySizeInfoRequests.clear()}}onItemsChanged(e){this.dropdownItems=(null==e?void 0:e.length)?this.attachTooltipsToItems(this.items):[]}connectedCallback(){var e;this.subscriptions.push(...this.subscribeToTranslationChanged(),this.subscribeToRepositoryListChanged()),this.dropdownItems=(null===(e=this.items)||void 0===e?void 0:e.length)?this.attachTooltipsToItems(this.items):[]}disconnectedCallback(){this.subscriptions.forEach(e=>e())}render(){const o=t(W,{key:"c603f4a2de6beef60a38bfc297ec323810414850",repository:this.currentRepository,defaultToggleButtonName:this.getButtonLabel(),location:this.getLocation()});return t(e,{key:"207c1e246f62dba2262616a6b6a9e637fb9f7166"},t("onto-dropdown",Object.assign({key:"ae203784eb20a87e3e4114c29dace0427df14960",ref:e=>this.dropdownElement=e,class:"onto-repository-selector","data-test":"onto-repository-selector",onValueChanged:this.onValueChanged(),dropdownButtonName:o,dropdownButtonTooltip:this.createTooltipFunctionForRepository(this.currentRepository)},this.currentRepository?{dropdownButtonGuideSelector:`repository-id-${this.currentRepository.id}`}:{},{dropdownAlignment:L.RIGHT,tooltipPlacement:this.tooltipAlignment,tooltipTheme:"light-border",tooltipClass:"repository-selector-tooltip",items:this.dropdownItems,onMouseLeave:this.clearRepositorySizeInfo,"auto-close":!0})))}attachTooltipsToItems(e){return e?e.map(e=>e.setTooltip(this.createTooltipFunctionForRepository(e.value))):[]}tooltipAlignment(e){return e?I.LEFT:I.BOTTOM}onValueChanged(){return e=>this.onRepositoryChanged(e.detail)}createTooltipFunctionForRepository(e){return()=>{if(!e)return Promise.resolve("");if(e.state!==y.RUNNING)return this.buildRepositoryTooltipHtml(e);const t=k(e),o=this.repositorySizeInfoCache.get(t);return o?this.buildRepositoryTooltipHtml(e,o):(this.repositorySizeInfoRequests.has(t)||this.fetchRepositorySizeInfo(e),this.buildRepositoryTooltipHtml(e,void 0,!0))}}fetchRepositorySizeInfo(e){const t=k(e),o=this.repositorySizeInfoFetcher(e);this.repositorySizeInfoRequests.set(t,o),o.then(e=>{this.repositorySizeInfoCache.set(t,e)}).catch(e=>{M.logger.error("Failed to fetch repository size.",e)}).finally(()=>{var e;this.repositorySizeInfoRequests.get(t)===o&&this.repositorySizeInfoRequests.delete(t),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}buildRepositoryTooltipHtml(e,t,o=!1){const r=[`repository="${E(JSON.stringify(e))}"`,`permission="${E(this.getRepositoryPermission(e))}"`];return o&&r.push('loading="true"'),t&&r.push(`size-info="${E(JSON.stringify(t))}"`),Promise.resolve(`<onto-repository-info ${r.join(" ")}></onto-repository-info>`)}subscribeToRepositoryListChanged(){return this.repositoryContextService.onRepositoryListChanged(()=>{var e;this.clearRepositorySizeInfo(),null===(e=this.dropdownElement)||void 0===e||e.refreshButtonTooltip()})}subscribeToTranslationChanged(){return[j.onTranslate("repository-selector.btn.toggle",[],e=>{this.defaultToggleButtonName=e}),j.onTranslate("repository-selector.btn.no_repositories",[],e=>{this.noRepositoriesButtonMessage=e})]}onRepositoryChanged(e){this.repositoryContextService.updateSelectedRepository(e)}getLocation(){var e;return(null===(e=this.currentRepository)||void 0===e?void 0:e.location)?`@${g.shortenIri(this.currentRepository.location)}`:""}getButtonLabel(){var e;return(null===(e=this.items)||void 0===e?void 0:e.length)?this.defaultToggleButtonName:this.noRepositoriesButtonMessage}static get watchers(){return{items:["onItemsChanged"]}}};X.style=":host{display:block}.onto-repository-selector .repository-selection{max-width:16rem;display:flex}.onto-repository-selector .repository-selection .repository-id{overflow:hidden;text-overflow:ellipsis}.onto-repository-selector .onto-dropdown.closed .onto-dropdown-button:not(:hover){background-color:transparent}.onto-repository-selector .repository-selector-dropdown-item{display:flex;align-items:center;gap:0.4em}.onto-repository-selector .repository-selector-dropdown-item .item-icon{font-size:1.4em}.onto-repository-selector .repository-selector-dropdown-item .item-label{line-height:0.75em;text-align:left;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id-row{display:flex;align-items:center;gap:0.4em;min-width:0}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-id{line-height:1.2em;overflow-x:hidden;text-overflow:ellipsis}.onto-repository-selector .repository-selector-dropdown-item .item-label .deprecated-tag{flex-shrink:0;padding:0.15em 0.4em;border-radius:0.25em;font-size:0.7em;line-height:1.2em;color:var(--gw-tag-warning-color);background-color:var(--gw-tag-warning-background)}.onto-repository-selector .repository-selector-dropdown-item .item-label .repository-location{margin-top:0.4em;display:inline-block;max-width:120px;text-overflow:ellipsis;overflow:hidden}.repository-selector-tooltip.onto-tooltip-box{min-width:22rem}";const Y=class{constructor(e){o(this,e),this.tooltipKey="rdf_search.labels.search",this.subscriptions=new u}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return t("button",{key:"7351e75e718af25b9be67add8a7722cdae66fffe",type:"button",class:"onto-search-icon","aria-label":this.tooltipLabel,"tooltip-content":this.tooltipLabel,"tooltip-placement":I.BOTTOM},t("i",{key:"b81860bf830286b16a0d2b1b9d63d4af59a7fbbb",class:"ri-search-line ri-lg","aria-hidden":"true"}))}onTooltipChange(){this.subscriptions.add(j.onTranslate(this.tooltipKey,[],e=>this.tooltipLabel=e))}};Y.style=".onto-search-icon{padding:0.5rem 0.8rem;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.onto-search-icon i{display:inline-block;transition:all 0.15s ease-out}.onto-search-icon:hover i{transform:scale(1.2)}.onto-search-icon:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-search-icon:focus:not(:focus-visible){outline:none}";const Q=class{constructor(e){o(this,e),this.autocompleteService=n.get(x),this.autocompleteContextService=n.get(_),this.autocompleteStorageService=n.get(C),this.resourceSearchStorageService=n.get(p),this.toastrService=n.get(S),this.eventService=n.get(h),this.namespaceContextService=n.get($),this.repositoryContextService=n.get(v),this.subscriptions=new u,this.autocompleteWarningShown=!1,this.skipValidation=!1,this.isHidden=!1,this.isAutocompleteEnabled=!1,this.handleInput=e=>{const t=e.target;t.value?(this.setInputValue(t.value),this.checkForAutocomplete()):this.clearInput()},this.clearInput=()=>{this.setInputValue(""),this.preserveSearch&&this.resourceSearchStorageService.clearStoredSearch()},this.clearInputAndFocus=()=>{this.clearInput(),this.inputRef.focus()},this.onKeyDown=e=>{switch(e.key){case"Enter":this.onEnter(e);break;case"Escape":this.onEscape();break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowDown":this.onArrowDown(e)}}}onVisibilityChange(e){var t;e?null===(t=this.searchResult)||void 0===t||t.clearSuggestions():this.setInputValue(this.resourceSearchStorageService.getInputValue())}connectedCallback(){this.onAutocompleteEnabledChange(),this.onRepositoryChange(),this.onNamespaceChange(),this.loadInputFromStorage()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){var e,o,r,s;const n=j.translate("rdf_search.labels.search"),i=`${this.context}-suggestions`,a=`${this.context}-hint`,l=null!==(o=null===(e=this.searchResult)||void 0===e?void 0:e.suggestions.getItems())&&void 0!==o?o:[],c=l.findIndex(e=>e.isHovered());return t("section",{key:"cda724e2a03c25a7186eff04130da0e38b77f7d8",class:"search-resources-input"},t("div",{key:"96bc8785ddecf838c7564d60d86e1ea224a466fe",class:"input-row"},t("span",{key:"9b6f94fb65209d461910ea79505336e6673d16df",class:"input-wrapper"},t("input",{key:"3a0f1962de2da50a3d0bc2ea1917d91b2ea63b32",value:this.inputValue,id:this.context,type:"text",role:"combobox","aria-label":n,"aria-autocomplete":"list","aria-expanded":l.length?"true":"false","aria-controls":i,"aria-activedescendant":c>=0?this.getSuggestionId(c):void 0,"aria-describedby":a,autocomplete:"off",placeholder:`${n}...`,ref:e=>this.inputRef=e,onKeyDown:this.onKeyDown,"data-test":this.context,onInput:this.handleInput}),(null===(r=this.inputValue)||void 0===r?void 0:r.length)?t("button",{type:"button",onClick:this.clearInputAndFocus,"aria-label":j.translate("rdf_search.tooltips.clear"),"tooltip-content":j.translate("rdf_search.tooltips.clear"),"tooltip-placement":I.BOTTOM,class:"clear-input"},t("i",{class:"ri-close-line","aria-hidden":"true"})):""),null===(s=this.buttonConfig)||void 0===s?void 0:s.getButtons().getItems().map(e=>t("button",{key:e.label,type:"button","aria-pressed":e.selected?"true":"false",onClick:this.handleButtonClick(e),class:"onto-btn "+(e.selected?"selected":"")},e.label))),t("span",{key:"ef80fe089557adfd223b07c3d732bf0d9a5367fe",class:"hint",id:a},j.translate("rdf_search.labels.hint")),t("div",{key:"1eaa7699192a2a4fd1469e03045a5af09a891600",class:"autocomplete-results-wrapper",id:i,role:"listbox",tabindex:-1,"aria-label":n,"data-test":"onto-autocomplete-results"},l.map((e,o)=>t("p",{key:e.getId(),id:this.getSuggestionId(o),role:"option","aria-selected":e.isHovered()?"true":"false",onClick:this.onSuggestionClick(e),"data-test":"onto-autocomplete-suggestion",onMouseMove:this.hoverSuggestion(e),class:`${e.isHovered()?"hovered":""} ${e.isSelected()?"selected":""}`,innerHTML:e.getDescription()}))))}getSuggestionId(e){return`${this.context}-suggestion-${e}`}handleButtonClick(e){return()=>this.buttonConfig=this.buttonConfig.selectButton(e)}loadAutocompleteResults(){var e;this.inputValue?this.isAutocompleteEnabled&&this.autocompleteService.search(this.inputValue).then(e=>{this.onResultsReceived(e)}):null===(e=this.searchResult)||void 0===e||e.clearSuggestions()}hoverSuggestion(e){return()=>this.searchResult=this.searchResult.hoverSuggestion(e)}onAutocompleteEnabledChange(){this.isAutocompleteEnabled=this.autocompleteStorageService.isEnabled(),this.subscriptions.add(this.autocompleteContextService.onAutocompleteEnabledChanged(e=>{this.isAutocompleteEnabled=null!=e?e:this.isAutocompleteEnabled}))}checkForAutocomplete(){if(this.inputValue.length>0&&!this.isAutocompleteEnabled&&!this.autocompleteWarningShown){this.autocompleteWarningShown=!0;const e=j.translate("rdf_search.toasts.autocomplete_is_off");this.toastrService.warning(`<a class="no-underline" style="font-weight: var(--gw-label-base-medium-font-weight)">${e}</a>`,{onClick:l("autocomplete"),removeOnClick:!0})}}onSuggestionClick(e){return t=>{e.setOverrideToVisual(t.ctrlKey||t.metaKey),this.searchRdfResource(e)}}searchRdfResource(e){e.getType()===z.PREFIX?this.expandPrefix(e):(this.notifyRdfResourceSelected(e),this.preserveSearch&&this.resourceSearchStorageService.setLastSelected(e))}notifyRdfResourceSelected(e){var t;this.searchResult=null===(t=this.searchResult)||void 0===t?void 0:t.selectSuggestion(e),this.eventService.emit({NAME:F.SUGGESTION_SELECTED_EVENT,payload:new T(e,this.context)})}expandPrefix(e){this.setInputValue(this.namespaces.getByPrefix(e.getValue())),this.inputRef.focus()}setInputValue(e){this.inputValue=e,this.preserveSearch&&this.resourceSearchStorageService.setInputValue(this.inputValue),this.loadAutocompleteResults()}onRepositoryChange(){this.subscriptions.add(this.repositoryContextService.onSelectedRepositoryChanged(()=>{this.autocompleteWarningShown=!1}))}onNamespaceChange(){this.subscriptions.add(this.namespaceContextService.onNamespacesChanged(e=>{this.namespaces=e}))}onEnter(e){var t;let o=null===(t=this.searchResult)||void 0===t?void 0:t.getHoveredSuggestion();o||(o=new B({value:g.removeAngleBrackets(this.inputValue),type:z.URI})),o.setOverrideToVisual(e.ctrlKey||e.metaKey),this.validateAndSearch(o)}onArrowUp(e){this.searchResult&&(this.searchResult=this.searchResult.hoverPreviousSuggestion(),this.displaySuggestion(e))}onArrowDown(e){this.searchResult&&(this.searchResult=this.searchResult.hoverNextSuggestion(),this.displaySuggestion(e))}displaySuggestion(e){e.preventDefault(),this.inputRef.value=this.searchResult.getHoveredSuggestion().getValue(),this.scrollToSuggestionBySelector("p.hovered")}getSuggestionValue(e){return e.getType()===z.PREFIX?this.namespaces.getByPrefix(e.getValue()):e.getValue()}scrollToSuggestionBySelector(e,t){N.waitForElement(e).then(()=>{N.scrollElementIntoView(e,t)})}validateAndSearch(e){if(!this.skipValidation){if(!e.getValue())return void this.toastrService.error(j.translate("rdf_search.toasts.empty_input"));if(!g.isValidUri(this.getSuggestionValue(e)))return void this.toastrService.error(j.translate("rdf_search.toasts.invalid_uri"))}this.searchRdfResource(e)}onEscape(){this.preserveSearch||this.clearInput()}loadInputFromStorage(){this.preserveSearch&&(this.inputValue=this.resourceSearchStorageService.getInputValue()||"")}onResultsReceived(e){const t=null==e?void 0:e.getByValue(this.resourceSearchStorageService.getLastSelectedValue());t&&this.preserveSearch?(e.hoverSuggestion(t),this.searchResult=e.selectSuggestion(t),this.scrollToSuggestionBySelector("p.hovered.selected",{block:"start"})):(this.searchResult=e.hoverFirstSuggestion(),this.scrollToSuggestionBySelector("p.hovered",{block:"start"}))}static get watchers(){return{isHidden:["onVisibilityChange"]}}};Q.style=".search-resources-input{padding-right:20px}.search-resources-input .input-row{gap:3px;display:flex;flex-wrap:wrap}.search-resources-input .input-row .input-wrapper{position:relative;display:flex;flex:1;min-width:20vw}.search-resources-input .input-row .input-wrapper input{min-width:inherit;flex:1;padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:var(--gw-form-field-color);background-color:var(--gw-form-field-background);background-image:none;background-clip:padding-box;border:1px solid var(--gw-form-field-border-color)}.search-resources-input .input-row .input-wrapper input:focus{outline:0;color:var(--gw-form-field-color);border-color:var(--gw-form-field-focus-border-color)}.search-resources-input .input-row .clear-input{position:absolute;right:10px;top:7px;z-index:10;padding:0;font-size:1.6rem;line-height:1;color:var(--gw-button-tertiary-icon-color);background:none;border:none;cursor:pointer}.search-resources-input .input-row .clear-input:focus-visible{outline:2px solid var(--gw-focus-ring-color)}.search-resources-input .input-row .clear-input:focus:not(:focus-visible){outline:none}.search-resources-input .input-row>button{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;transition:all 0.15s ease-out;-webkit-user-select:none;user-select:none;border:1px solid var(--gw-button-secondary-border-color);padding:0.5rem 1rem;color:var(--gw-button-secondary-color);background-color:var(--gw-button-secondary-background);--onto-btn-focus-ring-color:var(--gw-button-secondary-focus-ring-color)}.search-resources-input .input-row>button.selected{background-color:var(--gw-button-primary-background);color:var(--gw-button-primary-color);border-color:var(--gw-button-primary-border-color)}.search-resources-input .input-row>button:hover:not(.selected){background-color:var(--gw-button-secondary-hover-background);border-color:var(--gw-button-secondary-hover-color)}.search-resources-input .hint{font-size:0.8rem;color:#818a91}.search-resources-input .autocomplete-results-wrapper{margin-top:6px;max-height:204px;overflow:auto}.search-resources-input .autocomplete-results-wrapper p{font-size:1.1rem;color:var(--gw-autocomplete-color);background-color:var(--gw-autocomplete-background);margin-bottom:0;padding:5px 25px;cursor:pointer}.search-resources-input .autocomplete-results-wrapper p b{color:var(--gw-autocomplete-dropdown-match-color)}.search-resources-input .autocomplete-results-wrapper p.selected{color:var(--gw-autocomplete-option-selected-color);background-color:var(--gw-autocomplete-option-selected-background)}.search-resources-input .autocomplete-results-wrapper p.hovered:not(.selected),.search-resources-input .autocomplete-results-wrapper p:hover:not(.selected){color:var(--gw-autocomplete-option-focus-color);background-color:var(--gw-autocomplete-option-focus-background)}";const Z=class{constructor(e){o(this,e)}navigateToLogin(){return e=>{e.preventDefault(),R()}}render(){return t("section",{key:"0e775e390fe6d9733fbea06cc9b3137350be0a1a",class:"onto-user-login"},t("button",{key:"9f1b5dbfb20448c3a985bbfcd7e9a41d8b57a6fc",onClick:this.navigateToLogin()},t("i",{key:"c646277a5770c03535720d4117645da70a240fe8",class:"ri-arrow-right-circle-line"}),t("translate-label",{key:"a063b7d24946cbe3fbb6788beebcc0260d995e0b",class:"user-login-label label-base-regular",labelKey:"user_menu.login"})))}};Z.style=".onto-user-login{position:relative;width:fit-content}.onto-user-login button{display:flex;color:var(--gw-button-tertiary-color);background-color:var(--gw-button-tertiary-background);flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;border:1px solid transparent;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out}.onto-user-login button .user-login-label{padding:0 0.4rem}.onto-user-login button:hover{color:var(--gw-button-tertiary-hover-color);background-color:var(--gw-button-tertiary-hover-background)}.onto-user-login button:hover .ri-user-fill{transform:scale(1.2)}.onto-user-login button:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-login button i{color:var(--user-menu-primary-color);line-height:0.75;font-size:1.2em;transition:0.15s ease-out}.onto-user-login button i.ri-arrow-down-s-line{color:rgba(0, 0, 0, 0.35);font-size:1.1em;transition:all 0.2s ease-in}";const q=class{constructor(e){o(this,e),this.authenticationService=m(D),this.eventService=m(h),this.DROPDOWN_ID="onto-user-menu-dropdown",this.openMySettings=e=>{e.preventDefault(),this.isOpen=!1,K("settings")},this.logout=()=>{this.isOpen=!1,this.eventService.emit(new A)},this.toggleDropdown=()=>{this.isOpen=!this.isOpen},this.handleOutsideClick=e=>{this.isOpen&&!this.hostElement.contains(e.target)&&(this.isOpen=!1)}}connectedCallback(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}render(){return t("section",{key:"8359f0471e5bcda114532346c2cac8fa858e1779",class:"onto-user-menu"},t("div",{key:"69185865e40b622bd0e7081b98cafd07c309508f",class:"dropdown-toggle-wrapper"},t("button",{key:"4140088a554351f66ac40d9a5c04e10af1bff73b",class:"onto-user-menu-toggle label-base-regular "+(this.isOpen?"open":""),ref:e=>this.toggleButton=e,"aria-expanded":this.isOpen?"true":"false","aria-controls":this.DROPDOWN_ID,onClick:this.toggleDropdown},t("i",{key:"bb463c88f7f365174c8ae45c091298883b046236",class:"ri-user-line ri-lg","aria-hidden":"true"}),t("span",{key:"415290f39545158b6eb4e3b9e29ac35647eda0a7",class:"username"},this.user.username),t("i",{key:"58bbdd73b5275b2f565a6bf6fb8408b884c459f5",class:"ri-arrow-down-s-line "+(this.isOpen?"rotate-180":""),"aria-hidden":"true"})),this.isOpen?t("section",{class:"onto-user-menu-dropdown",id:this.DROPDOWN_ID},t("a",{class:"onto-user-menu-item label-base-regular",href:"settings",onClick:this.openMySettings},t("translate-label",{labelKey:"user_menu.my_settings"})),this.authenticationService.isExternalUser()?"":t("button",{class:"onto-user-menu-item label-base-regular",onClick:this.logout},t("translate-label",{labelKey:"user_menu.logout"}))):""))}onKeyDown(e){var t;"Escape"===e.key&&this.isOpen&&(this.isOpen=!1,null===(t=this.toggleButton)||void 0===t||t.focus())}get hostElement(){return r(this)}};q.style=".onto-user-menu{position:relative;width:fit-content}.onto-user-menu .onto-user-menu-toggle{display:flex;flex-direction:row;line-height:var(--gw-base-line-height);text-align:center;user-select:none;padding:0.4em 1rem;cursor:pointer;white-space:nowrap;place-items:center;transition:all 0.15s ease-out;background-color:transparent;color:var(--gw-button-tertiary-color);border:1px solid var(--gw-button-tertiary-border-color)}.onto-user-menu .onto-user-menu-toggle .ri-user-line,.onto-user-menu .onto-user-menu-toggle .ri-arrow-down-s-line{color:var(--gw-button-tertiary-icon-color)}.onto-user-menu .onto-user-menu-toggle:hover{background-color:var(--gw-button-tertiary-hover-background);color:var(--gw-button-tertiary-hover-color);border:1px solid var(--gw-button-tertiary-hover-border-color)}.onto-user-menu .onto-user-menu-toggle:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle:focus-visible{outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-tertiary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.onto-user-menu .onto-user-menu-toggle:focus:not(:focus-visible){outline:none}.onto-user-menu .onto-user-menu-toggle.open{color:var(--gw-button-primary-color);background-color:var(--gw-button-primary-background)}.onto-user-menu .onto-user-menu-toggle.open .ri-user-line,.onto-user-menu .onto-user-menu-toggle.open .ri-arrow-down-s-line{color:var(--gw-button-primary-color)}.onto-user-menu .onto-user-menu-toggle.open: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-user-menu .onto-user-menu-toggle.open:hover .ri-user-line{transform:scale(1.2)}.onto-user-menu .onto-user-menu-toggle .username{padding:0 5px}.onto-user-menu .onto-user-menu-toggle i{transition:0.15s ease-out}.onto-user-menu .onto-user-menu-toggle i.ri-arrow-down-s-line{font-size:1.1em;transition:all 0.2s ease-in}.onto-user-menu .onto-user-menu-dropdown{position:absolute;z-index:1000;display:flex;flex-direction:column;cursor:pointer;text-decoration:none;right:0;min-width:7rem;line-height:var(--gw-base-line-height);width:100%;color:var(--gw-tieredmenu-color);background-color:var(--gw-tieredmenu-background);border:1px solid var(--gw-tieredmenu-border-color);box-shadow:var(--gw-tieredmenu-shadow-1-offset-x) var(--gw-tieredmenu-shadow-1-offset-y) var(--gw-tieredmenu-shadow-1-blur) var(--gw-tieredmenu-shadow-1-spread) var(--gw-tieredmenu-shadow-1-color)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item{padding:0.4rem 1rem;user-select:none;white-space:nowrap;font:inherit;font-weight:var(--gw-label-base-regular-font-weight);text-align:start;text-decoration:none;color:inherit;background:none;border:none;cursor:pointer}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:hover{color:var(--gw-tieredmenu-item-focus-color);background-color:var(--gw-tieredmenu-item-focus-background)}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.onto-user-menu .onto-user-menu-dropdown .onto-user-menu-item:focus:not(:focus-visible){outline:none}";export{O as onto_language_selector,V as onto_license_alert,P as onto_operations_notification,U as onto_rdf_search,X as onto_repository_selector,Y as onto_search_icon,Q as onto_search_resource_input,Z as onto_user_login,q as onto_user_menu};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,a as e,d as o}from"./p-BntG-4Sv.js";import{d as a}from"./p-D1ZpXQQS.js";import{service as s,AuthenticationService as n,AuthorizationService as r,NavigationContextService as d,AuthenticationStorageService as h,RuntimeConfigurationContextService as l,EventService as c,StorageKey as u,SubscriptionList as b,LocalStorageSubscriptionHandlerService as f,WindowService as v,navigate as g,isLoginPage as p,navigateToLoginPage as m,SecurityContextService as w,EventName as y,MainMenuExtensionPoint as k,isSamePage as x}from"@ontotext/workbench-api";import{i as T,T as C}from"./p-DSYXTTde.js";import"./p-BIkLC5Zf.js";const $="main-content",N=class{constructor(e){t(this,e),this.authenticationService=s(n),this.authorizationService=s(r),this.navigationContextService=s(d),this.authStorageService=s(h),this.runtimeConfigurationContextService=s(l),this.eventService=s(c),this.fullJwtKey=`${u.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${u.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.authenticatedKey}`,this.authEvents=[this.fullJwtKey,this.fullAuthenticatedKey],this.isLowResolution=!1,this.showHeader=this.isAuthenticatedFully(),this.showNavbar=!1,this.isEmbedded=!1,this.loading=!0,this.subscriptions=new b,this.isNavbarCollapsed=!1,this.shouldFocusMainContentAfterLoading=!1,this.isPageChanging=!1,this.onSkipLinkClick=e=>{e.preventDefault(),this.focusMainContent()},this.handleStorageChange=e=>{s(f).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=a(()=>this.windowResizeHandler(),50),v.getWindow().addEventListener("storage",this.handleStorageChange)}componentWillLoad(){this.keepMainContentInPlace()}componentDidRender(){this.windowResizeHandler(),this.shouldFocusMainContentAfterLoading&&!this.loading&&(this.shouldFocusMainContentAfterLoading=!1,(T()||this.isFocusInNavbar())&&this.focusMainContent())}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToNavigationStart(),this.subscribeToBeforeMountRouting()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return i(e,{key:"bdb13f92f36588bd7ea67feceb2df255014da255",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},!this.isEmbedded&&this.showNavbar&&i("a",{key:"c76719cf5fb4dfc65ce5eb92e9aa75b7bca2068a",class:"skip-link",href:`#${$}`,onClick:this.onSkipLinkClick},i("translate-label",{key:"dd3dfd8c3a82007cee2cf4ff03bd923b49f0225e",labelKey:"layout.skip_to_main_content"})),i("div",{key:"f4a90630a2f762e7b03f8fbeecd991d3990b32b0",class:"default-slot-wrapper"},i("slot",{key:"fe7ca0c8794a81b85f66d015fa9c5fdf1c67d27a",name:"default"})),!this.isEmbedded&&i("div",{key:"d1d579d28668c3dffc0c187a28ebbf40f857a824",class:"wb-header"},i("header",{key:"0700d1fa731b502aed810bd63a4ae1e505299d99"},this.showHeader&&i("onto-header",{key:"9d50ab554081aa0ce30454c1749c78be81997174"}))),!this.isEmbedded&&this.showNavbar&&i("nav",{key:"b8c745300cdf78facb1c984dcd023789e2b19c15",class:"wb-navbar"},i("onto-navbar",{key:"2c872289f14768b2159306e3a943e88fe7e48ecd",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),i("slot",{key:"5b3efc9ccb0ed9d4cb5825b10592f3df3c3803d3",name:"main"},i("onto-loader",{key:"0a38c1de408e1c8065be08592d3c370a5c2ea6f8",loading:this.loading,targetSelector:"main",size:96,messageText:C.translate("common.loading")})),!this.isEmbedded&&i("footer",{key:"e3fa8d17cab67ed926e354d8f85387fa83a769ff",class:"wb-footer"},i("onto-footer",{key:"c379534622f1c3efa665c5fb298cf203f72710d4"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}handleDocumentKeydown(e){if("Tab"===e.key&&e.shiftKey){const t=document.querySelector('[data-backward-focus-target="true"]');t&&(e.preventDefault(),this.focusBackwardTargetInNav(t))}}handleGlobalFocus(e){const t=document.querySelector('[data-backward-focus-target="true"]');t&&e.target.getAttribute("id")!==$&&delete t.dataset.backwardFocusTarget}focusMainContent(){var e;null===(e=document.getElementById($))||void 0===e||e.focus()}windowResizeHandler(){var e,t,i,a,n;this.isLowResolution=v.getWindow().innerWidth<=768;const o=document.querySelector(".navbar-component"),s=null!==(i=null===(t=null===(e=document.querySelector(".wb-header"))||void 0===e?void 0:e.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==i?i:0;if(document.documentElement.style.setProperty("--wb-header-height",`${s}px`),o){const e=document.querySelector(".cookie-consent-banner"),t=null!==(n=null===(a=null==e?void 0:e.getBoundingClientRect())||void 0===a?void 0:a.height)&&void 0!==n?n:0;o.style.height=`calc(100% - ${s}px - ${t}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var t;e&&this.authEvents.includes(e)&&(this.authStorageService.isAuthenticated()?g(null!==(t=this.navigationContextService.getPreviousRoute())&&void 0!==t?t:"./"):p()||m(),v.getWindow().location.reload())}focusBackwardTargetInNav(e){var t,i;if(null==e?void 0:e.classList.contains("sub-menu-link")){const a=null===(i=null===(t=e.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.previousElementSibling;"false"===(null==a?void 0:a.getAttribute("aria-expanded"))&&a.click()}setTimeout(()=>{e.focus(),delete e.dataset.backwardFocusTarget},10)}keepMainContentInPlace(){const e=this.hostElement,t=e.insertBefore.bind(e);e.insertBefore=(i,a)=>i.parentNode===e&&"MAIN"===i.nodeName&&a===e.firstChild?i:t(i,a)}subscribeToSecurityChanges(){const e=s(w);this.subscriptions.add(e.onAuthenticatedUserChanged(e=>{this.authenticatedUser=e,this.updateVisibility()})),this.subscriptions.add(e.onSecurityConfigChanged(e=>{this.securityConfig=e,this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(y.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(y.LOGGED_OUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),m()}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var t;this.isEmbedded=null!==(t=null==e?void 0:e.isEmbedded)&&void 0!==t&&t}))}updateVisibility(){this.authenticationService.isSecurityEnabled()?(this.showHeader=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess(),this.showNavbar=this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()):(this.showNavbar=!0,this.showHeader=!0)}isAuthenticatedFully(){return!this.authenticationService.isSecurityEnabled()||this.authenticationService.isAuthenticated()||this.authorizationService.hasFreeAccess()}shouldShowMenu(e){return this.isAuthenticatedFully()&&this.authorizationService.hasRole(e)}assignNavbarRef(){return e=>{this.navbarRef=e,this.navbarRef&&(this.navbarRef.menuItems=v.getPluginRegistry().get(k.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,t,i;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const a=e=>{var t;e.shouldShow=this.shouldShowMenu(e.role),(null===(t=e.children)||void 0===t?void 0:t.length)&&e.children.forEach(a)};null===(i=null===(t=this.navbarRef)||void 0===t?void 0:t.menuItems)||void 0===i||i.forEach(e=>{e.items.forEach(a)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(y.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),this.focusMainContentOnPageChange(e),setTimeout(()=>{this.loading=!1})}))}focusMainContentOnPageChange({oldUrl:e,newUrl:t}){!e||x(e,t)||!this.isFocusInNavbar()&&!this.isFocusLostOrInMainContent()||this.isFocusInNavbar()&&this.isPointerNavigation()||(this.loading?this.shouldFocusMainContentAfterLoading=!0:this.focusMainContent())}isFocusLostOrInMainContent(){var e;return T()||!!(null===(e=document.getElementById($))||void 0===e?void 0:e.contains(document.activeElement))}isFocusInNavbar(){var e;return!!(null===(e=document.getElementById("navbar"))||void 0===e?void 0:e.contains(document.activeElement))}isPointerNavigation(){var e,t;const i=null===(e=document.activeElement)||void 0===e?void 0:e.dataset.pointerType;return null===(t=document.activeElement)||void 0===t||delete t.dataset.pointerType,"mouse"===i||"touch"===i||"pen"===i}subscribeToNavigationStart(){this.subscriptions.add(this.eventService.subscribe(y.NAVIGATION_START,({oldUrl:e,newUrl:t})=>{this.isPageChanging=!e||!t||!x(e,t);const i=document.querySelector('[data-backward-focus-target="true"]');this.isPageChanging&&"page"===(null==i?void 0:i.dataset.ariaCurrent)&&delete i.dataset.backwardFocusTarget}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.eventService.subscribe(y.BEFORE_MOUNT_ROUTING_EVENT,()=>{this.isPageChanging&&(this.loading=!0)}))}get hostElement(){return o(this)}};N.style=':host{display:block;height:100%}.wb-layout{display:grid;grid-template:"header header" auto "nav main" 1fr "nav footer" auto/15rem minmax(200px, 1fr);min-height:100vh;margin:0;}.wb-layout.expanded{grid-template-columns:4.375rem 1fr}.wb-layout.is-embedded{grid-template-columns:1fr;grid-template-areas:"main";padding-top:1rem}.wb-layout.hide-navbar{grid-template:"header" auto "main" 1fr "footer" auto/1fr;}.wb-layout.hide-navbar.expanded{grid-template-columns:1fr}.wb-layout main .main-container{margin-left:0}.wb-layout main{grid-area:main}.wb-layout main:focus{outline:none}.wb-layout.loading main{position:relative;visibility:hidden}.wb-layout .default-slot-wrapper{display:none}.wb-layout .wb-header{grid-area:header;position:sticky;top:0;z-index:999}.wb-layout nav{grid-area:nav}.wb-layout footer{grid-area:footer}.wb-layout .skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.wb-layout .skip-link:focus{position:fixed;top:0.5rem;left:0.5rem;z-index:1000;display:inline-flex;align-items:center;gap:var(--gw-button-gap);padding:var(--gw-button-padding-y) var(--gw-button-padding-x);border:1px solid var(--gw-button-secondary-border-color);border-radius:var(--gw-button-border-radius);background:var(--gw-background-elevated);color:var(--gw-button-secondary-color);font-family:var(--gw-button-label-typography-font-family);font-size:var(--gw-button-label-typography-font-size);font-weight:var(--gw-button-label-typography-font-weight);line-height:var(--gw-button-label-typography-line-height);text-decoration:none;white-space:nowrap;outline:var(--gw-button-focus-ring-width) var(--gw-button-focus-ring-style) var(--gw-button-secondary-focus-ring-color);outline-offset:var(--gw-button-focus-ring-offset)}.wb-layout .skip-link:focus:hover{border-color:var(--gw-button-secondary-hover-border-color);color:var(--gw-button-secondary-hover-color)}.wb-layout .skip-link:focus:active{border-color:var(--gw-button-secondary-active-border-color);color:var(--gw-button-secondary-active-color)}';export{N as onto_layout};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./p-BntG-4Sv.js";import{EventEmitter as t,ServiceProvider as n,ConfigurationContextService as o,LicenseContextService as a,ProductInfoContextService as i,RepositoryService as s,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,ConfirmCancelPayload as _,CONFIRM_CANCEL_EVENT as b,ToastMessage as f,CREATE_TOAST_EVENT as y,service as v,OntoToastrService as k,notify as x,AutocompleteContextService as C,NamespacesContextService as R,NamespaceMap as A,AuthorizationService as G,AuthStrategyResolver as w,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",cancel:"Cancel"},loading:"Loading...",label:{opens_in_new_window:"(opens in a new window)"}},layout:{skip_to_main_content:"Skip to main content"},"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","menu.graph-navigator.label":"Graph navigator","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 · English",tooltip:{selected:"Current language",not_selected:"Change language to English"}},fr:{label:"fr · 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"},deprecated:"Deprecated"},"repository-info":{location:"Location",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"System",ontop:"Ontop",fedx:"FedX",unknown:"Unknown"},permissions_label:"Permissions",permissions:{none:"None",read:"Read",write:"Read/Write",maintain:"Read/Write/Maintain",graphql_read:"Read (GraphQL only)",graphql_write:"Read/Write (GraphQL only)"},"repository-size":{total:"Total statements",explicit:"Explicit",inferred:"Inferred",expansion_ratio:"Expansion ratio (total/explicit)",repository_inactive:"Activate the repository to view statement information","repository-info-not-available":"Size info not available."},fedx_deprecated:"FedX repositories are deprecated: Will be removed in GraphDB 13. Migrate to SPARQL 1.1 federation.",fedx_learn_more:"Learn more"},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:{toggle_label:"Running operations",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:"VizGraph",graph_navigator:"Graph navigator"},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"}},guides:{"confirm-cancel-modal":{title:"Exit the guide?",subtitle:"Are you sure you want to exit the guide?<br><br>You can start it anytime from <b>Help > Interactive Guides</b>","exit-button":"Exit","dont-show-again":"Don't start automatically"}},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"}},graph_explore_split_button:{buttons:{explore_visual_graph:{tooltip:"Visualize using the default VizGraph configuration"},explore_visual_graph_dropdown:{tooltip:"Select config",hint:"Hint: {{hint}}"}},messages:{missing_graph_configuration:"No advanced graph configuration.",create_graph_configuration:"Create one",create_graph_configuration_link:"here"}}},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",cancel:"Annuler"},loading:"Chargement...",label:{opens_in_new_window:"(s’ouvre dans une nouvelle fenêtre)"}},layout:{skip_to_main_content:"Aller au contenu principal"},"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","menu.graph-navigator.label":"Navigateur de graphe","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 · Anglais",tooltip:{selected:"Langue actuelle",not_selected:"Changer la langue en Anglais"}},fr:{label:"fr · 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"},deprecated:"Obsolète"},"repository-info":{location:"L'emplacement",local:"Local",type:"Type",types:{graphdb:"Graphdb",system:"Système",ontop:"Ontop",fedx:"FedX",unknown:"Inconnu"},permissions_label:"Permissions",permissions:{none:"Aucune",read:"Lecture",write:"Lecture/Écriture",maintain:"Lecture/Écriture/Maintenance",graphql_read:"Lecture (GraphQL uniquement)",graphql_write:"Lecture/Écriture (GraphQL uniquement)"},"repository-size":{total:"Total des déclarations",explicit:"Explicite",inferred:"Déduit",expansion_ratio:"Taux d'expansion (total/explicite)",repository_inactive:"Activez le dépôt pour consulter les informations du relevé.","repository-info-not-available":"Info de taille non disponible."},fedx_deprecated:"Les dépôts FedX sont obsolètes : ils seront supprimés dans GraphDB 13. Migrez vers la fédération SPARQL 1.1.",fedx_learn_more:"En savoir plus"},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:{toggle_label:"Opérations en cours",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:"VizGraph",graph_navigator:"Navigateur de graphe"},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"}},guides:{"confirm-cancel-modal":{title:"Quitter le guide?",subtitle:"Êtes-vous sûr de vouloir quitter le guide ?<br><br>Vous pouvez le lancer à tout moment à partir de <b>Aide > Guides interactifs</b>.","exit-button":"Sortie","dont-show-again":"Ne pas démarrer automatiquement"}},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"}},graph_explore_split_button:{buttons:{explore_visual_graph:{tooltip:"Visualiser avec la configuration VizGraph par défaut"},explore_visual_graph_dropdown:{tooltip:"Sélectionner la configuration",hint:"Indice : {{hint}}"}},messages:{missing_graph_configuration:"Aucune configuration avancée du graphe.",create_graph_configuration:"En créer une",create_graph_configuration_link:"ici"}}};const P=class{constructor(n){e(this,n),this.bundles={en:E,fr:I},this.eventEmitter=new t,this.onLanguageChanged(),this.setSecurityConfig({enabled:!1,freeAccess:{enabled:!1}})}initConfigurationContext(e){return n.get(o).updateApplicationConfiguration(e),Promise.resolve()}updateLicense(e){return n.get(a).updateGraphdbLicense(e),Promise.resolve()}updateProductInfo(e){return n.get(i).updateProductInfo(e),Promise.resolve()}loadRepositories(){return n.get(s).getRepositories().then(e=>{n.get(r).updateRepositoryList(e)}),Promise.resolve()}setAuthenticatedUser(e){const t=e?l(e):void 0;return n.get(u).updateAuthenticatedUser(t),n.get(c).setAuthToken("token"),Promise.resolve()}setSecurityConfig(e){const t=this.createSecurityConfig(e);return n.get(u).updateSecurityConfig(t),this.setAuthStrategy(t),Promise.resolve()}login(e,t){return n.get(p).login({username:e,password:t})}changeLanguage(e){return n.get(d).updateLanguageBundle(this.bundles[e]),Promise.resolve()}emitNavigateEndEvent(e,t){return n.get(m).emit(new g(e,t)),Promise.resolve()}updateSelectedRepository(e){return n.get(r).updateSelectedRepository(e),Promise.resolve()}updateIsLoadingActiveRepositoryLocation(e){return n.get(h).updateIsLoading(e),Promise.resolve()}openConfirmCancel(e){return this.eventEmitter.emit({NAME:b,payload:new _(e,e=>{console.info("Dialog closed with action:",e)})}),Promise.resolve()}addToastr(e){return this.eventEmitter.emit({NAME:y,payload:new f(e.type,e.message)}),Promise.resolve()}addNotification(e){return v(k),x(e),Promise.resolve()}setAutocomplete(e){return n.get(C).updateAutocompleteEnabled(e),Promise.resolve()}updateNamespaces(e){return n.get(R).updateNamespaces(new A(e)),Promise.resolve()}onLanguageChanged(){n.get(d).onSelectedLanguageChanged(e=>{e&&this.changeLanguage(e)})}setAuthStrategy(e){const t=n.get(c),o=n.get(u),a=n.get(G);t.clearAuthToken(),v(w).resolveStrategy(e).initialize().then(t=>{o.updateIsLoggedIn(t),t||(a.hasFreeAccess()?a.initializeFreeAccess():e.hasOverrideAuth()&&a.initializeOverrideAuth())})}createSecurityConfig(e){const t=Object.assign({enabled:!0,userLoggedIn:!1,passwordLoginEnabled:!1,openIdEnabled:!1,freeAccess:{},overrideAuth:{}},e);return new S(t)}};export{P as onto_test_context};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as i,a as e}from"./p-BntG-4Sv.js";import{service as t,LanguageContextService as r,LanguageService as s,SubscriptionList as n,ProductInfoContextService as a,RepositoryType as l,RepositoryState as p,UriUtil as f}from"@ontotext/workbench-api";import{L as c}from"./p-BIkLC5Zf.js";const d=class{constructor(e){o(this,e),this.languageContextService=t(r),this.languageService=t(s),this.subscriptions=new n,this.productInfoContextService=t(a),this.fedxMigrationDocumentationUrl=this.resolveFedxMigrationDocumentationUrl(),this.loading=!1}connectedCallback(){this.setupFormatters(),this.subscriptions.add(this.languageContextService.onSelectedLanguageChanged(e=>{this.setupFormatters(e)}))}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){const o=this.parseProperty(this.repository,"repository");return o?i(e,null,i("div",{class:"repository-info-title","data-test":"repository-info-title"},this.renderHeading(o)),o.title&&i("div",{class:"repository-info-description","data-test":"repository-info-description"},o.title),i("div",{class:"repository-info-content"},this.renderRow("location","location",o.location?o.location:this.renderLabel("local")),this.renderRow("type","type",this.renderLabel(`types.${o.type||"unknown"}`)),this.renderRow("permissions","permissions_label",this.renderPermission()),this.renderStatements(o),o.type===l.FEDX&&this.renderFedxDeprecationMessage())):i(e,null)}renderPermission(){return this.permission?this.renderLabel(`permissions.${this.permission.toLowerCase()}`):"-"}renderHeading(e){let o,t="inactive";return e.state===p.RUNNING?(o="ri-checkbox-blank-circle-fill",t=""):o=e.state===p.INACTIVE?"ri-stop-large-fill":"ri-loop-left-fill",i("h6",{class:`title ${t}`},i("i",{class:o}),i("span",null,e.id))}renderStatements(e){return e.state!==p.RUNNING?this.renderInactiveRepositoryMessage():this.loading?i("div",{class:"repository-info-row repository-size-loading","data-test":"repository-info-loading"},i("onto-loader",{loading:!0,size:25})):this.renderSizeInfo(this.parseProperty(this.sizeInfo,"sizeInfo"))}renderSizeInfo(e){return!e||e.total<0?i("div",{"data-test":"repository-info-not-available"},this.renderLabel("repository-size.repository-info-not-available")):[this.renderRow("total","repository-size.total",this.totalStatementsFormatter.format(e.total)),e.explicit>=0&&this.renderRow("explicit","repository-size.explicit",this.totalStatementsFormatter.format(e.explicit)),e.inferred>=0&&this.renderRow("inferred","repository-size.inferred",this.totalStatementsFormatter.format(e.inferred)),e.explicit>=0&&this.renderRow("expansion-ratio","repository-size.expansion_ratio",this.formatExpansionRatio(e))]}renderInactiveRepositoryMessage(){return i("div",{class:"repository-info-row inactive-repo-message","data-test":"repository-info-inactive"},i("div",{class:"icon"},i("i",{class:"ri-information-2-line"})),i("div",{class:"message"},i("p",null,this.renderLabel("repository-size.repository_inactive"))))}renderFedxDeprecationMessage(){return i("div",{class:"repository-info-row deprecation-message","data-test":"repository-info-deprecation"},i("div",{class:"icon"},i("i",{class:"ri-alert-line"})),i("div",{class:"message"},i("p",null,this.renderLabel("fedx_deprecated")," ",i("a",{href:this.fedxMigrationDocumentationUrl,target:"_blank",rel:"noopener noreferrer","data-test":"repository-info-fedx-migration-link"},this.renderLabel("fedx_learn_more")))))}renderRow(e,o,t){return i("div",{class:`repository-info-row ${e}`,"data-test":`repository-info-${e}`},i("div",{class:"label"},this.renderLabel(o),":"),i("div",{class:"value"},t))}renderLabel(e){const o=`repository-info.${e}`;return i("translate-label",{key:o,labelKey:o})}formatExpansionRatio(e){return e.explicit>0?this.expansionRatioFormatter.format(e.total/e.explicit):"-"}setupFormatters(e){const o=e||this.languageService.getDefaultLanguage();this.totalStatementsFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}),this.expansionRatioFormatter=new Intl.NumberFormat(o,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2})}resolveFedxMigrationDocumentationUrl(){var e;return f.resolveDocumentationUrl(null===(e=this.productInfoContextService.getProductInfo())||void 0===e?void 0:e.shortVersion,"sparql-federation.html")}parseProperty(e,o){try{return function(e){return"string"!=typeof e?null!=e?e:void 0:e?JSON.parse(e):void 0}(e)}catch(i){return void c.logger.error(`The "${o}" property of onto-repository-info is not a valid JSON: "${e}"`,i)}}};d.style="onto-repository-info{display:block;padding:0.5rem 0}onto-repository-info .repository-info-title{font-size:1rem;margin-bottom:0.375em}onto-repository-info .repository-info-title .title{display:flex;align-items:baseline;font-weight:600;color:var(--gw-foreground-on-surface-default)}onto-repository-info .repository-info-title .title.inactive{color:var(--gw-foreground-on-surface-subtle)}onto-repository-info .repository-info-title .title span{overflow-wrap:anywhere}onto-repository-info .repository-info-title .title i{flex-shrink:0;font-size:inherit;margin-right:0.8em}onto-repository-info .repository-info-title .title i::before{font-size:0.9em}onto-repository-info .repository-info-title .title .ri-stop-large-fill{color:var(--gw-foreground-on-surface-disabled)}onto-repository-info .repository-info-title .title .ri-checkbox-blank-circle-fill{color:var(--gw-success-base)}onto-repository-info .repository-info-description{margin-bottom:0.375em;font-size:0.8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}onto-repository-info .repository-info-content{border-top:1px solid var(--gw-dialog-border-color);padding-top:0.5em;display:flex;flex-direction:column;gap:0.2em;font-weight:400;font-size:0.875rem}onto-repository-info .repository-info-row{display:flex;justify-content:space-between}onto-repository-info .repository-info-row.total{margin-top:1.2em}onto-repository-info .repository-info-row .value{margin-left:0.6em;font-weight:500}onto-repository-info .repository-info-row.repository-size-loading{justify-content:center;align-items:center}onto-repository-info .repository-info-row.inactive-repo-message,onto-repository-info .repository-info-row.deprecation-message{font-size:1.15em;background-color:var(--gw-message-help-background);color:var(--gw-message-help-color);justify-content:flex-start;margin-top:0.75rem;padding:0.25rem 0.5rem;gap:0.57em;border:1px solid var(--gw-message-help-border-color)}onto-repository-info .repository-info-row.inactive-repo-message p,onto-repository-info .repository-info-row.deprecation-message p{margin:0}onto-repository-info .repository-info-row.deprecation-message{background-color:var(--gw-message-warning-background);color:var(--gw-message-warning-color);border-color:var(--gw-message-warning-border-color)}";export{d as onto_repository_info};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,H as e,g as t,b as n}from"./p-BntG-4Sv.js";export{s as setNonce}from"./p-BntG-4Sv.js";var i=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}};(()=>{i(e.prototype);const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),o(n)})().then(async o=>(await t(),n([["p-
|
|
1
|
+
import{p as o,H as e,g as t,b as n}from"./p-BntG-4Sv.js";export{s as setNonce}from"./p-BntG-4Sv.js";var i=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}};(()=>{i(e.prototype);const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),o(n)})().then(async o=>(await t(),n([["p-6bb1e333",[[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"],[4,"keydown","handleDocumentKeydown"],[4,"focusin","handleGlobalFocus"]]]]],["p-c93c1bb7",[[0,"onto-confirm-cancel-dialog",{isOpen:[32],hasDontShowAgain:[32]},[[16,"confirm-cancel-event","onConfirmCancelEvent"]]]]],["p-c0b9a2c2",[[0,"onto-graph-explore-split-button",{label:[1],disabled:[4],fetchGraphConfigs:[16,"fetch-graph-configs"],items:[32],isDropdownOpen:[32]}]]],["p-e07c6668",[[0,"onto-repository-info",{repository:[1],permission:[1],loading:[4],sizeInfo:[1,"size-info"],totalStatementsFormatter:[32],expansionRatioFormatter:[32]}]]],["p-d4714c4f",[[0,"onto-permission-banner"]]],["p-19776e6a",[[4,"onto-deprecation-banner"]]],["p-b3e34efa",[[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],openConfirmCancel:[64],addToastr:[64],addNotification:[64],setAutocomplete:[64],updateNamespaces:[64]}]]],["p-608ac862",[[0,"onto-toastr",{toasts:[32]},[[16,"create-toast-event","handleToastCreate"]]]]],["p-8c2936e4",[[0,"onto-tooltip",null,[[5,"mouseover","onMouseover"],[5,"mouseout","onMouseout"]]]]],["p-cb199b80",[[1,"onto-loader",{size:[2],loading:[4],messageText:[1,"message-text"],targetSelector:[1,"target-selector"]}]]],["p-2afd3908",[[0,"translate-label",{labelKey:[1,"label-key"],translationParameters:[16,"translation-parameters"],translatedLabel:[32]}]]],["p-9d360a3a",[[0,"onto-toggle-switch",{checked:[1028],labelKey:[1,"label-key"],tooltipTranslationKey:[1,"tooltip-translation-key"],context:[1],tooltipLabel:[32]}],[4,"onto-dialog",{config:[16]}]]],["p-af742bb0",[[0,"onto-cookie-consent",{showModal:[32]},[[0,"closeDialog","onDialogClose"]]],[0,"onto-cookie-policy-dialog",null,[[0,"toggleChanged","toggleChangeHandler"]]]]],["p-96d4fef6",[[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"],iconImage:[1,"icon-image"],items:[16],tooltipTheme:[1,"tooltip-theme"],itemTooltipTheme:[1,"item-tooltip-theme"],tooltipClass:[1,"tooltip-class"],tooltipPlacement:[1,"tooltip-placement"],dropdownAlignment:[1,"dropdown-alignment"],autoClose:[4,"auto-close"],disabled:[4],open:[32],buttonTooltipContent:[32],refreshButtonTooltip:[64]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]],{dropdownButtonTooltip:["onTooltipSourceChanged"],items:["onTooltipSourceChanged"]}]]],["p-3201c16d",[[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,"keydown","onKeyDown"]]],[0,"onto-repository-selector",{currentRepository:[16,"current-repository"],items:[16],repositorySizeInfoFetcher:[16,"repository-size-info-fetcher"],getRepositoryPermission:[16,"get-repository-permission"],defaultToggleButtonName:[32],noRepositoriesButtonMessage:[32],dropdownItems:[32]},null,{items:["onItemsChanged"]}],[0,"onto-user-login"],[0,"onto-user-menu",{user:[16],securityConfig:[16,"security-config"],isOpen:[32]},[[0,"keydown","onKeyDown"]]],[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-0b5b6ae2",[[0,"onto-header",{activeOperations:[32],license:[32],isFreeAccessEnabled:[32],shouldShowSearch:[32],isHomePage:[32],repositoryList:[32],repositoryItems:[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]},[[0,"keydown","onKeyDown"],[0,"focusout","onFocusOut"]],{navbarCollapsed:["navbarCollapsedChange"],menuItems:["menuItemsChanged"]}]]]],o)));
|
|
@@ -55,11 +55,21 @@ export declare class OntoLayout {
|
|
|
55
55
|
* window is resized.
|
|
56
56
|
*/
|
|
57
57
|
onResize(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Event listener for document keydown events. Handles backward focus targeting when Shift + Tab is pressed.
|
|
60
|
+
* @param event
|
|
61
|
+
*/
|
|
62
|
+
handleDocumentKeydown(event: KeyboardEvent): void;
|
|
63
|
+
/**
|
|
64
|
+
* Event listener for global focusin events. Handles cleanup of the backward focus target dataset attribute.
|
|
65
|
+
*/
|
|
66
|
+
handleGlobalFocus(event: FocusEvent): void;
|
|
58
67
|
private readonly onSkipLinkClick;
|
|
59
68
|
private focusMainContent;
|
|
60
69
|
private windowResizeHandler;
|
|
61
70
|
private readonly handleStorageChange;
|
|
62
71
|
private handleAuthChange;
|
|
72
|
+
private focusBackwardTargetInNav;
|
|
63
73
|
/**
|
|
64
74
|
* The host application may re-insert its `<main>` container as the first child of the layout (e.g. on routing),
|
|
65
75
|
* which puts the main content before the header and the navigation in the Tab order. The layout ignores that move,
|
|
@@ -82,6 +92,8 @@ export declare class OntoLayout {
|
|
|
82
92
|
*/
|
|
83
93
|
private focusMainContentOnPageChange;
|
|
84
94
|
private isFocusLostOrInMainContent;
|
|
95
|
+
private isFocusInNavbar;
|
|
96
|
+
private isPointerNavigation;
|
|
85
97
|
private subscribeToNavigationStart;
|
|
86
98
|
private subscribeToBeforeMountRouting;
|
|
87
99
|
}
|
|
@@ -8,6 +8,8 @@ export declare class OntoNavbar {
|
|
|
8
8
|
private readonly resizeHandler;
|
|
9
9
|
private readonly SUBMENU_VERTICAL_MARGIN;
|
|
10
10
|
private readonly MIN_SUBMENU_HEIGHT;
|
|
11
|
+
private readonly ARIA_CURRENT_PAGE;
|
|
12
|
+
private readonly POINTER_TYPE_KEYBOARD;
|
|
11
13
|
private labels;
|
|
12
14
|
private productInfo;
|
|
13
15
|
/**
|
|
@@ -100,4 +102,5 @@ export declare class OntoNavbar {
|
|
|
100
102
|
render(): any;
|
|
101
103
|
private subscribeToProductInfoChanges;
|
|
102
104
|
private subscribeToRepositoryChange;
|
|
105
|
+
private setAttributes;
|
|
103
106
|
}
|
package/dist/shared-components/types/components/onto-repository-info/onto-repository-info.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export declare class OntoRepositoryInfo {
|
|
|
20
20
|
private readonly languageContextService;
|
|
21
21
|
private readonly languageService;
|
|
22
22
|
private readonly subscriptions;
|
|
23
|
+
private readonly productInfoContextService;
|
|
24
|
+
private readonly fedxMigrationDocumentationUrl;
|
|
23
25
|
/**
|
|
24
26
|
* Formatter for the statement counts. It is recreated when the language changes.
|
|
25
27
|
*/
|
|
@@ -56,6 +58,7 @@ export declare class OntoRepositoryInfo {
|
|
|
56
58
|
private renderStatements;
|
|
57
59
|
private renderSizeInfo;
|
|
58
60
|
private renderInactiveRepositoryMessage;
|
|
61
|
+
private renderFedxDeprecationMessage;
|
|
59
62
|
/**
|
|
60
63
|
* Renders a row with a label and a value.
|
|
61
64
|
*
|
|
@@ -67,6 +70,7 @@ export declare class OntoRepositoryInfo {
|
|
|
67
70
|
private renderLabel;
|
|
68
71
|
private formatExpansionRatio;
|
|
69
72
|
private setupFormatters;
|
|
73
|
+
private resolveFedxMigrationDocumentationUrl;
|
|
70
74
|
/**
|
|
71
75
|
* Returns the value of a property that accepts an object or JSON text. A text that is not a valid JSON is
|
|
72
76
|
* logged and treated as a missing value.
|
|
@@ -7,7 +7,7 @@ interface SelectorItemProps {
|
|
|
7
7
|
*
|
|
8
8
|
* A StencilJS functional component that renders a repository item in the repository selector dropdown. It displays the repository's
|
|
9
9
|
* icon, ID, and location. If no location is specified, it shows "Local" as the default. This component also allows for
|
|
10
|
-
* dynamic rendering of repository details as part of a list of selectable items.
|
|
10
|
+
* dynamic rendering of repository details as part of a list of selectable items. A FedX repository is marked as deprecated.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* <SelectorItemButton repository={repository}></>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackJsonpworkbench=self.webpackJsonpworkbench||[]).push([[216],{5216(e,t,i){i.d(t,{J:()=>de});var o=i(5802),n=i(3702),s=i(7830),r=i(7705),c=i(6933),l=i(1020),p=i(5547);const a=["popover"];function h(e,t){if(1&e&&(p.j41(0,"div"),p.nrm(1,"p",5),p.k0s()),2&e){const e=p.XpG(2);p.R7$(),p.Y8G("innerHTML",e.helpInfo(),p.npT)}}function u(e,t){if(1&e&&(p.j41(0,"div")(1,"a",6),p.EFF(2),p.nI1(3,"transloco"),p.k0s(),p.nrm(4,"i",7),p.k0s()),2&e){const e=p.XpG(2);p.R7$(),p.Y8G("href",e.documentationLink(),p.B4B),p.R7$(),p.JRh(p.bMT(3,2,"components.page_info_tooltip.documentation_link"))}}function y(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",4),p.bIt("mouseenter",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.cancelHide())})("mouseleave",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.hide())})("focusin",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.cancelHide())})("focusout",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.hide())}),p.j41(1,"h4"),p.EFF(2),p.k0s(),p.nVh(3,h,2,1,"div"),p.nVh(4,u,5,4,"div"),p.k0s()}if(2&e){const e=p.XpG();p.R7$(2),p.JRh(e.title()),p.R7$(),p.vxM(e.helpInfo()?3:-1),p.R7$(),p.vxM(e.documentationLink()?4:-1)}}let d=(()=>{class e{constructor(){this.title=(0,r.hFB)(),this.helpInfo=(0,r.hFB)(),this.documentationLink=(0,r.hFB)(),this.popover=(0,r.ebz)("popover"),this.hideDelayMs=180,this.hideTimeout=null}show(e){this.cancelHide(),this.popover()?.show(e)}hide(){this.cancelHide(),this.hideTimeout=setTimeout(()=>{this.popover()?.hide()},this.hideDelayMs)}cancelHide(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}ngOnDestroy(){this.cancelHide()}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-page-info-tooltip"]],viewQuery:function(e,t){1&e&&p.wEZ(t.popover,a,5),2&e&&p.NyB()},inputs:{title:[1,"title"],helpInfo:[1,"helpInfo"],documentationLink:[1,"documentationLink"]},decls:5,vars:2,consts:[["popover",""],["content",""],["icon","ri-icon ri-information-2-line","styleClass","page-info-icon-button text-tertiary",1,"page-info-icon",3,"focus","mouseover","mouseleave","focusout","rounded","text"],["styleClass","page-info-tooltip"],[1,"help-info","body-sm-regular",3,"mouseenter","mouseleave","focusin","focusout"],[3,"innerHTML"],["target","_blank","rel","noopener",3,"href"],[1,"ri-external-link-line"]],template:function(e,t){1&e&&(p.j41(0,"p-button",2),p.bIt("focus",function(e){return t.show(e)})("mouseover",function(e){return t.show(e)})("mouseleave",function(){return t.hide()})("focusout",function(){return t.hide()}),p.k0s(),p.j41(1,"p-popover",3,0),p.DNE(3,y,5,3,"ng-template",null,1,p.C5r),p.k0s()),2&e&&p.Y8G("rounded",!0)("text",!0)},dependencies:[c.AM,l.$n,s.Kj],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] .page-info-icon[_ngcontent-%COMP%]{display:inline-flex} .page-info-icon-button .ri-icon{font-size:.6em} .page-info-tooltip{margin-top:0!important;max-width:400px} .page-info-tooltip:before, .page-info-tooltip:after{content:unset!important}"]})}}return e})();var g=i(2271),f=i(7154),v=i(467),m=i(9769),R=i(7914),_=i(1914),b=i(148),C=i(1208),P=i(7573),M=i(9417),O=i(2842);class w{constructor(){this.repositoryList=[],this.canManageRepositories=!1,this.filterQuery="",this.stateFilter=null,this.localOnly=!0,this.stateFilterOptions=[{label:"components.repository_picker_list.state_filter.all",value:null},{label:"components.repository_picker_list.state_filter.running",value:f.RepositoryState.RUNNING},{label:"components.repository_picker_list.state_filter.inactive",value:f.RepositoryState.INACTIVE}]}get filteredRepositoryList(){return this.repositoryList.filter(e=>this.matchesLocationFilter(e)).filter(e=>this.matchesSearchQuery(e)).filter(e=>this.matchesStateFilter(e)).sort((e,t)=>this.sortLocalRepositoriesFirst(e,t))}get repositoryCount(){const e=this.repositoryList.length;return this.hasFilteredOutRepositories?`${this.filteredRepositoryList.length}/${e}`:`${e}`}get hasFilteredOutRepositories(){return this.filteredRepositoryList.length!==this.repositoryList.length}matchesLocationFilter(e){return!this.localOnly||e.local}matchesSearchQuery(e){const t=this.filterQuery.trim().toLowerCase();return!t||e.id?.toLowerCase().includes(t)||e.title?.toLowerCase().includes(t)}matchesStateFilter(e){return null===this.stateFilter||e.state===this.stateFilter}sortLocalRepositoriesFirst(e,t){return e.local===t.local?e.id.localeCompare(t.id):e.local?-1:1}get showFilters(){return this.repositoryList.length>0}get canCreateRepository(){return this.canManageRepositories&&!!this.license?.valid}get showRepositoryList(){return this.repositoryList.length>0}}var k=i(8165),I=i(4176),S=i(2162);const x=["repositoryInfoPopover"],F=e=>({repositoryCount:e}),L=(e,t)=>({filteredCount:e,totalCount:t}),T=e=>["type-icon","icon-lg",e],j=(e,t)=>({repositoryId:e,location:t}),V=(e,t)=>["repository-state",e,t];function G(e,t){if(1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e){const e=p.XpG(),t=p.r8f(1);p.SpI(" ",p.i5U(1,1,"components.page_restrictions.repository_count_filtered_accessible",p.l_i(4,L,t.length,e.vm().repositoryList.length))," ")}}function A(e,t){if(1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e){const e=p.XpG();p.SpI(" ",p.i5U(1,1,"components.page_restrictions.repository_count_accessible",p.eq3(4,F,e.vm().repositoryList.length))," ")}}function B(e,t){if(1&e){const e=p.RV6();p.j41(0,"p-button",13),p.nI1(1,"transloco"),p.bIt("click",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.createRepository())}),p.k0s()}2&e&&p.Y8G("label",p.bMT(1,2,"components.repository_picker_list.create_repository_btn.label"))("icon","ri-add-circle-line")}function $(e,t){if(1&e){const e=p.RV6();p.SS7(0),p.nI1(1,"transloco"),p.j41(2,"p-iconfield",14)(3,"input",17),p.bIt("ngModelChange",function(t){o.eBV(e);const i=p.XpG(2);return o.Njj(i.onFilterQueryChange(t))}),p.k0s(),p.nrm(4,"p-inputicon",18),p.k0s()}if(2&e){const e=p.XpG(2),t=p.bMT(1,3,"components.repository_picker_list.filter_placeholder");p.R7$(3),p.Y8G("placeholder",t)("ngModel",e.vm().filterQuery),p.BMQ("aria-label",t)}}function N(e,t){1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e&&p.SpI(" ",p.bMT(1,1,t.$implicit.label)," ")}function E(e,t){1&e&&(p.EFF(0),p.nI1(1,"transloco")),2&e&&p.SpI(" ",p.bMT(1,1,t.$implicit.label)," ")}function X(e,t){if(1&e){const e=p.RV6();p.j41(0,"p-select",19),p.nI1(1,"transloco"),p.bIt("ngModelChange",function(t){o.eBV(e);const i=p.XpG(2);return o.Njj(i.onStateFilterChange(t))}),p.DNE(2,N,2,3,"ng-template",null,0,p.C5r)(4,E,2,3,"ng-template",null,1,p.C5r),p.k0s()}if(2&e){const e=p.XpG(2);p.Y8G("ariaLabel",p.bMT(1,3,"components.repository_picker_list.state_filter_aria_label"))("options",e.vm().stateFilterOptions)("ngModel",e.vm().stateFilter)}}function z(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",16)(1,"p-checkbox",20),p.bIt("ngModelChange",function(t){o.eBV(e);const i=p.XpG(2);return o.Njj(i.onLocalOnlyChange(t))}),p.k0s(),p.j41(2,"label",21),p.EFF(3),p.nI1(4,"transloco"),p.k0s()()}if(2&e){const e=p.XpG(2);p.R7$(),p.Y8G("binary",!0)("ngModel",e.vm().localOnly),p.R7$(2),p.JRh(p.bMT(4,3,"components.page_restrictions.repository_filter_local_only"))}}function q(e,t){if(1&e&&(p.j41(0,"span",12),p.nVh(1,$,5,5,"p-iconfield",14),p.nVh(2,X,6,5,"p-select",15),p.nVh(3,z,5,5,"div",16),p.k0s()),2&e){const e=p.XpG();p.R7$(),p.vxM(e.showNameFilter()?1:-1),p.R7$(),p.vxM(e.showStateFilter()?2:-1),p.R7$(),p.vxM(e.showLocalOnlyFilter()?3:-1)}}function H(e,t){1&e&&(p.nrm(0,"p-tag",34),p.nI1(1,"transloco")),2&e&&p.Y8G("value",p.bMT(1,1,"components.repository_picker_list.deprecated"))}function W(e,t){if(1&e&&(p.j41(0,"small",35),p.EFF(1),p.k0s()),2&e){p.XpG();const e=p.r8f(0);p.R7$(),p.SpI(" @ ",e," ")}}function Y(e,t){if(1&e){const e=p.RV6();p.SS7(0),p.nI1(1,"transloco"),p.j41(2,"tr",24)(3,"td",25),p.SS7(4),p.nI1(5,"transloco"),p.nrm(6,"em",26),p.j41(7,"span",27),p.EFF(8),p.k0s()(),p.j41(9,"td",28),p.SS7(10),p.nI1(11,"transloco"),p.j41(12,"button",29),p.nI1(13,"transloco"),p.bIt("mouseenter",function(t){const i=o.eBV(e).$implicit,n=p.XpG(2);return o.Njj(n.scheduleShowRepositoryInfo(i,t.currentTarget))})("focus",function(t){const i=o.eBV(e).$implicit,n=p.XpG(2);return o.Njj(n.scheduleShowRepositoryInfo(i,t.currentTarget))})("mouseleave",function(){o.eBV(e);const t=p.XpG(2);return o.Njj(t.scheduleHideRepositoryInfo())})("blur",function(){o.eBV(e);const t=p.XpG(2);return o.Njj(t.scheduleHideRepositoryInfo())})("click",function(){const t=o.eBV(e).$implicit,i=p.XpG(2);return o.Njj(i.selectRepository(t))}),p.j41(14,"span",30),p.nrm(15,"em",31),p.j41(16,"span",32),p.EFF(17),p.k0s(),p.j41(18,"span",33),p.EFF(19),p.k0s(),p.nVh(20,H,2,3,"p-tag",34),p.nVh(21,W,2,1,"small",35),p.k0s(),p.j41(22,"span",36),p.EFF(23),p.k0s()()()()}if(2&e){const e=t.$implicit,i=t.rowIndex,o=p.XpG(2),n=p.bH3(e.location||p.bMT(1,13,"components.repository_picker_list.location_local_label")),s=p.bMT(5,16,"components.repository_picker_list.repository_type."+e.type);p.R7$(6),p.Y8G("ngClass",p.eq3(23,T,"icon-repo-"+e.type))("pTooltip",s),p.R7$(2),p.JRh(s);const r=p.bMT(11,18,"components.repository_picker_list.state_filter."+e.stateLowercase),c="repository-picker-repository-state-"+i,l=e.state===o.RepositoryState.RUNNING,a=e.state===o.RepositoryState.INACTIVE,h=e.isFedx();p.R7$(4),p.BMQ("aria-label",p.i5U(13,20,"components.repository_picker_list.select_repository_aria_label",p.l_i(25,j,e.id,n)))("aria-describedby",c),p.R7$(3),p.Y8G("ngClass",p.l_i(28,V,l?"ri-circle-fill":"ri-circle-line",l||a?e.stateLowercase:"transitioning"))("pTooltip",r),p.R7$(),p.Y8G("id",c),p.R7$(),p.JRh(r),p.R7$(2),p.JRh(e.id),p.R7$(),p.vxM(h?20:-1),p.R7$(),p.vxM(o.vm().localOnly?-1:21),p.R7$(2),p.SpI(" ",e.title," ")}}function Q(e,t){if(1&e){const e=p.RV6();p.j41(0,"div",38),p.bIt("mouseenter",function(){o.eBV(e);const t=p.XpG(3);return o.Njj(t.clearRepositoryInfoTimeouts())})("mouseleave",function(){o.eBV(e);const t=p.XpG(3);return o.Njj(t.scheduleHideRepositoryInfo())}),p.nrm(1,"onto-repository-info",39),p.k0s()}if(2&e){p.XpG();const e=p.r8f(0);p.R7$(),p.Y8G("repository",e.repository)("permission",e.permission)("loading",e.loading)("sizeInfo",e.sizeInfo)}}function D(e,t){if(1&e&&(p.SS7(0),p.nVh(1,Q,2,4,"div",37)),2&e){const e=p.bH3(p.XpG(2).repositoryInfo());p.R7$(),p.vxM(e?1:-1)}}function J(e,t){if(1&e){const e=p.RV6();p.j41(0,"p-table",22),p.DNE(1,Y,24,31,"ng-template",null,2,p.C5r),p.k0s(),p.j41(3,"p-popover",23,3),p.bIt("onShow",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.observeInfoPopoverPosition())})("onHide",function(){o.eBV(e);const t=p.XpG();return o.Njj(t.stopObservingInfoPopoverPosition())}),p.DNE(5,D,2,2,"ng-template",null,4,p.C5r),p.k0s()}if(2&e){p.XpG();const e=p.r8f(1);p.Y8G("value",e)("scrollable",!0),p.R7$(3),p.Y8G("focusOnShow",!1)}}let K=(()=>{class e{constructor(){this.repositoryContextService=(0,f.service)(f.RepositoryContextService),this.licenseContextService=(0,f.service)(f.LicenseContextService),this.authorizationService=(0,f.service)(f.AuthorizationService),this.repositoryService=(0,f.service)(f.RepositoryService),this.requireWriteAccess=(0,r.hFB)(!0),this.filterByTypes=(0,r.hFB)(void 0),this.filterByPermission=(0,r.hFB)(void 0),this.showNameFilter=(0,r.hFB)(!0),this.showStateFilter=(0,r.hFB)(!0),this.showLocalOnlyFilter=(0,r.hFB)(!0),this.subscriptions=new f.SubscriptionList,this.vm=(0,o.vPA)(new w),this.RepositoryState=f.RepositoryState,this.repositoryInfo=(0,o.vPA)(void 0),this.repositoryInfoPopover=(0,r.ebz)("repositoryInfoPopover"),this.repositionPopoverFrame=0}ngOnInit(){this.vm.update(e=>(e.repositoryList=this.getAllowedRepositories(),e.license=this.licenseContextService.getLicenseSnapshot(),e.canManageRepositories=this.authorizationService.isRepoManager(),e)),this.subscriptions.addAll([this.repositoryContextService.onRepositoryListChanged(()=>this.onRepositoryListChanged())])}ngOnDestroy(){this.subscriptions.unsubscribeAll(),this.clearRepositoryInfoTimeouts(),this.stopObservingInfoPopoverPosition()}createRepository(){const e=(0,f.getPathName)();(0,f.navigate)(`repository/create?previous=${e}`)}selectRepository(e){var t=this;return(0,v.A)(function*(){t.clearRepositoryInfoTimeouts(),t.repositoryInfoPopover()?.hide(),yield t.repositoryContextService.updateSelectedRepository(e.toRepositoryReference())})()}scheduleShowRepositoryInfo(e,t){this.clearRepositoryInfoTimeouts(),this.showRepositoryInfoTimeout=setTimeout(()=>this.showRepositoryInfo(e,t),300)}scheduleHideRepositoryInfo(){this.clearRepositoryInfoTimeouts(),this.hideRepositoryInfoTimeout=setTimeout(()=>this.repositoryInfoPopover()?.hide(),300)}clearRepositoryInfoTimeouts(){clearTimeout(this.showRepositoryInfoTimeout),clearTimeout(this.hideRepositoryInfoTimeout)}observeInfoPopoverPosition(){const e=this.repositoryInfoPopover(),t=e?.container?.querySelector(".repository-info-popover-content");!e||!t||(this.stopObservingInfoPopoverPosition(),this.popoverContentResizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this.repositionPopoverFrame),this.repositionPopoverFrame=requestAnimationFrame(()=>this.repositionPopover())}),this.popoverContentResizeObserver.observe(t))}stopObservingInfoPopoverPosition(){cancelAnimationFrame(this.repositionPopoverFrame),this.popoverContentResizeObserver?.disconnect(),this.popoverContentResizeObserver=void 0}onFilterQueryChange(e){this.vm.update(t=>(t.filterQuery=e,t))}onStateFilterChange(e){this.vm.update(t=>(t.stateFilter=e,t))}onLocalOnlyChange(e){this.vm.update(t=>(t.localOnly=e,t))}showRepositoryInfo(e,t){const i=this.repositoryInfoPopover();if(!i||i.overlayVisible&&this.repositoryInfo()?.repository===e)return;const o=this.authorizationService.getRepositoryPermission(e),n=e.state===f.RepositoryState.RUNNING;this.repositoryInfo.set({repository:e,permission:o,loading:n});const s=i.overlayVisible;i.show(null,t),s&&this.repositionPopover(),n&&this.repositoryService.getRepositorySizeInfo(e).then(t=>this.setLoadedSizeInfo(e,t)).catch(t=>{S.I.logger.error(`Failed to fetch the size of repository "${e.id}"`,t),this.setLoadedSizeInfo(e)})}setLoadedSizeInfo(e,t){this.repositoryInfo.update(i=>i?.repository===e?{...i,loading:!1,sizeInfo:t}:i)}repositionPopover(){const e=this.repositoryInfoPopover();e?.container?.classList.remove("p-popover-flipped"),e?.container?.removeAttribute("data-p-popover-flipped"),e?.align()}onRepositoryListChanged(){this.vm.update(e=>(e.repositoryList=this.getAllowedRepositories(),e))}getAllowedRepositories(){return this.repositoryService.getAccessibleRepositories(!0,this.requireWriteAccess()).filterByType(this.filterByTypes()).filter(this.createRepositoryPermissionFilter())}createRepositoryPermissionFilter(){const e=this.filterByPermission();return t=>!e||this.authorizationService.hasRepoPermission(e,t)}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-repository-picker-list"]],viewQuery:function(e,t){1&e&&p.wEZ(t.repositoryInfoPopover,x,5),2&e&&p.NyB()},inputs:{requireWriteAccess:[1,"requireWriteAccess"],filterByTypes:[1,"filterByTypes"],filterByPermission:[1,"filterByPermission"],showNameFilter:[1,"showNameFilter"],showStateFilter:[1,"showStateFilter"],showLocalOnlyFilter:[1,"showLocalOnlyFilter"]},decls:14,vars:11,consts:[["selectedItem",""],["item",""],["body",""],["repositoryInfoPopover",""],["content",""],["data-test","repository-picker-list",1,"repository-picker-list"],[1,"header"],["aria-live","polite","aria-atomic","true",1,"repository-results-count"],["aria-hidden","true","data-test","repository-picker-results-count"],["data-test","repository-picker-results-count-accessible",1,"screen-reader-only"],["data-test","repository-picker-create-btn",1,"create-repository-btn",3,"label","icon"],[1,"toolbar"],[1,"filters"],["data-test","repository-picker-create-btn",1,"create-repository-btn",3,"click","label","icon"],[1,"filter-name"],["optionLabel","label","optionValue","value",1,"filter-state",3,"ariaLabel","options","ngModel"],[1,"filter-local-only"],["pInputText","","type","text",3,"ngModelChange","placeholder","ngModel"],[1,"ri-search-line"],["optionLabel","label","optionValue","value",1,"filter-state",3,"ngModelChange","ariaLabel","options","ngModel"],["inputId","localOnly",3,"ngModelChange","binary","ngModel"],["for","localOnly",1,"label-base-regular"],["scrollHeight","flex",1,"repository-list",3,"value","scrollable"],[3,"onShow","onHide","focusOnShow"],["data-test","repository-picker-row"],[1,"type-column"],["aria-hidden","true","data-test","repository-picker-repository-type","tooltipEvent","both","tooltipPosition","top",3,"ngClass","pTooltip"],["data-test","repository-picker-repository-type-label",1,"screen-reader-only"],[1,"name-column"],["type","button","data-test","repository-picker-select-btn",1,"repository-select",3,"mouseenter","focus","mouseleave","blur","click"],[1,"repository-header"],["aria-hidden","true","data-test","repository-picker-repository-state","tooltipEvent","both","tooltipPosition","top",3,"ngClass","pTooltip"],["data-test","repository-picker-repository-state-label",1,"screen-reader-only",3,"id"],["data-test","repository-picker-repository-id",1,"repository-id","label-base-bold"],["severity","warn","data-test","repository-picker-fedx-deprecated-tag",1,"deprecated-tag",3,"value"],["data-test","repository-picker-repository-location",1,"repository-location"],[1,"repository-description","body-sm-regular"],[1,"repository-info-popover-content"],[1,"repository-info-popover-content",3,"mouseenter","mouseleave"],[3,"repository","permission","loading","sizeInfo"]],template:function(e,t){1&e&&(p.j41(0,"div",5),p.SS7(1),p.j41(2,"div",6)(3,"h6",7)(4,"span",8),p.EFF(5),p.nI1(6,"transloco"),p.k0s(),p.j41(7,"span",9),p.nVh(8,G,2,7)(9,A,2,6),p.k0s()(),p.nVh(10,B,2,4,"p-button",10),p.k0s(),p.j41(11,"div",11),p.nVh(12,q,4,3,"span",12),p.k0s(),p.nVh(13,J,7,3),p.k0s()),2&e&&(p.R7$(),p.bH3(t.vm().filteredRepositoryList),p.R7$(4),p.SpI(" ",p.i5U(6,6,"components.page_restrictions.repository_count",p.eq3(9,F,t.vm().repositoryCount))," "),p.R7$(3),p.vxM(t.vm().hasFilteredOutRepositories?8:9),p.R7$(2),p.vxM(t.vm().canCreateRepository?10:-1),p.R7$(2),p.vxM(t.vm().showFilters?12:-1),p.R7$(),p.vxM(t.vm().showRepositoryList?13:-1))},dependencies:[l.$n,m.YU,R.bG,R.XI,_.Sm,b.C8,C.md,P.l6,M.YN,M.me,M.BC,M.vS,O.m_,k.Sc,c.AM,I.vw,s.Kj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}.repository-picker-list[_ngcontent-%COMP%]{color:var(--gw-panel-color);display:flex;flex-direction:column;flex:1;min-height:0}.repository-picker-list[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.repository-picker-list[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]:not(:has(.create-repository-btn)){margin-bottom:.5em}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{display:flex;gap:1em;min-width:0;flex-wrap:wrap;padding-bottom:1em}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%] .filter-local-only[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25em}.repository-picker-list[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%] .filter-local-only[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%]{flex:1;min-height:200px}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--gw-datatable-row-hover-background)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .type-column[_ngcontent-%COMP%]{width:2.5rem;padding-right:0;vertical-align:top}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .type-column[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{font-size:1.2em;color:var(--gw-button-primary-link-hover-color)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%]{max-width:0;padding:0;vertical-align:top}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-select[_ngcontent-%COMP%]{display:block;width:100%;padding:var(--gw-datatable-body-cell-padding);padding-left:.1em;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-select[_ngcontent-%COMP%]:focus{outline:none}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-select[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--gw-focus-ring-color);outline-offset:-2px}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-header[_ngcontent-%COMP%]{display:flex;align-items:baseline;min-width:0}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state[_ngcontent-%COMP%]{flex-shrink:0;margin-right:.5em;font-size:.8em}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state.running[_ngcontent-%COMP%]{color:var(--gw-button-success-background)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state.inactive[_ngcontent-%COMP%], .repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-state.transitioning[_ngcontent-%COMP%]{color:var(--gw-foreground-on-surface-subtle)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-id[_ngcontent-%COMP%]{flex:0 1 auto;min-width:0;font-weight:var(--gw-font-weight-600)}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .deprecated-tag[_ngcontent-%COMP%]{flex-shrink:0;margin-left:.5em;font-size:.7em}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-description[_ngcontent-%COMP%]{display:block}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-id[_ngcontent-%COMP%], .repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-description[_ngcontent-%COMP%], .repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-location[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repository-picker-list[_ngcontent-%COMP%] .repository-list[_ngcontent-%COMP%] .name-column[_ngcontent-%COMP%] .repository-location[_ngcontent-%COMP%]{flex:1;min-width:30%;margin-left:.5em}.repository-info-popover-content[_ngcontent-%COMP%]{box-sizing:content-box;max-width:30rem;min-width:22rem;margin:calc(-1 * var(--gw-popover-content-padding));padding:var(--gw-popover-content-padding)}"]})}}return e})();var U=i(2480),Z=i(3049);const ee="components.page_restrictions";let te=(()=>{class e{constructor(){this.licenseContextService=(0,f.service)(f.LicenseContextService),this.securityContextService=(0,f.service)(f.SecurityContextService),this.authorizationService=(0,f.service)(f.AuthorizationService),this.repositoryService=(0,f.service)(f.RepositoryService),this.viewRestrictionService=(0,f.service)(f.ViewRestrictionService),this.translocoService=(0,o.WQX)(s.JO)}resolve(e){const t=e.selectedRepository?this.getSelectedRepositoryReasons(e,e.selectedRepository):[],i=this.isLicenseRestricted(e),o=this.hasAccessibleRepositories(e),n=[];i&&n.push({...this.warn("invalid_license"),actionLabelKey:`${ee}.set_new_license`,actionLink:"/license"});const s=!o&&this.requiresWriteAccess(e);return s&&n.push(this.info("no_accessible_writable_repos")),t.length?n.push(...t):!s&&this.isRepositoryPickerRequired(e)&&n.push(this.getNoSelectedRepositoryReason(o)),n}isRepositoryPickerRequired(e){const t=e.selectedRepository;return t?!this.isRepositoryAllowed(e,t)||this.getSelectedRepositoryReasons(e,t).length>0:this.requiresSelectedRepository(e)}getNoSelectedRepositoryReason(e){const t=this.authorizationService.isRepoManager()&&this.isLicenseValid();return this.info(e?t?"no_active_repository_select_or_create_one":"no_active_repository_select_one":t?"no_accessible_repos_create_one":"no_accessible_repositories")}getSelectedRepositoryReasons(e,t){return this.isWriteRestricted(e,t)?[this.warn("no_write_permission",{repositoryId:t.id})]:this.isRestrictedBy(e,f.ViewRestrictionCondition.IS_ONTOP)&&t.isOntop()?[this.warn("read_only_ontop",{repositoryId:t.id})]:this.isRestrictedBy(e,f.ViewRestrictionCondition.IS_FEDEX)&&t.isFedx()?[this.warn("fedx_unsupported",{pageTitle:this.translocoService.translate(e.pageTitle)})]:[]}isWriteRestricted(e,t){const i=this.securityContextService.getSecurityConfig()?.isEnabled()??!1;return this.requiresWriteAccess(e)&&i&&!this.authorizationService.canWriteRepo(t)}isLicenseRestricted(e){return this.isRestrictedBy(e,f.ViewRestrictionCondition.IS_LICENSE_INVALID)&&!this.isLicenseValid()}isLicenseValid(){return this.licenseContextService.getLicenseSnapshot()?.valid??!1}hasAccessibleRepositories(e){return this.repositoryService.getAccessibleRepositories(!0,this.requiresWriteAccess(e)).getItems().some(t=>this.isRepositoryAllowed(e,t))}isRepositoryAllowed(e,t){return this.viewRestrictionService.isRepositoryAllowed(t,e.viewRestriction)}requiresWriteAccess(e){return e.viewRestriction?.requiresWriteAccess()??!1}requiresSelectedRepository(e){return e.viewRestriction?.requiresSelectedRepository()??!1}isRestrictedBy(e,t){return e.viewRestriction?.isRestrictedBy(t)??!1}info(e){return{severity:"info",translationKey:`${ee}.${e}`}}warn(e,t){return{severity:"warn",translationKey:`${ee}.${e}`,translationParams:t}}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵprov=o.jDH({token:e,factory:e.ɵfac,providedIn:"root"})}}return e})();const ie=(e,t)=>t.translationKey;function oe(e,t){if(1&e&&(p.j41(0,"a",4),p.EFF(1),p.nI1(2,"transloco"),p.k0s()),2&e){const e=p.XpG(2).$implicit;p.Y8G("href",e.actionLink,p.B4B),p.R7$(),p.JRh(p.bMT(2,2,e.actionLabelKey))}}function ne(e,t){if(1&e&&(p.j41(0,"a",5),p.EFF(1),p.nI1(2,"transloco"),p.k0s()),2&e){const e=p.XpG(2).$implicit;p.Y8G("routerLink",e.actionLink),p.R7$(),p.JRh(p.bMT(2,2,e.actionLabelKey))}}function se(e,t){if(1&e&&p.nVh(0,oe,3,4,"a",4)(1,ne,3,4,"a",5),2&e){const e=p.XpG().$implicit;p.vxM(e.isExternalAction?0:1)}}function re(e,t){if(1&e&&(p.j41(0,"p-message",1)(1,"div"),p.nrm(2,"span",3),p.nI1(3,"transloco"),p.nVh(4,se,2,1),p.k0s()()),2&e){const e=t.$implicit;p.Y8G("severity",e.severity),p.R7$(2),p.Y8G("innerHTML",p.i5U(3,3,e.translationKey,e.translationParams),p.npT),p.R7$(2),p.vxM(e.actionLabelKey&&e.actionLink?4:-1)}}function ce(e,t){if(1&e&&p.nrm(0,"app-repository-picker-list",2),2&e){const e=p.XpG();p.Y8G("requireWriteAccess",e.requiresWriteAccess())("filterByTypes",e.allowedRepositoryTypes())("filterByPermission",e.requiredRepositoryPermission())("showStateFilter",!1)}}let le=(()=>{class e{static{this.FOOTER_SELECTOR=".wb-footer"}static{this.MAIN_CONTAINER_SELECTOR=".main-container"}static{this.BOTTOM_MARGIN_PX=16}constructor(){this.title=(0,r.hFB)(),this.restrictionResolverService=(0,o.WQX)(te),this.repositoryContextService=(0,f.service)(f.RepositoryContextService),this.restrictionContextService=(0,f.service)(f.RestrictionContextService),this.elementRef=(0,o.WQX)(p.aKT),this.subscriptions=new f.SubscriptionList,this.selectedRepository=(0,o.vPA)(void 0),this.viewRestriction=(0,o.vPA)(void 0),this.restrictionContext=(0,g.EW)(()=>({selectedRepository:this.selectedRepository(),viewRestriction:this.viewRestriction(),pageTitle:this.title()??""})),this.isViewRestricted=(0,g.EW)(()=>this.restrictions().length>0||this.isRepositoryPickerShown()),this.availableHeight=(0,o.vPA)(void 0),this.restrictions=(0,g.EW)(()=>this.restrictionResolverService.resolve(this.restrictionContext())),this.isRepositoryPickerShown=(0,g.EW)(()=>this.restrictionResolverService.isRepositoryPickerRequired(this.restrictionContext())),this.requiresWriteAccess=(0,g.EW)(()=>this.viewRestriction()?.requiresWriteAccess()??!1),this.allowedRepositoryTypes=(0,g.EW)(()=>this.viewRestriction()?.allowedRepositoryTypes??[]),this.requiredRepositoryPermission=(0,g.EW)(()=>this.viewRestriction()?.requiredRepositoryPermission),(0,o.QZP)(()=>{this.updateAvailableHeight()})}ngOnInit(){this.subscriptions.addAll([this.repositoryContextService.onSelectedRepositoryChanged(e=>this.selectedRepository.set(e)),this.restrictionContextService.onViewRestrictionChanged(e=>this.viewRestriction.set(e))])}ngAfterViewInit(){this.resizeObserver=new ResizeObserver(()=>this.updateAvailableHeight()),this.resizeObserver.observe(document.body)}ngOnDestroy(){this.subscriptions.unsubscribeAll(),this.resizeObserver?.disconnect()}updateAvailableHeight(){if(!this.isViewRestricted())return void this.availableHeight.set(void 0);const t=this.elementRef.nativeElement.getBoundingClientRect().top,i=document.querySelector(e.FOOTER_SELECTOR)?.getBoundingClientRect().top??window.innerHeight,o=document.querySelector(e.MAIN_CONTAINER_SELECTOR),n=o&&parseFloat(getComputedStyle(o).paddingBottom)||0,s=Math.max(i-t-n-e.BOTTOM_MARGIN_PX,0);Math.abs(s-(this.availableHeight()??-1))>1&&this.availableHeight.set(s)}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-page-restrictions"]],inputs:{title:[1,"title"]},decls:4,vars:3,consts:[["data-test","page-restrictions",1,"page-restrictions"],["data-test","page-restriction-message","icon","ri-alert-line",3,"severity"],[1,"repository-list",3,"requireWriteAccess","filterByTypes","filterByPermission","showStateFilter"],[3,"innerHTML"],["target","_blank","rel","noopener noreferrer",3,"href"],["data-test","restriction-internal-link",3,"routerLink"]],template:function(e,t){1&e&&(p.j41(0,"div",0),p.Z7z(1,re,5,6,"p-message",1,ie),p.nVh(3,ce,1,4,"app-repository-picker-list",2),p.k0s()),2&e&&(p.xc7("height",t.availableHeight(),"px"),p.R7$(),p.Dyx(t.restrictions()),p.R7$(2),p.vxM(t.isRepositoryPickerShown()?3:-1))},dependencies:[K,U.QB,Z.Wk,s.Kj],styles:[".page-restrictions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em;margin-top:1em}.page-restrictions[_ngcontent-%COMP%]:empty{margin-top:0}"]})}}return e})();const pe=["*"];function ae(e,t){if(1&e&&(p.nrm(0,"app-page-info-tooltip",4),p.nI1(1,"transloco"),p.nI1(2,"transloco")),2&e){const e=p.XpG(2);p.Y8G("title",p.bMT(1,3,e.title()))("helpInfo",p.bMT(2,5,e.helpInfo()))("documentationLink",e.documentationLink())}}function he(e,t){if(1&e&&(p.j41(0,"h1",1)(1,"span",3),p.EFF(2),p.nI1(3,"transloco"),p.k0s(),p.nVh(4,ae,3,7,"app-page-info-tooltip",4),p.k0s()),2&e){const e=p.XpG();p.R7$(2),p.JRh(p.bMT(3,2,e.title())),p.R7$(2),p.vxM(e.helpInfo()?4:-1)}}function ue(e,t){if(1&e&&p.nrm(0,"app-page-restrictions",2),2&e){const e=p.XpG();p.Y8G("title",e.title())}}function ye(e,t){1&e&&p.SdG(0)}let de=(()=>{class e{constructor(){this.activatedRoute=(0,o.WQX)(n.nX),this.restrictionContextService=(0,f.service)(f.RestrictionContextService),this.subscriptions=new f.SubscriptionList,this.embedded=(0,o.vPA)(!1),this.title=(0,o.vPA)(void 0),this.helpInfo=(0,o.vPA)(void 0),this.documentationLink=(0,o.vPA)(void 0),this.isViewRestricted=(0,o.vPA)(!1)}ngOnInit(){this.subscribeToIsViewRestrictedChanges(),this.getPageData(),this.activatedRoute.snapshot.queryParams.hasOwnProperty("embedded")&&this.embedded.set(!0)}ngOnDestroy(){this.subscriptions.unsubscribeAll()}getPageData(){const e=this.activatedRoute.snapshot.data;this.title.set(e.title),this.helpInfo.set(e.helpInfo),this.documentationLink.set(e.documentationLink)}subscribeToIsViewRestrictedChanges(){this.subscriptions.add(this.restrictionContextService.onIsViewRestrictedChanged(e=>this.isViewRestricted.set(e)))}static{this.ɵfac=function(t){return new(t||e)}}static{this.ɵcmp=p.VBU({type:e,selectors:[["app-page-layout"]],ngContentSelectors:pe,decls:4,vars:2,consts:[[1,"page-view"],[1,"title-container"],[3,"title"],[1,"page-title-label"],[3,"title","helpInfo","documentationLink"]],template:function(e,t){1&e&&(p.NAR(),p.j41(0,"div",0),p.nVh(1,he,5,4,"h1",1),p.nVh(2,ue,1,1,"app-page-restrictions",2)(3,ye,1,0),p.k0s()),2&e&&(p.R7$(),p.vxM(t.embedded()?-1:1),p.R7$(),p.vxM(t.isViewRestricted()?2:3))},dependencies:[d,le,s.Kj],styles:[".page-view[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%}.page-view[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{position:var(--page-title-position);margin-bottom:var(--page-title-margin-bottom);display:flex;align-items:center;gap:.5rem}.page-view[_ngcontent-%COMP%] app-page-restrictions[_ngcontent-%COMP%]{display:block;margin-top:calc(-1 * var(--page-title-margin-bottom, 0px))}"]})}}return e})()},2162(e,t,i){i.d(t,{I:()=>n});var o=i(7154);class n{static get logger(){return o.Loggers.getLoggerInstance("Workbench")}}}}]);
|