ontotext-yasgui-web-component 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/README.md +20 -0
  2. package/dist/cjs/confirmation-dialog_10.cjs.entry.js +116 -17
  3. package/dist/collection/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.css +11 -0
  4. package/dist/collection/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.js +7 -2
  5. package/dist/collection/components/yasgui/yasgui-script.js +1 -1
  6. package/dist/collection/models/keyboard-shortcut-description.js +1 -0
  7. package/dist/collection/services/keyboard-shortcut-service.js +11 -0
  8. package/dist/collection/services/tooltip-service.js +0 -1
  9. package/dist/collection/services/yasqe/yasqe-service.js +81 -12
  10. package/dist/components/ontotext-yasgui.js +102 -17
  11. package/dist/components/translation.service.js +14 -0
  12. package/dist/esm/confirmation-dialog_10.entry.js +116 -17
  13. package/dist/ontotext-yasgui-web-component/ontotext-yasgui-web-component.esm.js +1 -1
  14. package/dist/ontotext-yasgui-web-component/{p-efec0333.entry.js → p-a4e48ac5.entry.js} +3 -3
  15. package/dist/types/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.d.ts +1 -0
  16. package/dist/types/home/ubuntu/workspace/PRO/GraphDB UI Jobs/ontotext-yasgui/ontotext-yasgui-release/ontotext-yasgui-web-component/.stencil/Yasgui/packages/yasqe/grammar/tokenizer.d.ts +4 -1
  17. package/dist/types/home/ubuntu/workspace/PRO/GraphDB UI Jobs/ontotext-yasgui/ontotext-yasgui-release/ontotext-yasgui-web-component/.stencil/Yasgui/packages/yasqe/src/CodeMirror.d.ts +1 -0
  18. package/dist/types/home/ubuntu/workspace/PRO/GraphDB UI Jobs/ontotext-yasgui/ontotext-yasgui-release/ontotext-yasgui-web-component/.stencil/Yasgui/packages/yasqe/src/index.d.ts +2 -0
  19. package/dist/types/models/keyboard-shortcut-description.d.ts +2 -1
  20. package/dist/types/models/yasgui/yasqe.d.ts +2 -0
  21. package/dist/types/services/keyboard-shortcut-service.d.ts +1 -0
  22. package/dist/types/services/yasqe/yasqe-service.d.ts +20 -0
  23. package/package.json +1 -1
@@ -2791,6 +2791,10 @@ span.CodeMirror-selectedtext {
2791
2791
  border: 2px dotted #888;
2792
2792
  }
2793
2793
 
