ontotext-yasgui-web-component 1.0.8 → 1.0.9
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/cjs/confirmation-dialog_10.cjs.entry.js +10 -3
- package/dist/collection/models/ontotext-yasgui.js +5 -3
- package/dist/collection/services/yasr/toolbar/download-as-yasr-toolbar-plugin.js +3 -0
- package/dist/components/ontotext-yasgui.js +8 -3
- package/dist/components/translation.service.js +2 -0
- package/dist/esm/confirmation-dialog_10.entry.js +10 -3
- package/dist/ontotext-yasgui-web-component/ontotext-yasgui-web-component.esm.js +1 -1
- package/dist/ontotext-yasgui-web-component/p-d3f23e03.entry.js +1 -0
- package/package.json +1 -1
- package/dist/ontotext-yasgui-web-component/p-25a50b8c.entry.js +0 -1
|
@@ -180,6 +180,7 @@ const en = {
|
|
|
180
180
|
"yasr.plugin_control.download_as.raw_response.dropdown.label": "Get HTML snippet to embed results on a web page",
|
|
181
181
|
"yasr.plugin_control.download_as.sparql_results_json.label": "JSON",
|
|
182
182
|
"yasr.plugin_control.download_as.sparql_results_json_ld.label": "JSON-LD",
|
|
183
|
+
"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label": "NDJSON-LD",
|
|
183
184
|
"yasr.plugin_control.download_as.x_sparqlstar_results_json.label": "JSON*",
|
|
184
185
|
"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label": "RDF-XML",
|
|
185
186
|
"yasr.plugin_control.download_as.sparql_results_xml.label": "XML",
|
|
@@ -384,6 +385,7 @@ const fr = {
|
|
|
384
385
|
"yasr.plugin_control.download_as.raw_response.dropdown.label": "Obtenir un extrait HTML pour intégrer les résultats dans une page web",
|
|
385
386
|
"yasr.plugin_control.download_as.sparql_results_json.label": "JSON",
|
|
386
387
|
"yasr.plugin_control.download_as.sparql_results_json_ld.label": "JSON-LD",
|
|
388
|
+
"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label": "NDJSON-LD",
|
|
387
389
|
"yasr.plugin_control.download_as.x_sparqlstar_results_json.label": "JSON*",
|
|
388
390
|
"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label": "RDF-XML",
|
|
389
391
|
"yasr.plugin_control.download_as.sparql_results_xml.label": "XML",
|
|
@@ -825,19 +827,21 @@ class OntotextYasgui {
|
|
|
825
827
|
return this.getInstance().getTab().getQuery();
|
|
826
828
|
}
|
|
827
829
|
openTab(queryModel) {
|
|
828
|
-
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel.queryName, queryModel.query);
|
|
830
|
+
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
829
831
|
if (existingTab) {
|
|
830
832
|
this.getInstance().selectTabId(existingTab.getId());
|
|
831
833
|
}
|
|
832
834
|
else {
|
|
833
|
-
this.createNewTab(queryModel.queryName, queryModel.query);
|
|
835
|
+
this.createNewTab(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
834
836
|
}
|
|
835
837
|
}
|
|
836
838
|
createNewTab(queryName, query) {
|
|
837
839
|
const tabInstance = this.getInstance().addTab(true, {
|
|
838
840
|
name: queryName
|
|
839
841
|
});
|
|
840
|
-
|
|
842
|
+
if (query) {
|
|
843
|
+
tabInstance.setQuery(query);
|
|
844
|
+
}
|
|
841
845
|
}
|
|
842
846
|
destroy() {
|
|
843
847
|
if (this.yasgui) {
|
|
@@ -2128,6 +2132,9 @@ class ExtendedTableDownloadAsConfiguration extends DownloadAsPluginConfiguration
|
|
|
2128
2132
|
}, {
|
|
2129
2133
|
labelKey: "yasr.plugin_control.download_as.sparql_results_json_ld.label",
|
|
2130
2134
|
value: "application/ld+json",
|
|
2135
|
+
}, {
|
|
2136
|
+
labelKey: "yasr.plugin_control.download_as.sparql_results_ndjson_ld.label",
|
|
2137
|
+
value: "application/x-ld+ndjson",
|
|
2131
2138
|
}, {
|
|
2132
2139
|
labelKey: "yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label",
|
|
2133
2140
|
value: "application/rdf+xml",
|
|
@@ -79,19 +79,21 @@ export class OntotextYasgui {
|
|
|
79
79
|
return this.getInstance().getTab().getQuery();
|
|
80
80
|
}
|
|
81
81
|
openTab(queryModel) {
|
|
82
|
-
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel.queryName, queryModel.query);
|
|
82
|
+
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
83
83
|
if (existingTab) {
|
|
84
84
|
this.getInstance().selectTabId(existingTab.getId());
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
this.createNewTab(queryModel.queryName, queryModel.query);
|
|
87
|
+
this.createNewTab(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
createNewTab(queryName, query) {
|
|
91
91
|
const tabInstance = this.getInstance().addTab(true, {
|
|
92
92
|
name: queryName
|
|
93
93
|
});
|
|
94
|
-
|
|
94
|
+
if (query) {
|
|
95
|
+
tabInstance.setQuery(query);
|
|
96
|
+
}
|
|
95
97
|
}
|
|
96
98
|
destroy() {
|
|
97
99
|
if (this.yasgui) {
|
|
@@ -166,6 +166,9 @@ class ExtendedTableDownloadAsConfiguration extends DownloadAsPluginConfiguration
|
|
|
166
166
|
}, {
|
|
167
167
|
labelKey: "yasr.plugin_control.download_as.sparql_results_json_ld.label",
|
|
168
168
|
value: "application/ld+json",
|
|
169
|
+
}, {
|
|
170
|
+
labelKey: "yasr.plugin_control.download_as.sparql_results_ndjson_ld.label",
|
|
171
|
+
value: "application/x-ld+ndjson",
|
|
169
172
|
}, {
|
|
170
173
|
labelKey: "yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label",
|
|
171
174
|
value: "application/rdf+xml",
|
|
@@ -158,19 +158,21 @@ class OntotextYasgui$1 {
|
|
|
158
158
|
return this.getInstance().getTab().getQuery();
|
|
159
159
|
}
|
|
160
160
|
openTab(queryModel) {
|
|
161
|
-
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel.queryName, queryModel.query);
|
|
161
|
+
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
162
162
|
if (existingTab) {
|
|
163
163
|
this.getInstance().selectTabId(existingTab.getId());
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
|
-
this.createNewTab(queryModel.queryName, queryModel.query);
|
|
166
|
+
this.createNewTab(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
createNewTab(queryName, query) {
|
|
170
170
|
const tabInstance = this.getInstance().addTab(true, {
|
|
171
171
|
name: queryName
|
|
172
172
|
});
|
|
173
|
-
|
|
173
|
+
if (query) {
|
|
174
|
+
tabInstance.setQuery(query);
|
|
175
|
+
}
|
|
174
176
|
}
|
|
175
177
|
destroy() {
|
|
176
178
|
if (this.yasgui) {
|
|
@@ -1461,6 +1463,9 @@ class ExtendedTableDownloadAsConfiguration extends DownloadAsPluginConfiguration
|
|
|
1461
1463
|
}, {
|
|
1462
1464
|
labelKey: "yasr.plugin_control.download_as.sparql_results_json_ld.label",
|
|
1463
1465
|
value: "application/ld+json",
|
|
1466
|
+
}, {
|
|
1467
|
+
labelKey: "yasr.plugin_control.download_as.sparql_results_ndjson_ld.label",
|
|
1468
|
+
value: "application/x-ld+ndjson",
|
|
1464
1469
|
}, {
|
|
1465
1470
|
labelKey: "yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label",
|
|
1466
1471
|
value: "application/rdf+xml",
|
|
@@ -128,6 +128,7 @@ const en = {
|
|
|
128
128
|
"yasr.plugin_control.download_as.raw_response.dropdown.label": "Get HTML snippet to embed results on a web page",
|
|
129
129
|
"yasr.plugin_control.download_as.sparql_results_json.label": "JSON",
|
|
130
130
|
"yasr.plugin_control.download_as.sparql_results_json_ld.label": "JSON-LD",
|
|
131
|
+
"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label": "NDJSON-LD",
|
|
131
132
|
"yasr.plugin_control.download_as.x_sparqlstar_results_json.label": "JSON*",
|
|
132
133
|
"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label": "RDF-XML",
|
|
133
134
|
"yasr.plugin_control.download_as.sparql_results_xml.label": "XML",
|
|
@@ -332,6 +333,7 @@ const fr = {
|
|
|
332
333
|
"yasr.plugin_control.download_as.raw_response.dropdown.label": "Obtenir un extrait HTML pour intégrer les résultats dans une page web",
|
|
333
334
|
"yasr.plugin_control.download_as.sparql_results_json.label": "JSON",
|
|
334
335
|
"yasr.plugin_control.download_as.sparql_results_json_ld.label": "JSON-LD",
|
|
336
|
+
"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label": "NDJSON-LD",
|
|
335
337
|
"yasr.plugin_control.download_as.x_sparqlstar_results_json.label": "JSON*",
|
|
336
338
|
"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label": "RDF-XML",
|
|
337
339
|
"yasr.plugin_control.download_as.sparql_results_xml.label": "XML",
|
|
@@ -176,6 +176,7 @@ const en = {
|
|
|
176
176
|
"yasr.plugin_control.download_as.raw_response.dropdown.label": "Get HTML snippet to embed results on a web page",
|
|
177
177
|
"yasr.plugin_control.download_as.sparql_results_json.label": "JSON",
|
|
178
178
|
"yasr.plugin_control.download_as.sparql_results_json_ld.label": "JSON-LD",
|
|
179
|
+
"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label": "NDJSON-LD",
|
|
179
180
|
"yasr.plugin_control.download_as.x_sparqlstar_results_json.label": "JSON*",
|
|
180
181
|
"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label": "RDF-XML",
|
|
181
182
|
"yasr.plugin_control.download_as.sparql_results_xml.label": "XML",
|
|
@@ -380,6 +381,7 @@ const fr = {
|
|
|
380
381
|
"yasr.plugin_control.download_as.raw_response.dropdown.label": "Obtenir un extrait HTML pour intégrer les résultats dans une page web",
|
|
381
382
|
"yasr.plugin_control.download_as.sparql_results_json.label": "JSON",
|
|
382
383
|
"yasr.plugin_control.download_as.sparql_results_json_ld.label": "JSON-LD",
|
|
384
|
+
"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label": "NDJSON-LD",
|
|
383
385
|
"yasr.plugin_control.download_as.x_sparqlstar_results_json.label": "JSON*",
|
|
384
386
|
"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label": "RDF-XML",
|
|
385
387
|
"yasr.plugin_control.download_as.sparql_results_xml.label": "XML",
|
|
@@ -821,19 +823,21 @@ class OntotextYasgui {
|
|
|
821
823
|
return this.getInstance().getTab().getQuery();
|
|
822
824
|
}
|
|
823
825
|
openTab(queryModel) {
|
|
824
|
-
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel.queryName, queryModel.query);
|
|
826
|
+
const existingTab = this.getInstance().getTabByNameAndQuery(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
825
827
|
if (existingTab) {
|
|
826
828
|
this.getInstance().selectTabId(existingTab.getId());
|
|
827
829
|
}
|
|
828
830
|
else {
|
|
829
|
-
this.createNewTab(queryModel.queryName, queryModel.query);
|
|
831
|
+
this.createNewTab(queryModel === null || queryModel === void 0 ? void 0 : queryModel.queryName, queryModel === null || queryModel === void 0 ? void 0 : queryModel.query);
|
|
830
832
|
}
|
|
831
833
|
}
|
|
832
834
|
createNewTab(queryName, query) {
|
|
833
835
|
const tabInstance = this.getInstance().addTab(true, {
|
|
834
836
|
name: queryName
|
|
835
837
|
});
|
|
836
|
-
|
|
838
|
+
if (query) {
|
|
839
|
+
tabInstance.setQuery(query);
|
|
840
|
+
}
|
|
837
841
|
}
|
|
838
842
|
destroy() {
|
|
839
843
|
if (this.yasgui) {
|
|
@@ -2124,6 +2128,9 @@ class ExtendedTableDownloadAsConfiguration extends DownloadAsPluginConfiguration
|
|
|
2124
2128
|
}, {
|
|
2125
2129
|
labelKey: "yasr.plugin_control.download_as.sparql_results_json_ld.label",
|
|
2126
2130
|
value: "application/ld+json",
|
|
2131
|
+
}, {
|
|
2132
|
+
labelKey: "yasr.plugin_control.download_as.sparql_results_ndjson_ld.label",
|
|
2133
|
+
value: "application/x-ld+ndjson",
|
|
2127
2134
|
}, {
|
|
2128
2135
|
labelKey: "yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label",
|
|
2129
2136
|
value: "application/rdf+xml",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./p-e4adadfe.js";(()=>{const n=import.meta.url,a={};return""!==n&&(a.resourcesUrl=new URL(".",n).href),e(a)})().then((e=>n([["p-8acc487a",[[0,"ontotext-download-as",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],pluginName:[1,"plugin-name"],query:[1],infer:[4],sameAs:[4,"same-as"]}]]],["p-f42a5347",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["p-d8a7ba01",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["p-ad83c788",[[0,"ontotext-pagination",{pageNumber:[2,"page-number"],pageSize:[2,"page-size"],totalElements:[2,"total-elements"],pageElements:[2,"page-elements"],hasMorePages:[4,"has-more-pages"]}]]],["p-
|
|
1
|
+
import{p as e,b as n}from"./p-e4adadfe.js";(()=>{const n=import.meta.url,a={};return""!==n&&(a.resourcesUrl=new URL(".",n).href),e(a)})().then((e=>n([["p-8acc487a",[[0,"ontotext-download-as",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],pluginName:[1,"plugin-name"],query:[1],infer:[4],sameAs:[4,"same-as"]}]]],["p-f42a5347",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["p-d8a7ba01",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["p-ad83c788",[[0,"ontotext-pagination",{pageNumber:[2,"page-number"],pageSize:[2,"page-size"],totalElements:[2,"total-elements"],pageElements:[2,"page-elements"],hasMorePages:[4,"has-more-pages"]}]]],["p-d3f23e03",[[0,"ontotext-yasgui",{config:[16],language:[1],savedQueryConfig:[16],saveQueryData:[32],savedQueryData:[32],deleteQueryData:[32],isVerticalOrientation:[32],showSaveQueryDialog:[32],showSavedQueriesPopup:[32],showSavedQueriesPopupTarget:[32],showConfirmationDialog:[32],showShareQueryDialog:[32],showCopyResourceLinkDialog:[32],copiedResourceLink:[32],loaderMessage:[32],additionalLoaderMessage:[32],changeRenderMode:[64],setQuery:[64],query:[64],getQuery:[64],isQueryValid:[64],openTab:[64],getQueryMode:[64],getQueryType:[64],getEmbeddedResultAsJson:[64],getEmbeddedResultAsCSV:[64],hideYasqeActionButton:[64],showYasqeActionButton:[64],abortQuery:[64]},[[9,"resize","onResize"],[0,"internalCreateSavedQueryEvent","saveQueryHandler"],[0,"internalSaveQueryEvent","createSavedQueryHandler"],[0,"internalUpdateQueryEvent","updateSavedQueryHandler"],[0,"internalSaveQueryDialogClosedEvent","closeSaveDialogHandler"],[0,"internalShowSavedQueriesEvent","showSavedQueriesHandler"],[0,"internalSaveQuerySelectedEvent","savedQuerySelectedHandler"],[0,"internalEditSavedQueryEvent","editSavedQueryHandler"],[0,"internalSavedQuerySelectedForDeleteEvent","savedQuerySelectedForEditHandler"],[0,"internalConfirmationApprovedEvent","deleteSavedQueryHandler"],[0,"internalConfirmationRejectedEvent","closeSavedQueryDeleteConfirmationHandler"],[0,"internalCloseSavedQueriesPopupEvent","closeSavedQueriesPopupHandler"],[0,"internalSavedQuerySelectedForShareEvent","savedQuerySelectedForShareHandler"],[0,"internalShareQueryEvent","shareQueryHandler"],[0,"internalQueryShareLinkCopiedEvent","savedQueryShareLinkCopiedHandler"],[0,"internalShareQueryDialogClosedEvent","closeShareQueryDialogHandler"],[0,"internalResourceLinkDialogClosedEvent","resourceLinkDialogClosedHandler"],[0,"internalResourceLinkCopiedEvent","resourceLinkCopiedHandler"],[0,"internalShowResourceCopyLinkDialogEvent","showResourceCopyLinkDialogHandler"],[0,"internalDownloadAsEvent","onDownloadAsEventHandler"],[0,"internalNotificationMessageEvent","notificationMessageHandler"],[0,"internalQueryEvent","onQuery"],[0,"internalQueryExecuted","onInternalQueryExecuted"],[0,"internalSetResponseStartedEvent","onInternalSetResponseStarted"],[0,"internalSetResponseFinishedEvent","onInternalSetResponseFinished"],[0,"internalCountQueryEvent","onCountQuery"],[0,"internalCountQueryResponseEvent","onCountQueryResponse"]]],[0,"copy-resource-link-dialog",{serviceFactory:[16],resourceLink:[1,"resource-link"]}],[0,"share-query-dialog",{config:[16],serviceFactory:[16]}],[0,"save-query-dialog",{serviceFactory:[16],data:[16],queryName:[32],query:[32],isPublic:[32],isNew:[32],isSaveAllowed:[32]},[[8,"keydown","keydownListener"]]],[0,"confirmation-dialog",{translationService:[16],config:[16]},[[8,"keydown","keydownListener"]]],[1,"loader-component",{message:[1],additionalMessage:[1,"additional-message"],size:[1]}],[0,"saved-queries-popup",{config:[16]},[[8,"click","onWindowResize"],[8,"keydown","keydownListener"]]],[0,"copy-link-dialog",{config:[16],serviceFactory:[16],copyLinkEventsObserver:[16],classes:[1]},[[8,"keydown","keydownListener"]]],[4,"yasgui-tooltip",{dataTooltip:[1,"data-tooltip"],placement:[1],showOnClick:[4,"show-on-click"]}],[4,"ontotext-dialog-web-component",{config:[16]}]]],["p-2eb2010e",[[0,"ontotext-dropdown",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],iconClass:[1,"icon-class"],open:[32],showTooltip:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]]],e)));
|