graphdb-workbench 3.4.1-RC2 → 3.4.1-RC3
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/{43239.1512ea852bf9be610d44.bundle.js → 43239.bd27df8312768270a684.bundle.js} +2 -2
- package/dist/43239.bd27df8312768270a684.bundle.js.map +1 -0
- package/dist/{64709.84613f4ba860eeca2b5b.bundle.js → 64709.8a4200a08e5b6144b2d6.bundle.js} +2 -2
- package/dist/{64709.84613f4ba860eeca2b5b.bundle.js.map → 64709.8a4200a08e5b6144b2d6.bundle.js.map} +1 -1
- package/dist/{65677.3b70cae1505dfba6849c.bundle.js → 65677.2789af7aaf2aaa0b852d.bundle.js} +2 -2
- package/dist/{65677.3b70cae1505dfba6849c.bundle.js.map → 65677.2789af7aaf2aaa0b852d.bundle.js.map} +1 -1
- package/dist/{80933.1337f89a74b6335835a3.bundle.js → 80933.649b7ad59cd16eed24b9.bundle.js} +2 -2
- package/dist/{80933.1337f89a74b6335835a3.bundle.js.map → 80933.649b7ad59cd16eed24b9.bundle.js.map} +1 -1
- package/dist/{82917.ecbe04edc3465b3bcd32.bundle.js → 82917.2527a49de2cdc7bf5b5d.bundle.js} +2 -2
- package/dist/{82917.ecbe04edc3465b3bcd32.bundle.js.map → 82917.2527a49de2cdc7bf5b5d.bundle.js.map} +1 -1
- package/dist/{86099.01893ea1eb1903cbc37b.bundle.js → 86099.1ead9bf9215f0829867a.bundle.js} +2 -2
- package/dist/{86099.01893ea1eb1903cbc37b.bundle.js.map → 86099.1ead9bf9215f0829867a.bundle.js.map} +1 -1
- package/dist/index.html +9 -9
- 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 +2 -2
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
- package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
- package/dist/js/angular/core/templates/search-resource-input.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +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/security/templates/user.html +2 -2
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +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.afb8576d9cf80bcf9f84.js → legacyWorkbench.c6a4ec71b70ce8712bbf.js} +3 -3
- package/dist/{legacyWorkbench.afb8576d9cf80bcf9f84.js.map → legacyWorkbench.c6a4ec71b70ce8712bbf.js.map} +1 -1
- package/dist/{main.49c7f2e1f2f86f23565f.js → main.97d01b5ec0c9e3b0b51a.js} +3 -3
- package/dist/{main.49c7f2e1f2f86f23565f.js.map → main.97d01b5ec0c9e3b0b51a.js.map} +1 -1
- package/dist/pages/aclmanagement.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/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 +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/sparql-templates.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +11 -11
- package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
- package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
- package/dist/shared-components/esm/onto-layout.entry.js +1 -1
- package/dist/shared-components/shared-components/{p-9eaa9582.entry.js → p-eb30d309.entry.js} +1 -1
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/43239.1512ea852bf9be610d44.bundle.js.map +0 -1
- /package/dist/{legacyWorkbench.afb8576d9cf80bcf9f84.js.LICENSE.txt → legacyWorkbench.c6a4ec71b70ce8712bbf.js.LICENSE.txt} +0 -0
- /package/dist/{main.49c7f2e1f2f86f23565f.js.LICENSE.txt → main.97d01b5ec0c9e3b0b51a.js.LICENSE.txt} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<link href="css/clustermanagement.css?v=3.4.1-
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=3.4.1-
|
|
3
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=3.4.1-
|
|
1
|
+
<link href="css/clustermanagement.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
3
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
4
4
|
|
|
5
5
|
<title>{{'view.clusterManagement.title' | translate}}</title>
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/domain-range-graph.css?v=3.4.1-
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=3.4.1-
|
|
1
|
+
<link href="css/domain-range-graph.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
3
3
|
|
|
4
4
|
<title>Explore Data Graph</title>
|
|
5
5
|
|
package/dist/pages/edit.html
CHANGED
package/dist/pages/explore.html
CHANGED
package/dist/pages/export.html
CHANGED
package/dist/pages/find.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<link href="css/graphs-config.css?v=3.4.1-
|
|
1
|
+
<link href="css/graphs-config.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
2
2
|
|
|
3
3
|
<h1>
|
|
4
4
|
{{title}}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
<label class="start-mode search image-label d-flex" guide-selector="start-with-search-box" ng-class="{'active': newConfig.startMode === 'search'}">
|
|
80
80
|
<input type="radio" class="form-check-input" id="checkboxSuccessSearch"
|
|
81
81
|
ng-model="newConfig.startMode" value="search">
|
|
82
|
-
<img class="image-label-image" src="css/images/search.png?v=3.4.1-
|
|
82
|
+
<img class="image-label-image" src="css/images/search.png?v=3.4.1-RC3" alt="search image"
|
|
83
83
|
width="100%">
|
|
84
84
|
<div class="image-label-content">
|
|
85
85
|
<h5>{{'start.with.search.box' | translate}}</h5>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<label class="start-mode node image-label d-flex" guide-selector="start-with-a-fixed-node" ng-class="{'active': newConfig.startMode === 'node'}">
|
|
91
91
|
<input type="radio" class="form-check-input" id="checkboxSuccessNode" ng-model="newConfig.startMode"
|
|
92
92
|
value="node">
|
|
93
|
-
<img class="image-label-image" src="css/images/node.png?v=3.4.1-
|
|
93
|
+
<img class="image-label-image" src="css/images/node.png?v=3.4.1-RC3" alt="node image"
|
|
94
94
|
width="100%">
|
|
95
95
|
<div class="image-label-content">
|
|
96
96
|
<h5>{{'start.with.fixed.node' | translate}}</h5>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<label class="start-mode query image-label d-flex" guide-selector="start-with-graph-query-result" ng-class="{'active': newConfig.startMode === 'query'}">
|
|
102
102
|
<input type="radio" class="form-check-input" data-cy="graph-config-by-graph-query-checkbox"
|
|
103
103
|
ng-model="newConfig.startMode" value="query">
|
|
104
|
-
<img class="image-label-image" src="css/images/query.png?v=3.4.1-
|
|
104
|
+
<img class="image-label-image" src="css/images/query.png?v=3.4.1-RC3" alt="query image"
|
|
105
105
|
width="100%">
|
|
106
106
|
<div class="image-label-content">
|
|
107
107
|
<h5>{{'query.results.start' | translate}}</h5>
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
{{'sample.query.used' | translate}}</p>
|
|
149
149
|
</div>
|
|
150
150
|
<div>
|
|
151
|
-
<img src="css/images/expand.png?v=3.4.1-
|
|
151
|
+
<img src="css/images/expand.png?v=3.4.1-RC3" class="info-box-img" height="220"
|
|
152
152
|
alt="expand image">
|
|
153
153
|
</div>
|
|
154
154
|
</div>
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
{{'sample.query.used' | translate}}</p>
|
|
177
177
|
</div>
|
|
178
178
|
<div>
|
|
179
|
-
<img src="css/images/labels-size.png?v=3.4.1-
|
|
179
|
+
<img src="css/images/labels-size.png?v=3.4.1-RC3" class="info-box-img" height="220"
|
|
180
180
|
alt="labels size image">
|
|
181
181
|
</div>
|
|
182
182
|
</div>
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
<p>{{'query.is.optional.local.name' | translate}}</p>
|
|
200
200
|
</div>
|
|
201
201
|
<div>
|
|
202
|
-
<img src="css/images/predicates.png?v=3.4.1-
|
|
202
|
+
<img src="css/images/predicates.png?v=3.4.1-RC3" class="info-box-img" height="220"
|
|
203
203
|
alt="predicates image">
|
|
204
204
|
</div>
|
|
205
205
|
</div>
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
{{'sample.query.used' | translate}}</p>
|
|
232
232
|
</div>
|
|
233
233
|
<div>
|
|
234
|
-
<img src="css/images/side-panel.png?v=3.4.1-
|
|
234
|
+
<img src="css/images/side-panel.png?v=3.4.1-RC3" class="info-box-img" height="220"
|
|
235
235
|
alt="side panel image">
|
|
236
236
|
</div>
|
|
237
237
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<link href="css/graphs-vizualizations.css?v=3.4.1-
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=3.4.1-
|
|
3
|
-
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=3.4.1-
|
|
4
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=3.4.1-
|
|
1
|
+
<link href="css/graphs-vizualizations.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
3
|
+
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
4
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
5
5
|
|
|
6
6
|
<div class="visual-graph-view">
|
|
7
7
|
|
|
@@ -160,9 +160,9 @@
|
|
|
160
160
|
<tr ng-repeat="config in graphConfigs">
|
|
161
161
|
<td width="20">
|
|
162
162
|
<a href ng-click="goToGraphConfig(config)">
|
|
163
|
-
<img ng-if="config.startMode == 'search'" src="css/images/search.png?v=3.4.1-
|
|
164
|
-
<img ng-if="config.startMode == 'node'" src="css/images/node.png?v=3.4.1-
|
|
165
|
-
<img ng-if="config.startMode == 'query'" src="css/images/query.png?v=3.4.1-
|
|
163
|
+
<img ng-if="config.startMode == 'search'" src="css/images/search.png?v=3.4.1-RC3" alt="" width="64" uib-popover="{{'visual.config.search.box.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
164
|
+
<img ng-if="config.startMode == 'node'" src="css/images/node.png?v=3.4.1-RC3" alt="" width="64" uib-popover="{{'visual.config.fixed.resource.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
165
|
+
<img ng-if="config.startMode == 'query'" src="css/images/query.png?v=3.4.1-RC3" alt="" data-cy="graph-config-starting-point-query-results" width="64" uib-popover="{{'visual.config.query.results.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
166
166
|
</a>
|
|
167
167
|
</td>
|
|
168
168
|
<td>
|
package/dist/pages/guides.html
CHANGED
package/dist/pages/home.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<link href="css/home.css?v=3.4.1-
|
|
1
|
+
<link href="css/home.css?v=3.4.1-RC3" rel="stylesheet">
|
|
2
2
|
<div class="ot-loader ot-loader-home" onto-loader size="100" auto-font-size="false" message-text="{{'common.loading' | translate}}" ng-show="isLoadingLocation()"></div>
|
|
3
3
|
<div id="wb-home" class="content-wrapper" ng-hide="isLoadingLocation()" ng-cloak>
|
|
4
4
|
<div class="alert alert-danger" role="alert" ng-hide="isLicenseValid()">
|
package/dist/pages/import.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link rel="stylesheet" type="text/css" href="css/import.css?v=3.4.1-
|
|
2
|
-
<link rel="stylesheet" type="text/css" href="css/import-resource-tree.css?v=3.4.1-
|
|
1
|
+
<link rel="stylesheet" type="text/css" href="css/import.css?v=3.4.1-RC3">
|
|
2
|
+
<link rel="stylesheet" type="text/css" href="css/import-resource-tree.css?v=3.4.1-RC3">
|
|
3
3
|
|
|
4
4
|
<div id="wb-import">
|
|
5
5
|
<h1>
|
package/dist/pages/jdbc.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<link href="css/backup-and-restore.css?v=3.4.1-
|
|
1
|
+
<link href="css/backup-and-restore.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
2
2
|
<div data-test="backup-and-restore-page">
|
|
3
3
|
<title>${messages.app.title} : ${messages.jmx.QueryMonitoringPage.title}</title>
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=3.4.1-
|
|
2
|
-
<link href="css/export.css?v=3.4.1-
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=3.4.1-RC3" rel="stylesheet">
|
|
2
|
+
<link href="css/export.css?v=3.4.1-RC3" rel="stylesheet">
|
|
3
3
|
|
|
4
4
|
<title>Namespaces</title>
|
|
5
5
|
|
package/dist/pages/plugins.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<link href="css/rdf-class-hierarchy.css?v=3.4.1-
|
|
2
|
-
<link href="css/rdf-class-hierarchy-labels.css?v=3.4.1-
|
|
3
|
-
<link href="css/rdf-details-side-panel.css?v=3.4.1-
|
|
4
|
-
<link href="js/lib/rzslider/rzslider.min.css?v=3.4.1-
|
|
5
|
-
<link href="js/lib/angucomplete-alt/angucomplete-alt.css?v=3.4.1-
|
|
6
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=3.4.1-
|
|
7
|
-
<link href="css/lib/animate/3.2.0/animate.min.css?v=3.4.1-
|
|
1
|
+
<link href="css/rdf-class-hierarchy.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-class-hierarchy-labels.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
3
|
+
<link href="css/rdf-details-side-panel.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
4
|
+
<link href="js/lib/rzslider/rzslider.min.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
5
|
+
<link href="js/lib/angucomplete-alt/angucomplete-alt.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
6
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
7
|
+
<link href="css/lib/animate/3.2.0/animate.min.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
8
8
|
|
|
9
9
|
<title>Explore Data Graph</title>
|
|
10
10
|
|
package/dist/pages/rdfrank.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/rdfrank.css?v=3.4.1-
|
|
2
|
-
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=3.4.1-
|
|
1
|
+
<link href="css/rdfrank.css?v=3.4.1-RC3" rel="stylesheet">
|
|
2
|
+
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
3
3
|
|
|
4
4
|
<div id="rdfRank" class="page" data-test="rdf-rank-page">
|
|
5
5
|
<h1>
|
package/dist/pages/ux-test1.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<link rel="stylesheet" type="text/css" href="css/ux-test1.css">
|
|
2
2
|
<link rel="stylesheet" type="text/css" href="css/user.css">
|
|
3
3
|
<link rel="stylesheet" type="text/css" href="css/rdf-details-side-panel.css">
|
|
4
|
-
<link href="js/lib/rzslider/rzslider.min.css?v=3.4.1-
|
|
4
|
+
<link href="js/lib/rzslider/rzslider.min.css?v=3.4.1-RC3" rel="stylesheet"/>
|
|
5
5
|
|
|
6
6
|
<div class="content-wrapper">
|
|
7
7
|
<div core-errors></div>
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
{{'sample.query.used' | translate}}</p>
|
|
508
508
|
</div>
|
|
509
509
|
<div>
|
|
510
|
-
<img src="css/images/expand.png?v=3.4.1-
|
|
510
|
+
<img src="css/images/expand.png?v=3.4.1-RC3" class="info-box-img" height="220"
|
|
511
511
|
alt="expand image">
|
|
512
512
|
</div>
|
|
513
513
|
</div>
|
package/dist/pages/webapi.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href='css/lib/swagger-ui.min.css?v=3.4.1-
|
|
2
|
-
<link href='css/swagger.custom.css?v=3.4.1-
|
|
1
|
+
<link href='css/lib/swagger-ui.min.css?v=3.4.1-RC3' rel='stylesheet' type='text/css'/>
|
|
2
|
+
<link href='css/swagger.custom.css?v=3.4.1-RC3' rel='stylesheet' type='text/css'/>
|
|
3
3
|
|
|
4
4
|
<h1>
|
|
5
5
|
{{title}}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
<title>Swagger UI</title>
|
|
7
|
-
<link rel="stylesheet" type="text/css" href="./swagger-ui.css?v=3.4.1-
|
|
8
|
-
<link rel="stylesheet" type="text/css" href="./index.css?v=3.4.1-
|
|
9
|
-
<link rel="icon" type="image/png" href="./favicon-32x32.png?v=3.4.1-
|
|
10
|
-
<link rel="icon" type="image/png" href="./favicon-16x16.png?v=3.4.1-
|
|
11
|
-
<link href='css/reset.css?v=3.4.1-
|
|
12
|
-
<link href='css/screen.css?v=3.4.1-
|
|
13
|
-
<link href='css/onto-theme.css?v=3.4.1-
|
|
14
|
-
<link href='css/print.css?v=3.4.1-
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="./swagger-ui.css?v=3.4.1-RC3" />
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="./index.css?v=3.4.1-RC3" />
|
|
9
|
+
<link rel="icon" type="image/png" href="./favicon-32x32.png?v=3.4.1-RC3" sizes="32x32" />
|
|
10
|
+
<link rel="icon" type="image/png" href="./favicon-16x16.png?v=3.4.1-RC3" sizes="16x16" />
|
|
11
|
+
<link href='css/reset.css?v=3.4.1-RC3' media='screen' rel='stylesheet' type='text/css'/>
|
|
12
|
+
<link href='css/screen.css?v=3.4.1-RC3' media='screen' rel='stylesheet' type='text/css'/>
|
|
13
|
+
<link href='css/onto-theme.css?v=3.4.1-RC3' media='screen' rel='stylesheet' type='text/css'/>
|
|
14
|
+
<link href='css/print.css?v=3.4.1-RC3' media='print' rel='stylesheet' type='text/css'/>
|
|
15
15
|
</head>
|
|
16
16
|
|
|
17
17
|
<body class="swagger-section">
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<br>
|
|
21
21
|
<br>
|
|
22
22
|
<div id="swagger-ui-container-rdf4j" class="swagger-ui-wrap"></div>
|
|
23
|
-
<script src="./swagger-ui-bundle.js?v=3.4.1-
|
|
24
|
-
<script src="./swagger-ui-standalone-preset.js?v=3.4.1-
|
|
25
|
-
<script src="./swagger-initializer.js?v=3.4.1-
|
|
23
|
+
<script src="./swagger-ui-bundle.js?v=3.4.1-RC3" charset="UTF-8"> </script>
|
|
24
|
+
<script src="./swagger-ui-standalone-preset.js?v=3.4.1-RC3" charset="UTF-8"> </script>
|
|
25
|
+
<script src="./swagger-initializer.js?v=3.4.1-RC3" charset="UTF-8"> </script>
|
|
26
26
|
</body>
|
|
27
27
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var index=require("./index-CTK5NoJt.js"),functionUtils=require("./function-utils-WB47AWpR.js"),workbenchApi=require("@ontotext/workbench-api"),translation_service=require("./translation.service-CiDjFMMp.js");const RESPONSIVE_BREAKPOINTS={MD:768},WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR=RESPONSIVE_BREAKPOINTS.MD,ontoLayoutCss=':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.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}',OntoLayout=class{constructor(e){index.registerInstance(this,e),this.authenticationService=workbenchApi.service(workbenchApi.AuthenticationService),this.authorizationService=workbenchApi.service(workbenchApi.AuthorizationService),this.navigationContextService=workbenchApi.service(workbenchApi.NavigationContextService),this.authStorageService=workbenchApi.service(workbenchApi.AuthenticationStorageService),this.runtimeConfigurationContextService=workbenchApi.service(workbenchApi.RuntimeConfigurationContextService),this.eventService=workbenchApi.service(workbenchApi.EventService),this.applicationLifecycleContextService=workbenchApi.service(workbenchApi.ApplicationLifecycleContextService),this.userPreferencesService=workbenchApi.service(workbenchApi.UserPreferencesService),this.userPreferencesContextService=workbenchApi.service(workbenchApi.UserPreferencesContextService),this.fullJwtKey=`${workbenchApi.StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${workbenchApi.StorageKey.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.hideSolrDeprecationBanner=!1,this.subscriptions=new workbenchApi.SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{workbenchApi.service(workbenchApi.LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=functionUtils.debounce(()=>this.windowResizeHandler(),50),workbenchApi.WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.loading=!1
|
|
1
|
+
"use strict";var index=require("./index-CTK5NoJt.js"),functionUtils=require("./function-utils-WB47AWpR.js"),workbenchApi=require("@ontotext/workbench-api"),translation_service=require("./translation.service-CiDjFMMp.js");const RESPONSIVE_BREAKPOINTS={MD:768},WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR=RESPONSIVE_BREAKPOINTS.MD,ontoLayoutCss=':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.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}',OntoLayout=class{constructor(e){index.registerInstance(this,e),this.authenticationService=workbenchApi.service(workbenchApi.AuthenticationService),this.authorizationService=workbenchApi.service(workbenchApi.AuthorizationService),this.navigationContextService=workbenchApi.service(workbenchApi.NavigationContextService),this.authStorageService=workbenchApi.service(workbenchApi.AuthenticationStorageService),this.runtimeConfigurationContextService=workbenchApi.service(workbenchApi.RuntimeConfigurationContextService),this.eventService=workbenchApi.service(workbenchApi.EventService),this.applicationLifecycleContextService=workbenchApi.service(workbenchApi.ApplicationLifecycleContextService),this.userPreferencesService=workbenchApi.service(workbenchApi.UserPreferencesService),this.userPreferencesContextService=workbenchApi.service(workbenchApi.UserPreferencesContextService),this.fullJwtKey=`${workbenchApi.StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${workbenchApi.StorageKey.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.hideSolrDeprecationBanner=!1,this.subscriptions=new workbenchApi.SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{workbenchApi.service(workbenchApi.LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=functionUtils.debounce(()=>this.windowResizeHandler(),50),workbenchApi.WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.subscribeToBeforeMountRouting(),this.loading=!1}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return index.h(index.Host,{key:"d725788812086c22a859239cf0213b145eed9431",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},index.h("div",{key:"8ef3f2ad759570fc0904d59ef64caae32c0592cd",class:"default-slot-wrapper"},index.h("slot",{key:"9652d1ef036b1229a67b67a3a1bf8f64f368b858",name:"default"})),!this.isEmbedded&&index.h("div",{key:"e886db08d8eb43a892fbab8b885f2854559e4fa2",class:"wb-header"},!this.hideSolrDeprecationBanner&&index.h("onto-deprecation-banner",{key:"498ee2955695a951ccc91f21c7e5805dc043d419",class:"onto-deprecation-banner",onCloseBanner:this.onSolrDeprecationBannerClosedHandler()},index.h("span",{key:"04ee5843395b01a85c4a6a09fcb6643a7e953b3b",slot:"header"},index.h("translate-label",{key:"1c0374df8f1d8b34e7761530063dc7ef1c4e3550",labelKey:"deprecation-banner.solr.header"})),index.h("span",{key:"6d8e0027b767520899cb6b316bc187b41be2451e",slot:"content"},index.h("translate-label",{key:"e9d64b010673e47ba9320a51e8110b95c80aff82",labelKey:"deprecation-banner.solr.content"}))),index.h("header",{key:"0e4c29b54a08e646f68b50b3341eb551ee3225b0"},this.showHeader&&index.h("onto-header",{key:"4489d7f5a9a1a2a32b816738ec28d36d015af3fd"}))),!this.isEmbedded&&this.showNavbar&&index.h("nav",{key:"d07b9e718fd8f7e85002dd8e253379052c670716",class:"wb-navbar"},index.h("onto-navbar",{key:"120a1308a10362772b34af1dea04a1afa05e6ac3",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),index.h("slot",{key:"d8da79c245e4ea0ecaaf5616cd806288a3284f5c",name:"main"},index.h("onto-loader",{key:"0fa2163748ab8243f39844e999476f20bd6e5005",loading:this.loading,targetSelector:"main",size:96,messageText:translation_service.TranslationService.translate("common.loading")})),!this.isEmbedded&&index.h("footer",{key:"c1eb78455e1653b98cbea350951b35daa4bf10a0",class:"wb-footer"},index.h("onto-footer",{key:"b02173ed79cbc28e1d784c6c59b34054e0db1da7"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}onSolrDeprecationBannerClosedHandler(){return()=>{this.userPreferencesService.dismissSolrDeprecationBanner(),this.updateShowSolrDeprecationBanner()}}windowResizeHandler(){var e,i,t,n;this.isLowResolution=workbenchApi.WindowService.getWindow().innerWidth<=WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;const a=document.querySelector(".navbar-component");if(a){const s=document.querySelector(".cookie-consent-banner"),o=document.querySelector(".header-component"),r=null!==(i=null===(e=null==o?void 0:o.getBoundingClientRect())||void 0===e?void 0:e.height)&&void 0!==i?i:0,h=null!==(n=null===(t=null==s?void 0:s.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==n?n:0;a.style.height=`calc(100% - ${r}px - ${h}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var i;e&&this.authEvents.includes(e)&&(this.authStorageService.isAuthenticated()?workbenchApi.navigate(null!==(i=this.navigationContextService.getPreviousRoute())&&void 0!==i?i:"./"):workbenchApi.navigate("login"),workbenchApi.WindowService.getWindow().location.reload())}subscribeToSecurityChanges(){const e=workbenchApi.service(workbenchApi.SecurityContextService);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(workbenchApi.EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(workbenchApi.EventName.LOGOUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),workbenchApi.navigate("login")}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var i;this.isEmbedded=null!==(i=null==e?void 0:e.isEmbedded)&&void 0!==i&&i}))}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=workbenchApi.WindowService.getPluginRegistry().get(workbenchApi.MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,i,t;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const n=e=>{var i;e.shouldShow=this.shouldShowMenu(e.role),(null===(i=e.children)||void 0===i?void 0:i.length)&&e.children.forEach(n)};null===(t=null===(i=this.navbarRef)||void 0===i?void 0:i.menuItems)||void 0===t||t.forEach(e=>{e.items.forEach(n)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(workbenchApi.EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),setTimeout(()=>{this.loading=!1})}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.applicationLifecycleContextService.onNavigationBeforeMountRouting(e=>{e&&(this.loading=!0)}))}subscribeToUserPreferencesChange(){this.subscriptions.add(this.userPreferencesContextService.onUserPreferencesChanged(()=>{this.updateShowSolrDeprecationBanner()}))}updateShowSolrDeprecationBanner(){this.hideSolrDeprecationBanner=this.userPreferencesService.isSolrDeprecationBannerDismissed()}get hostElement(){return index.getElement(this)}};OntoLayout.style=ontoLayoutCss,exports.onto_layout=OntoLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h,Host}from"@stencil/core";import{debounce}from"../../utils/function-utils";import{WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR}from"../../models/constants";import{ApplicationLifecycleContextService,AuthenticationService,AuthenticationStorageService,AuthorizationService,EventName,EventService,LocalStorageSubscriptionHandlerService,navigate,NavigationContextService,RuntimeConfigurationContextService,SecurityContextService,service,StorageKey,SubscriptionList,WindowService,MainMenuExtensionPoint,UserPreferencesService,UserPreferencesContextService}from"../../../../../api/dist/ontotext-workbench-api";import{TranslationService}from"../../services/translation.service";export class OntoLayout{constructor(){this.authenticationService=service(AuthenticationService),this.authorizationService=service(AuthorizationService),this.navigationContextService=service(NavigationContextService),this.authStorageService=service(AuthenticationStorageService),this.runtimeConfigurationContextService=service(RuntimeConfigurationContextService),this.eventService=service(EventService),this.applicationLifecycleContextService=service(ApplicationLifecycleContextService),this.userPreferencesService=service(UserPreferencesService),this.userPreferencesContextService=service(UserPreferencesContextService),this.fullJwtKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${StorageKey.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.hideSolrDeprecationBanner=!1,this.subscriptions=new SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{service(LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=debounce(()=>this.windowResizeHandler(),50),WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.loading=!1
|
|
1
|
+
import{h,Host}from"@stencil/core";import{debounce}from"../../utils/function-utils";import{WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR}from"../../models/constants";import{ApplicationLifecycleContextService,AuthenticationService,AuthenticationStorageService,AuthorizationService,EventName,EventService,LocalStorageSubscriptionHandlerService,navigate,NavigationContextService,RuntimeConfigurationContextService,SecurityContextService,service,StorageKey,SubscriptionList,WindowService,MainMenuExtensionPoint,UserPreferencesService,UserPreferencesContextService}from"../../../../../api/dist/ontotext-workbench-api";import{TranslationService}from"../../services/translation.service";export class OntoLayout{constructor(){this.authenticationService=service(AuthenticationService),this.authorizationService=service(AuthorizationService),this.navigationContextService=service(NavigationContextService),this.authStorageService=service(AuthenticationStorageService),this.runtimeConfigurationContextService=service(RuntimeConfigurationContextService),this.eventService=service(EventService),this.applicationLifecycleContextService=service(ApplicationLifecycleContextService),this.userPreferencesService=service(UserPreferencesService),this.userPreferencesContextService=service(UserPreferencesContextService),this.fullJwtKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${StorageKey.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.hideSolrDeprecationBanner=!1,this.subscriptions=new SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{service(LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=debounce(()=>this.windowResizeHandler(),50),WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.subscribeToBeforeMountRouting(),this.loading=!1}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h(Host,{key:"d725788812086c22a859239cf0213b145eed9431",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},h("div",{key:"8ef3f2ad759570fc0904d59ef64caae32c0592cd",class:"default-slot-wrapper"},h("slot",{key:"9652d1ef036b1229a67b67a3a1bf8f64f368b858",name:"default"})),!this.isEmbedded&&h("div",{key:"e886db08d8eb43a892fbab8b885f2854559e4fa2",class:"wb-header"},!this.hideSolrDeprecationBanner&&h("onto-deprecation-banner",{key:"498ee2955695a951ccc91f21c7e5805dc043d419",class:"onto-deprecation-banner",onCloseBanner:this.onSolrDeprecationBannerClosedHandler()},h("span",{key:"04ee5843395b01a85c4a6a09fcb6643a7e953b3b",slot:"header"},h("translate-label",{key:"1c0374df8f1d8b34e7761530063dc7ef1c4e3550",labelKey:"deprecation-banner.solr.header"})),h("span",{key:"6d8e0027b767520899cb6b316bc187b41be2451e",slot:"content"},h("translate-label",{key:"e9d64b010673e47ba9320a51e8110b95c80aff82",labelKey:"deprecation-banner.solr.content"}))),h("header",{key:"0e4c29b54a08e646f68b50b3341eb551ee3225b0"},this.showHeader&&h("onto-header",{key:"4489d7f5a9a1a2a32b816738ec28d36d015af3fd"}))),!this.isEmbedded&&this.showNavbar&&h("nav",{key:"d07b9e718fd8f7e85002dd8e253379052c670716",class:"wb-navbar"},h("onto-navbar",{key:"120a1308a10362772b34af1dea04a1afa05e6ac3",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),h("slot",{key:"d8da79c245e4ea0ecaaf5616cd806288a3284f5c",name:"main"},h("onto-loader",{key:"0fa2163748ab8243f39844e999476f20bd6e5005",loading:this.loading,targetSelector:"main",size:96,messageText:TranslationService.translate("common.loading")})),!this.isEmbedded&&h("footer",{key:"c1eb78455e1653b98cbea350951b35daa4bf10a0",class:"wb-footer"},h("onto-footer",{key:"b02173ed79cbc28e1d784c6c59b34054e0db1da7"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}onSolrDeprecationBannerClosedHandler(){return()=>{this.userPreferencesService.dismissSolrDeprecationBanner(),this.updateShowSolrDeprecationBanner()}}windowResizeHandler(){var e,i,t,s;this.isLowResolution=WindowService.getWindow().innerWidth<=WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;const a=document.querySelector(".navbar-component");if(a){const n=document.querySelector(".cookie-consent-banner"),r=document.querySelector(".header-component"),o=null!==(i=null===(e=null==r?void 0:r.getBoundingClientRect())||void 0===e?void 0:e.height)&&void 0!==i?i:0,c=null!==(s=null===(t=null==n?void 0:n.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==s?s:0;a.style.height=`calc(100% - ${o}px - ${c}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var i;if(e&&this.authEvents.includes(e)){const e=this.authStorageService.isAuthenticated();navigate(e?null!==(i=this.navigationContextService.getPreviousRoute())&&void 0!==i?i:"./":"login"),WindowService.getWindow().location.reload()}}subscribeToSecurityChanges(){const e=service(SecurityContextService);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(EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(EventName.LOGOUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),navigate("login")}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var i;this.isEmbedded=null!==(i=null==e?void 0:e.isEmbedded)&&void 0!==i&&i}))}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=WindowService.getPluginRegistry().get(MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,i,t;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const s=e=>{var i;e.shouldShow=this.shouldShowMenu(e.role),(null===(i=e.children)||void 0===i?void 0:i.length)&&e.children.forEach(s)};null===(t=null===(i=this.navbarRef)||void 0===i?void 0:i.menuItems)||void 0===t||t.forEach(e=>{e.items.forEach(s)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),setTimeout(()=>{this.loading=!1})}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.applicationLifecycleContextService.onNavigationBeforeMountRouting(e=>{e&&(this.loading=!0)}))}subscribeToUserPreferencesChange(){this.subscriptions.add(this.userPreferencesContextService.onUserPreferencesChanged(()=>{this.updateShowSolrDeprecationBanner()}))}updateShowSolrDeprecationBanner(){this.hideSolrDeprecationBanner=this.userPreferencesService.isSolrDeprecationBannerDismissed()}static get is(){return"onto-layout"}static get originalStyleUrls(){return{$:["onto-layout.scss"]}}static get styleUrls(){return{$:["onto-layout.css"]}}static get states(){return{authenticatedUser:{},authToken:{},securityConfig:{},isLowResolution:{},showHeader:{},showNavbar:{},isEmbedded:{},loading:{},hideSolrDeprecationBanner:{}}}static get elementRef(){return"hostElement"}static get listeners(){return[{name:"navbarToggled",method:"onNavbarToggled",target:void 0,capture:!1,passive:!1},{name:"resize",method:"onResize",target:"window",capture:!1,passive:!0}]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,a as Host,d as getElement}from"./index-BntG-4Sv.js";import{d as debounce}from"./function-utils-D1ZpXQQS.js";import{service,AuthenticationService,AuthorizationService,NavigationContextService,AuthenticationStorageService,RuntimeConfigurationContextService,EventService,ApplicationLifecycleContextService,UserPreferencesService,UserPreferencesContextService,StorageKey,SubscriptionList,LocalStorageSubscriptionHandlerService,WindowService,navigate,SecurityContextService,EventName,MainMenuExtensionPoint}from"@ontotext/workbench-api";import{T as TranslationService}from"./translation.service-CyWR_ReZ.js";const RESPONSIVE_BREAKPOINTS={MD:768},WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR=RESPONSIVE_BREAKPOINTS.MD,ontoLayoutCss=':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.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}',OntoLayout=class{constructor(e){registerInstance(this,e),this.authenticationService=service(AuthenticationService),this.authorizationService=service(AuthorizationService),this.navigationContextService=service(NavigationContextService),this.authStorageService=service(AuthenticationStorageService),this.runtimeConfigurationContextService=service(RuntimeConfigurationContextService),this.eventService=service(EventService),this.applicationLifecycleContextService=service(ApplicationLifecycleContextService),this.userPreferencesService=service(UserPreferencesService),this.userPreferencesContextService=service(UserPreferencesContextService),this.fullJwtKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${StorageKey.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.hideSolrDeprecationBanner=!1,this.subscriptions=new SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{service(LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=debounce(()=>this.windowResizeHandler(),50),WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.loading=!1
|
|
1
|
+
import{r as registerInstance,h,a as Host,d as getElement}from"./index-BntG-4Sv.js";import{d as debounce}from"./function-utils-D1ZpXQQS.js";import{service,AuthenticationService,AuthorizationService,NavigationContextService,AuthenticationStorageService,RuntimeConfigurationContextService,EventService,ApplicationLifecycleContextService,UserPreferencesService,UserPreferencesContextService,StorageKey,SubscriptionList,LocalStorageSubscriptionHandlerService,WindowService,navigate,SecurityContextService,EventName,MainMenuExtensionPoint}from"@ontotext/workbench-api";import{T as TranslationService}from"./translation.service-CyWR_ReZ.js";const RESPONSIVE_BREAKPOINTS={MD:768},WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR=RESPONSIVE_BREAKPOINTS.MD,ontoLayoutCss=':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.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}',OntoLayout=class{constructor(e){registerInstance(this,e),this.authenticationService=service(AuthenticationService),this.authorizationService=service(AuthorizationService),this.navigationContextService=service(NavigationContextService),this.authStorageService=service(AuthenticationStorageService),this.runtimeConfigurationContextService=service(RuntimeConfigurationContextService),this.eventService=service(EventService),this.applicationLifecycleContextService=service(ApplicationLifecycleContextService),this.userPreferencesService=service(UserPreferencesService),this.userPreferencesContextService=service(UserPreferencesContextService),this.fullJwtKey=`${StorageKey.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${StorageKey.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.hideSolrDeprecationBanner=!1,this.subscriptions=new SubscriptionList,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{service(LocalStorageSubscriptionHandlerService).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=debounce(()=>this.windowResizeHandler(),50),WindowService.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.subscribeToBeforeMountRouting(),this.loading=!1}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h(Host,{key:"d725788812086c22a859239cf0213b145eed9431",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},h("div",{key:"8ef3f2ad759570fc0904d59ef64caae32c0592cd",class:"default-slot-wrapper"},h("slot",{key:"9652d1ef036b1229a67b67a3a1bf8f64f368b858",name:"default"})),!this.isEmbedded&&h("div",{key:"e886db08d8eb43a892fbab8b885f2854559e4fa2",class:"wb-header"},!this.hideSolrDeprecationBanner&&h("onto-deprecation-banner",{key:"498ee2955695a951ccc91f21c7e5805dc043d419",class:"onto-deprecation-banner",onCloseBanner:this.onSolrDeprecationBannerClosedHandler()},h("span",{key:"04ee5843395b01a85c4a6a09fcb6643a7e953b3b",slot:"header"},h("translate-label",{key:"1c0374df8f1d8b34e7761530063dc7ef1c4e3550",labelKey:"deprecation-banner.solr.header"})),h("span",{key:"6d8e0027b767520899cb6b316bc187b41be2451e",slot:"content"},h("translate-label",{key:"e9d64b010673e47ba9320a51e8110b95c80aff82",labelKey:"deprecation-banner.solr.content"}))),h("header",{key:"0e4c29b54a08e646f68b50b3341eb551ee3225b0"},this.showHeader&&h("onto-header",{key:"4489d7f5a9a1a2a32b816738ec28d36d015af3fd"}))),!this.isEmbedded&&this.showNavbar&&h("nav",{key:"d07b9e718fd8f7e85002dd8e253379052c670716",class:"wb-navbar"},h("onto-navbar",{key:"120a1308a10362772b34af1dea04a1afa05e6ac3",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),h("slot",{key:"d8da79c245e4ea0ecaaf5616cd806288a3284f5c",name:"main"},h("onto-loader",{key:"0fa2163748ab8243f39844e999476f20bd6e5005",loading:this.loading,targetSelector:"main",size:96,messageText:TranslationService.translate("common.loading")})),!this.isEmbedded&&h("footer",{key:"c1eb78455e1653b98cbea350951b35daa4bf10a0",class:"wb-footer"},h("onto-footer",{key:"b02173ed79cbc28e1d784c6c59b34054e0db1da7"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}onSolrDeprecationBannerClosedHandler(){return()=>{this.userPreferencesService.dismissSolrDeprecationBanner(),this.updateShowSolrDeprecationBanner()}}windowResizeHandler(){var e,i,t,a;this.isLowResolution=WindowService.getWindow().innerWidth<=WINDOW_WIDTH_FOR_COLLAPSED_NAVBAR;const n=document.querySelector(".navbar-component");if(n){const s=document.querySelector(".cookie-consent-banner"),o=document.querySelector(".header-component"),r=null!==(i=null===(e=null==o?void 0:o.getBoundingClientRect())||void 0===e?void 0:e.height)&&void 0!==i?i:0,c=null!==(a=null===(t=null==s?void 0:s.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==a?a:0;n.style.height=`calc(100% - ${r}px - ${c}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var i;if(e&&this.authEvents.includes(e)){const e=this.authStorageService.isAuthenticated();navigate(e?null!==(i=this.navigationContextService.getPreviousRoute())&&void 0!==i?i:"./":"login"),WindowService.getWindow().location.reload()}}subscribeToSecurityChanges(){const e=service(SecurityContextService);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(EventName.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(EventName.LOGOUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),navigate("login")}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var i;this.isEmbedded=null!==(i=null==e?void 0:e.isEmbedded)&&void 0!==i&&i}))}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=WindowService.getPluginRegistry().get(MainMenuExtensionPoint.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,i,t;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const a=e=>{var i;e.shouldShow=this.shouldShowMenu(e.role),(null===(i=e.children)||void 0===i?void 0:i.length)&&e.children.forEach(a)};null===(t=null===(i=this.navbarRef)||void 0===i?void 0:i.menuItems)||void 0===t||t.forEach(e=>{e.items.forEach(a)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(EventName.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),setTimeout(()=>{this.loading=!1})}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.applicationLifecycleContextService.onNavigationBeforeMountRouting(e=>{e&&(this.loading=!0)}))}subscribeToUserPreferencesChange(){this.subscriptions.add(this.userPreferencesContextService.onUserPreferencesChanged(()=>{this.updateShowSolrDeprecationBanner()}))}updateShowSolrDeprecationBanner(){this.hideSolrDeprecationBanner=this.userPreferencesService.isSolrDeprecationBannerDismissed()}get hostElement(){return getElement(this)}};OntoLayout.style=ontoLayoutCss;export{OntoLayout as onto_layout};
|
package/dist/shared-components/shared-components/{p-9eaa9582.entry.js → p-eb30d309.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,a as i,d as a}from"./p-BntG-4Sv.js";import{d as s}from"./p-D1ZpXQQS.js";import{service as o,AuthenticationService as n,AuthorizationService as h,NavigationContextService as d,AuthenticationStorageService as r,RuntimeConfigurationContextService as l,EventService as b,ApplicationLifecycleContextService as c,UserPreferencesService as u,UserPreferencesContextService as f,StorageKey as m,SubscriptionList as p,LocalStorageSubscriptionHandlerService as v,WindowService as y,navigate as g,SecurityContextService as w,EventName as k,MainMenuExtensionPoint as x}from"@ontotext/workbench-api";import{T as C}from"./p-CyWR_ReZ.js";const T=class{constructor(e){t(this,e),this.authenticationService=o(n),this.authorizationService=o(h),this.navigationContextService=o(d),this.authStorageService=o(r),this.runtimeConfigurationContextService=o(l),this.eventService=o(b),this.applicationLifecycleContextService=o(c),this.userPreferencesService=o(u),this.userPreferencesContextService=o(f),this.fullJwtKey=`${m.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${m.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.hideSolrDeprecationBanner=!1,this.subscriptions=new p,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{o(v).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=s(()=>this.windowResizeHandler(),50),y.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.loading=!1
|
|
1
|
+
import{r as t,h as e,a as i,d as a}from"./p-BntG-4Sv.js";import{d as s}from"./p-D1ZpXQQS.js";import{service as o,AuthenticationService as n,AuthorizationService as h,NavigationContextService as d,AuthenticationStorageService as r,RuntimeConfigurationContextService as l,EventService as b,ApplicationLifecycleContextService as c,UserPreferencesService as u,UserPreferencesContextService as f,StorageKey as m,SubscriptionList as p,LocalStorageSubscriptionHandlerService as v,WindowService as y,navigate as g,SecurityContextService as w,EventName as k,MainMenuExtensionPoint as x}from"@ontotext/workbench-api";import{T as C}from"./p-CyWR_ReZ.js";const T=class{constructor(e){t(this,e),this.authenticationService=o(n),this.authorizationService=o(h),this.navigationContextService=o(d),this.authStorageService=o(r),this.runtimeConfigurationContextService=o(l),this.eventService=o(b),this.applicationLifecycleContextService=o(c),this.userPreferencesService=o(u),this.userPreferencesContextService=o(f),this.fullJwtKey=`${m.GLOBAL_NAMESPACE}.${this.authStorageService.NAMESPACE}.${this.authStorageService.jwtKey}`,this.fullAuthenticatedKey=`${m.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.hideSolrDeprecationBanner=!1,this.subscriptions=new p,this.isNavbarCollapsed=!1,this.handleStorageChange=e=>{o(v).handleStorageChange(e),this.handleAuthChange(e.key)},this.windowResizeObserver=s(()=>this.windowResizeHandler(),50),y.getWindow().addEventListener("storage",this.handleStorageChange)}componentDidLoad(){this.updateShowSolrDeprecationBanner(),this.windowResizeHandler()}connectedCallback(){this.subscribeToSecurityChanges(),this.updateVisibility(),this.subscribeToNavigationEnd(),this.subscribeToRuntimeConfigurationChanges(),this.subscribeToUserPreferencesChange(),this.subscribeToBeforeMountRouting(),this.loading=!1}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return e(i,{key:"d725788812086c22a859239cf0213b145eed9431",class:{"wb-layout":!0,"is-embedded":this.isEmbedded,"hide-navbar":!this.showNavbar,loading:this.loading}},e("div",{key:"8ef3f2ad759570fc0904d59ef64caae32c0592cd",class:"default-slot-wrapper"},e("slot",{key:"9652d1ef036b1229a67b67a3a1bf8f64f368b858",name:"default"})),!this.isEmbedded&&e("div",{key:"e886db08d8eb43a892fbab8b885f2854559e4fa2",class:"wb-header"},!this.hideSolrDeprecationBanner&&e("onto-deprecation-banner",{key:"498ee2955695a951ccc91f21c7e5805dc043d419",class:"onto-deprecation-banner",onCloseBanner:this.onSolrDeprecationBannerClosedHandler()},e("span",{key:"04ee5843395b01a85c4a6a09fcb6643a7e953b3b",slot:"header"},e("translate-label",{key:"1c0374df8f1d8b34e7761530063dc7ef1c4e3550",labelKey:"deprecation-banner.solr.header"})),e("span",{key:"6d8e0027b767520899cb6b316bc187b41be2451e",slot:"content"},e("translate-label",{key:"e9d64b010673e47ba9320a51e8110b95c80aff82",labelKey:"deprecation-banner.solr.content"}))),e("header",{key:"0e4c29b54a08e646f68b50b3341eb551ee3225b0"},this.showHeader&&e("onto-header",{key:"4489d7f5a9a1a2a32b816738ec28d36d015af3fd"}))),!this.isEmbedded&&this.showNavbar&&e("nav",{key:"d07b9e718fd8f7e85002dd8e253379052c670716",class:"wb-navbar"},e("onto-navbar",{key:"120a1308a10362772b34af1dea04a1afa05e6ac3",ref:this.assignNavbarRef(),"navbar-collapsed":this.isLowResolution})),e("slot",{key:"d8da79c245e4ea0ecaaf5616cd806288a3284f5c",name:"main"},e("onto-loader",{key:"0fa2163748ab8243f39844e999476f20bd6e5005",loading:this.loading,targetSelector:"main",size:96,messageText:C.translate("common.loading")})),!this.isEmbedded&&e("footer",{key:"c1eb78455e1653b98cbea350951b35daa4bf10a0",class:"wb-footer"},e("onto-footer",{key:"b02173ed79cbc28e1d784c6c59b34054e0db1da7"})))}onNavbarToggled(e){this.isNavbarCollapsed=e.detail.payload,this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}onResize(){this.windowResizeObserver()}onSolrDeprecationBannerClosedHandler(){return()=>{this.userPreferencesService.dismissSolrDeprecationBanner(),this.updateShowSolrDeprecationBanner()}}windowResizeHandler(){var e,i,t,a;this.isLowResolution=y.getWindow().innerWidth<=768;const s=document.querySelector(".navbar-component");if(s){const n=document.querySelector(".cookie-consent-banner"),o=document.querySelector(".header-component"),r=null!==(i=null===(e=null==o?void 0:o.getBoundingClientRect())||void 0===e?void 0:e.height)&&void 0!==i?i:0,d=null!==(a=null===(t=null==n?void 0:n.getBoundingClientRect())||void 0===t?void 0:t.height)&&void 0!==a?a:0;s.style.height=`calc(100% - ${r}px - ${d}px)`}this.isLowResolution||this.isNavbarCollapsed?this.hostElement.classList.add("expanded"):this.hostElement.classList.remove("expanded")}handleAuthChange(e){var i;if(e&&this.authEvents.includes(e)){const e=this.authStorageService.isAuthenticated();g(e?null!==(i=this.navigationContextService.getPreviousRoute())&&void 0!==i?i:"./":"login"),y.getWindow().location.reload()}}subscribeToSecurityChanges(){const e=o(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(k.LOGIN,()=>{this.setNavbarItemVisibility(),this.updateVisibility()})),this.subscriptions.add(this.eventService.subscribe(k.LOGOUT,()=>{this.setNavbarItemVisibility(),this.updateVisibility(),g("login")}))}subscribeToRuntimeConfigurationChanges(){this.subscriptions.add(this.runtimeConfigurationContextService.onRuntimeConfigurationChanged(e=>{var i;this.isEmbedded=null!==(i=null==e?void 0:e.isEmbedded)&&void 0!==i&&i}))}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=y.getPluginRegistry().get(x.NAME),this.setNavbarItemVisibility())}}setNavbarItemVisibility(){var e,i,t;if(!(null===(e=this.navbarRef)||void 0===e?void 0:e.menuItems))return;const a=e=>{var i;e.shouldShow=this.shouldShowMenu(e.role),(null===(i=e.children)||void 0===i?void 0:i.length)&&e.children.forEach(a)};null===(t=null===(i=this.navbarRef)||void 0===i?void 0:i.menuItems)||void 0===t||t.forEach(e=>{e.items.forEach(a)}),this.navbarRef.menuItems=[...this.navbarRef.menuItems]}subscribeToNavigationEnd(){this.subscriptions.add(this.eventService.subscribe(k.NAVIGATION_END,e=>{this.navigationContextService.updatePreviousRoute(e.oldUrl),setTimeout(()=>{this.loading=!1})}))}subscribeToBeforeMountRouting(){this.subscriptions.add(this.applicationLifecycleContextService.onNavigationBeforeMountRouting(e=>{e&&(this.loading=!0)}))}subscribeToUserPreferencesChange(){this.subscriptions.add(this.userPreferencesContextService.onUserPreferencesChanged(()=>{this.updateShowSolrDeprecationBanner()}))}updateShowSolrDeprecationBanner(){this.hideSolrDeprecationBanner=this.userPreferencesService.isSolrDeprecationBannerDismissed()}get hostElement(){return a(this)}};T.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.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}';export{T as onto_layout};
|