2794
+ .yasgui .tabsList .tabs {
2795
+ display: contents;
2796
+ }
2797
+
2794
2798
  .yasgui .tabsList a {
2795
2799
  cursor: pointer;
2796
2800
  display: flex;
@@ -3887,6 +3891,9 @@ span.CodeMirror-selectedtext {
3887
3891
  padding: 0.5em 1em;
3888
3892
  transform: none;
3889
3893
  }
3894
+ .yasgui-host-element .yasgui .tabsList .addTab:focus-visible {
3895
+ outline-offset: calc(-1 * var(--yasgui-focus-ring-width, 2px));
3896
+ }
3890
3897
  .yasgui-host-element .yasgui .tabsList .addTab:hover {
3891
3898
  color: #d0460d;
3892
3899
  }
@@ -4283,6 +4290,10 @@ span.CodeMirror-selectedtext {
4283
4290
  .yasgui-host-element button, .yasgui-host-element button:focus {
4284
4291
  outline: none;
4285
4292
  }
4293
+ .yasgui-host-element button:focus-visible, .yasgui-host-element a[href]:focus-visible, .yasgui-host-element select:focus-visible, .yasgui-host-element input[type=checkbox]:focus-visible, .yasgui-host-element input[type=radio]:focus-visible, .yasgui-host-element [tabindex]:not([tabindex="-1"]):not(textarea):focus-visible {
4294
+ outline: var(--yasgui-focus-ring-width, 2px) var(--yasgui-focus-ring-style, solid) var(--yasgui-focus-ring-color, #000042) !important;
4295
+ outline-offset: var(--yasgui-focus-ring-offset, 2px);
4296
+ }
4286
4297
  .yasgui-host-element .explainPlanQuery {
4287
4298
  white-space: pre-wrap;
4288
4299
  }
@@ -78,6 +78,7 @@ export class OntotextYasguiWebComponent {
78
78
  this.yasguiBuilder = this.serviceFactory.get(YasguiBuilder);
79
79
  this.ontotextYasguiService = this.serviceFactory.get(OntotextYasguiService);
80
80
  this.notificationMessageService = this.serviceFactory.get(NotificationMessageService);
81
+ this.yasqeService = this.serviceFactory.get(YasqeService);
81
82
  this.initComponentTranslationHandlers();
82
83
  }
83
84
  configurationChanged(newConfig) {
@@ -723,8 +724,9 @@ export class OntotextYasguiWebComponent {
723
724
  }
724
725
  registerEventHandlers(yasguiConfiguration) {
725
726
  let hint = undefined;
726
- this.ontotextYasgui.getInstance().on('yasqeReady', (tab) => {
727
+ this.ontotextYasgui.getInstance().on('yasqeReady', (tab, yasqe) => {
727
728
  this.ontotextYasgui.applyTheme(tab.getId());
729
+ this.yasqeService.makeEditorKeyboardAccessible(yasqe);
728
730
  });
729
731
  this.ontotextYasgui.getInstance().on('tabAdd', (_yasgui, _tab) => {
730
732
  VisualisationUtils.changeRenderMode(this.hostElement, this.renderingMode, this.isVerticalOrientation);
@@ -819,6 +821,9 @@ export class OntotextYasguiWebComponent {
819
821
  YasrService.registerPlugin(GeoPlugin.PLUGIN_NAME, GeoPlugin);
820
822
  this.ontotextYasgui = this.yasguiBuilder.build(this.hostElement, yasguiConfiguration);
821
823
  this.ontotextYasgui.applyTheme();
824
+ // * YASGUI reports the editor of the first tab ready before the event handlers are registered, so make it
825
+ // keyboard accessible here. The editors of the other tabs are handled on 'yasqeReady'.
826
+ this.yasqeService.makeEditorKeyboardAccessible(this.ontotextYasgui.getYasqe());
822
827
  this.registerEventHandlers(yasguiConfiguration);
823
828
  this.afterInit();
824
829
  const editorHeight = this.ontotextYasgui.getEditorHeight(this.ontotextYasgui.getTabId());
@@ -852,7 +857,7 @@ export class OntotextYasguiWebComponent {
852
857
  }
853
858
  render() {
854
859
  const classList = `yasgui-host-element ${this.getOrientationMode()} ${this.getRenderMode()}`;
855
- return (h(Host, { class: classList }, h("div", { class: "yasgui-toolbar hidden" }, h("button", { class: "yasgui-btn btn-mode-yasqe", onClick: () => this.changeRenderingMode(RenderingMode.YASQE) }, this.yasqeBtnLabel), h("button", { class: "yasgui-btn btn-mode-yasgui", onClick: () => this.changeRenderingMode(RenderingMode.YASGUI) }, this.yasguiBtnLabel), h("button", { class: "yasgui-btn btn-mode-yasr", onClick: () => this.changeRenderingMode(RenderingMode.YASR) }, this.yasrBtnLabel), h("yasgui-tooltip", { "yasgui-data-tooltip": this.resolveOrientationButtonTooltip(), placement: "left", "show-on-click": true }, h("button", { class: "btn-orientation icon-columns red", onClick: () => this.changeOrientation() }, "\u00A0"))), h("div", { class: "ontotext-yasgui" }), this.showSaveQueryDialog &&
860
+ return (h(Host, { class: classList }, h("div", { class: "yasgui-toolbar hidden" }, h("button", { class: "yasgui-btn btn-mode-yasqe", onClick: () => this.changeRenderingMode(RenderingMode.YASQE) }, this.yasqeBtnLabel), h("button", { class: "yasgui-btn btn-mode-yasgui", onClick: () => this.changeRenderingMode(RenderingMode.YASGUI) }, this.yasguiBtnLabel), h("button", { class: "yasgui-btn btn-mode-yasr", onClick: () => this.changeRenderingMode(RenderingMode.YASR) }, this.yasrBtnLabel), h("yasgui-tooltip", { "yasgui-data-tooltip": this.resolveOrientationButtonTooltip(), placement: "left", "show-on-click": true }, h("button", { class: "btn-orientation icon-columns red", "aria-label": this.resolveOrientationButtonTooltip(), onClick: () => this.changeOrientation() }, "\u00A0"))), h("div", { class: "ontotext-yasgui" }), this.showSaveQueryDialog &&
856
861
  h("save-query-dialog", { data: this.getSaveQueryData(), serviceFactory: this.serviceFactory }, "\u00A0"), this.showSavedQueriesPopup &&
857
862
  h("saved-queries-popup", { config: this.getSaveQueriesData(), serviceFactory: this.serviceFactory }), this.showConfirmationDialog &&
858
863
  h("confirmation-dialog", { translationService: this.translationService, config: this.getDeleteQueryConfirmationConfig() }), this.showShareQueryDialog &&