ontotext-yasgui-web-component 1.3.20 → 1.3.21
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_9.cjs.entry.js +9 -3
- package/dist/collection/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.js +2 -1
- package/dist/collection/components/saved-queries-popup/saved-queries-popup.js +5 -1
- package/dist/collection/models/saved-query-configuration.js +2 -1
- package/dist/collection/pages/actions/main.js +4 -2
- package/dist/components/ontotext-yasgui.js +2 -1
- package/dist/components/saved-queries-popup2.js +5 -1
- package/dist/components/saved-query-configuration.js +2 -1
- package/dist/esm/confirmation-dialog_9.entry.js +9 -3
- package/dist/ontotext-yasgui-web-component/ontotext-yasgui-web-component.esm.js +1 -1
- package/dist/ontotext-yasgui-web-component/{p-d0d8a5ec.entry.js → p-e1e37638.entry.js} +1 -1
- package/dist/types/models/saved-query-configuration.d.ts +3 -1
- package/package.json +1 -1
|
@@ -4907,7 +4907,8 @@ const OntotextYasguiWebComponent = class {
|
|
|
4907
4907
|
queryName: savedQuery.queryName,
|
|
4908
4908
|
query: savedQuery.query,
|
|
4909
4909
|
isPublic: savedQuery.isPublic,
|
|
4910
|
-
owner: savedQuery.owner
|
|
4910
|
+
owner: savedQuery.owner,
|
|
4911
|
+
readonly: savedQuery.readonly !== undefined ? savedQuery.readonly : false
|
|
4911
4912
|
};
|
|
4912
4913
|
});
|
|
4913
4914
|
}
|
|
@@ -5122,11 +5123,12 @@ OntotextYasguiWebComponent.style = ontotextYasguiWebComponentCss;
|
|
|
5122
5123
|
|
|
5123
5124
|
// TODO: rename to be like internal model
|
|
5124
5125
|
class SaveQueryData {
|
|
5125
|
-
constructor(queryName, query, isPublic, isNew, owner, messages) {
|
|
5126
|
+
constructor(queryName, query, isPublic, isNew, readonly, owner, messages) {
|
|
5126
5127
|
this.queryName = queryName;
|
|
5127
5128
|
this.query = query;
|
|
5128
5129
|
this.isPublic = isPublic;
|
|
5129
5130
|
this.isNew = isNew;
|
|
5131
|
+
this.readonly = readonly;
|
|
5130
5132
|
this.owner = owner;
|
|
5131
5133
|
this.messages = messages;
|
|
5132
5134
|
}
|
|
@@ -5324,7 +5326,11 @@ const SavedQueriesPopup = class {
|
|
|
5324
5326
|
}
|
|
5325
5327
|
}
|
|
5326
5328
|
render() {
|
|
5327
|
-
return (index.h(index.Host, { class: "saved-queries-container" }, index.h("div", { class: "arrow" }), index.h("div", { class: "saved-queries-popup" }, index.h("ul", null, this.config.savedQueriesList.map((savedQuery) => (index.h("li", { class: "saved-query" }, index.h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), index.h("span", { class: "saved-query-actions" },
|
|
5329
|
+
return (index.h(index.Host, { class: "saved-queries-container" }, index.h("div", { class: "arrow" }), index.h("div", { class: "saved-queries-popup" }, index.h("ul", null, this.config.savedQueriesList.map((savedQuery) => (index.h("li", { class: "saved-query" }, index.h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), index.h("span", { class: "saved-query-actions" }, !savedQuery.readonly ?
|
|
5330
|
+
index.h("button", { class: "saved-query-action edit-saved-query icon-edit", title: this.translationService.translate('yasqe.actions.saved_query_dialog.edit.button.tooltip'), onClick: (evt) => this.onEdit(evt, savedQuery) })
|
|
5331
|
+
: '', !savedQuery.readonly ?
|
|
5332
|
+
index.h("button", { class: "saved-query-action delete-saved-query icon-trash", title: this.translationService.translate('yasqe.actions.saved_query_dialog.delete.button.tooltip'), onClick: (evt) => this.onDelete(evt, savedQuery) })
|
|
5333
|
+
: '', index.h("button", { class: "saved-query-action share-saved-query icon-link", title: this.translationService.translate('yasqe.actions.saved_query_dialog.share.button.tooltip'), onClick: (evt) => this.onShare(evt, savedQuery) })))))))));
|
|
5328
5334
|
}
|
|
5329
5335
|
get hostElement() { return index.getElement(this); }
|
|
5330
5336
|
};
|
package/dist/collection/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.js
CHANGED
|
@@ -519,7 +519,8 @@ export class OntotextYasguiWebComponent {
|
|
|
519
519
|
queryName: savedQuery.queryName,
|
|
520
520
|
query: savedQuery.query,
|
|
521
521
|
isPublic: savedQuery.isPublic,
|
|
522
|
-
owner: savedQuery.owner
|
|
522
|
+
owner: savedQuery.owner,
|
|
523
|
+
readonly: savedQuery.readonly !== undefined ? savedQuery.readonly : false
|
|
523
524
|
};
|
|
524
525
|
});
|
|
525
526
|
}
|
|
@@ -62,7 +62,11 @@ export class SavedQueriesPopup {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { class: "saved-queries-container" }, h("div", { class: "arrow" }), h("div", { class: "saved-queries-popup" }, h("ul", null, this.config.savedQueriesList.map((savedQuery) => (h("li", { class: "saved-query" }, h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), h("span", { class: "saved-query-actions" },
|
|
65
|
+
return (h(Host, { class: "saved-queries-container" }, h("div", { class: "arrow" }), h("div", { class: "saved-queries-popup" }, h("ul", null, this.config.savedQueriesList.map((savedQuery) => (h("li", { class: "saved-query" }, h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), h("span", { class: "saved-query-actions" }, !savedQuery.readonly ?
|
|
66
|
+
h("button", { class: "saved-query-action edit-saved-query icon-edit", title: this.translationService.translate('yasqe.actions.saved_query_dialog.edit.button.tooltip'), onClick: (evt) => this.onEdit(evt, savedQuery) })
|
|
67
|
+
: '', !savedQuery.readonly ?
|
|
68
|
+
h("button", { class: "saved-query-action delete-saved-query icon-trash", title: this.translationService.translate('yasqe.actions.saved_query_dialog.delete.button.tooltip'), onClick: (evt) => this.onDelete(evt, savedQuery) })
|
|
69
|
+
: '', h("button", { class: "saved-query-action share-saved-query icon-link", title: this.translationService.translate('yasqe.actions.saved_query_dialog.share.button.tooltip'), onClick: (evt) => this.onShare(evt, savedQuery) })))))))));
|
|
66
70
|
}
|
|
67
71
|
static get is() { return "saved-queries-popup"; }
|
|
68
72
|
static get originalStyleUrls() {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// TODO: rename to be like internal model
|
|
2
2
|
export class SaveQueryData {
|
|
3
|
-
constructor(queryName, query, isPublic, isNew, owner, messages) {
|
|
3
|
+
constructor(queryName, query, isPublic, isNew, readonly, owner, messages) {
|
|
4
4
|
this.queryName = queryName;
|
|
5
5
|
this.query = query;
|
|
6
6
|
this.isPublic = isPublic;
|
|
7
7
|
this.isNew = isNew;
|
|
8
|
+
this.readonly = readonly;
|
|
8
9
|
this.owner = owner;
|
|
9
10
|
this.messages = messages;
|
|
10
11
|
}
|
|
@@ -290,13 +290,15 @@ let savedQueries = [
|
|
|
290
290
|
"queryName": "Add statements",
|
|
291
291
|
"query": "PREFIX dc: <http://purl.org/dc/elements/1.1/>\nINSERT DATA\n {\n GRAPH <http://example> {\n <http://example/book1> dc:title \"A new book\" ;\n dc:creator \"A.N.Other\" .\n }\n }",
|
|
292
292
|
"isPublic": false,
|
|
293
|
-
"owner": "admin"
|
|
293
|
+
"owner": "admin",
|
|
294
|
+
"readonly": true
|
|
294
295
|
},
|
|
295
296
|
{
|
|
296
297
|
"queryName": "Clear graph",
|
|
297
298
|
"query": "CLEAR GRAPH <http://example>",
|
|
298
299
|
"isPublic": false,
|
|
299
|
-
"owner": "admin"
|
|
300
|
+
"owner": "admin",
|
|
301
|
+
"readonly": false
|
|
300
302
|
},
|
|
301
303
|
{
|
|
302
304
|
"queryName": "new query",
|
|
@@ -3892,7 +3892,8 @@ const OntotextYasguiWebComponent = /*@__PURE__*/ proxyCustomElement(class extend
|
|
|
3892
3892
|
queryName: savedQuery.queryName,
|
|
3893
3893
|
query: savedQuery.query,
|
|
3894
3894
|
isPublic: savedQuery.isPublic,
|
|
3895
|
-
owner: savedQuery.owner
|
|
3895
|
+
owner: savedQuery.owner,
|
|
3896
|
+
readonly: savedQuery.readonly !== undefined ? savedQuery.readonly : false
|
|
3896
3897
|
};
|
|
3897
3898
|
});
|
|
3898
3899
|
}
|
|
@@ -72,7 +72,11 @@ const SavedQueriesPopup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
|
-
return (h(Host, { class: "saved-queries-container" }, h("div", { class: "arrow" }), h("div", { class: "saved-queries-popup" }, h("ul", null, this.config.savedQueriesList.map((savedQuery) => (h("li", { class: "saved-query" }, h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), h("span", { class: "saved-query-actions" },
|
|
75
|
+
return (h(Host, { class: "saved-queries-container" }, h("div", { class: "arrow" }), h("div", { class: "saved-queries-popup" }, h("ul", null, this.config.savedQueriesList.map((savedQuery) => (h("li", { class: "saved-query" }, h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), h("span", { class: "saved-query-actions" }, !savedQuery.readonly ?
|
|
76
|
+
h("button", { class: "saved-query-action edit-saved-query icon-edit", title: this.translationService.translate('yasqe.actions.saved_query_dialog.edit.button.tooltip'), onClick: (evt) => this.onEdit(evt, savedQuery) })
|
|
77
|
+
: '', !savedQuery.readonly ?
|
|
78
|
+
h("button", { class: "saved-query-action delete-saved-query icon-trash", title: this.translationService.translate('yasqe.actions.saved_query_dialog.delete.button.tooltip'), onClick: (evt) => this.onDelete(evt, savedQuery) })
|
|
79
|
+
: '', h("button", { class: "saved-query-action share-saved-query icon-link", title: this.translationService.translate('yasqe.actions.saved_query_dialog.share.button.tooltip'), onClick: (evt) => this.onShare(evt, savedQuery) })))))))));
|
|
76
80
|
}
|
|
77
81
|
get hostElement() { return this; }
|
|
78
82
|
static get style() { return savedQueriesPopupCss; }
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// TODO: rename to be like internal model
|
|
2
2
|
class SaveQueryData {
|
|
3
|
-
constructor(queryName, query, isPublic, isNew, owner, messages) {
|
|
3
|
+
constructor(queryName, query, isPublic, isNew, readonly, owner, messages) {
|
|
4
4
|
this.queryName = queryName;
|
|
5
5
|
this.query = query;
|
|
6
6
|
this.isPublic = isPublic;
|
|
7
7
|
this.isNew = isNew;
|
|
8
|
+
this.readonly = readonly;
|
|
8
9
|
this.owner = owner;
|
|
9
10
|
this.messages = messages;
|
|
10
11
|
}
|
|
@@ -4903,7 +4903,8 @@ const OntotextYasguiWebComponent = class {
|
|
|
4903
4903
|
queryName: savedQuery.queryName,
|
|
4904
4904
|
query: savedQuery.query,
|
|
4905
4905
|
isPublic: savedQuery.isPublic,
|
|
4906
|
-
owner: savedQuery.owner
|
|
4906
|
+
owner: savedQuery.owner,
|
|
4907
|
+
readonly: savedQuery.readonly !== undefined ? savedQuery.readonly : false
|
|
4907
4908
|
};
|
|
4908
4909
|
});
|
|
4909
4910
|
}
|
|
@@ -5118,11 +5119,12 @@ OntotextYasguiWebComponent.style = ontotextYasguiWebComponentCss;
|
|
|
5118
5119
|
|
|
5119
5120
|
// TODO: rename to be like internal model
|
|
5120
5121
|
class SaveQueryData {
|
|
5121
|
-
constructor(queryName, query, isPublic, isNew, owner, messages) {
|
|
5122
|
+
constructor(queryName, query, isPublic, isNew, readonly, owner, messages) {
|
|
5122
5123
|
this.queryName = queryName;
|
|
5123
5124
|
this.query = query;
|
|
5124
5125
|
this.isPublic = isPublic;
|
|
5125
5126
|
this.isNew = isNew;
|
|
5127
|
+
this.readonly = readonly;
|
|
5126
5128
|
this.owner = owner;
|
|
5127
5129
|
this.messages = messages;
|
|
5128
5130
|
}
|
|
@@ -5320,7 +5322,11 @@ const SavedQueriesPopup = class {
|
|
|
5320
5322
|
}
|
|
5321
5323
|
}
|
|
5322
5324
|
render() {
|
|
5323
|
-
return (h(Host, { class: "saved-queries-container" }, h("div", { class: "arrow" }), h("div", { class: "saved-queries-popup" }, h("ul", null, this.config.savedQueriesList.map((savedQuery) => (h("li", { class: "saved-query" }, h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), h("span", { class: "saved-query-actions" },
|
|
5325
|
+
return (h(Host, { class: "saved-queries-container" }, h("div", { class: "arrow" }), h("div", { class: "saved-queries-popup" }, h("ul", null, this.config.savedQueriesList.map((savedQuery) => (h("li", { class: "saved-query" }, h("a", { class: "saved-query-link", onClick: (evt) => this.onSelect(evt, savedQuery) }, savedQuery.queryName), h("span", { class: "saved-query-actions" }, !savedQuery.readonly ?
|
|
5326
|
+
h("button", { class: "saved-query-action edit-saved-query icon-edit", title: this.translationService.translate('yasqe.actions.saved_query_dialog.edit.button.tooltip'), onClick: (evt) => this.onEdit(evt, savedQuery) })
|
|
5327
|
+
: '', !savedQuery.readonly ?
|
|
5328
|
+
h("button", { class: "saved-query-action delete-saved-query icon-trash", title: this.translationService.translate('yasqe.actions.saved_query_dialog.delete.button.tooltip'), onClick: (evt) => this.onDelete(evt, savedQuery) })
|
|
5329
|
+
: '', h("button", { class: "saved-query-action share-saved-query icon-link", title: this.translationService.translate('yasqe.actions.saved_query_dialog.share.button.tooltip'), onClick: (evt) => this.onShare(evt, savedQuery) })))))))));
|
|
5324
5330
|
}
|
|
5325
5331
|
get hostElement() { return getElement(this); }
|
|
5326
5332
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./p-2350c3f2.js";(()=>{const n=import.meta.url,a={};return""!==n&&(a.resourcesUrl=new URL(".",n).href),e(a)})().then((e=>n([["p-22c5df60",[[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-43dd92e7",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["p-40418af0",[[0,"alert-box",{type:[1],message:[1],noIcon:[4,"no-icon"],noButton:[4,"no-button"],isVisible:[32]}]]],["p-63bc8dd4",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["p-a43b888e",[[1,"loader-component",{timeFormattingService:[16],showQueryProgress:[4,"show-query-progress"],message:[1],additionalMessage:[1,"additional-message"],size:[1],hidden:[4],queryProgress:[32]}]]],["p-272e6fa4",[[0,"ontotext-editable-text-field",{value:[1025],edit:[1028],translationService:[16]},[[8,"click","handleClickOutside"],[4,"keydown","keydownListener"]]]]],["p-796c8bb1",[[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-2350c3f2.js";(()=>{const n=import.meta.url,a={};return""!==n&&(a.resourcesUrl=new URL(".",n).href),e(a)})().then((e=>n([["p-22c5df60",[[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-43dd92e7",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["p-40418af0",[[0,"alert-box",{type:[1],message:[1],noIcon:[4,"no-icon"],noButton:[4,"no-button"],isVisible:[32]}]]],["p-63bc8dd4",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["p-a43b888e",[[1,"loader-component",{timeFormattingService:[16],showQueryProgress:[4,"show-query-progress"],message:[1],additionalMessage:[1,"additional-message"],size:[1],hidden:[4],queryProgress:[32]}]]],["p-272e6fa4",[[0,"ontotext-editable-text-field",{value:[1025],edit:[1028],translationService:[16]},[[8,"click","handleClickOutside"],[4,"keydown","keydownListener"]]]]],["p-796c8bb1",[[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-e1e37638",[[0,"ontotext-yasgui",{config:[16],language:[1],savedQueryConfig:[16],saveQueryData:[32],savedQueryData:[32],deleteQueryData:[32],isVerticalOrientation:[32],renderingMode:[32],showSaveQueryDialog:[32],showSavedQueriesPopup:[32],showSavedQueriesPopupTarget:[32],showConfirmationDialog:[32],showShareQueryDialog:[32],showCopyResourceLinkDialog:[32],copiedResourceLink:[32],loaderMessage:[32],additionalLoaderMessage:[32],yasqeBtnLabel:[32],yasguiBtnLabel:[32],yasrBtnLabel:[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],getOngoingRequestsInfo:[64],abortQuery:[64],abortAllRequests:[64],reInitYasgui:[64],isQueryDirty:[64]},[[9,"resize","onResize"],[8,"beforeunload","onBeforeunloadHandler"],[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,"internalCountQueryEvent","onCountQuery"],[0,"internalCountQueryResponseEvent","onCountQueryResponse"],[0,"internalRequestAbortedEvent","onQueryAborted"]]],[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"]]],[0,"saved-queries-popup",{config:[16],serviceFactory:[16]},[[8,"click","onWindowResize"],[8,"keydown","keydownListener"]]],[0,"copy-link-dialog",{config:[16],serviceFactory:[16],copyLinkEventsObserver:[16],classes:[1]}],[4,"yasgui-tooltip",{dataTooltip:[1,"data-tooltip"],placement:[1],showOnClick:[4,"show-on-click"]}],[4,"ontotext-dialog-web-component",{config:[16]},[[4,"keydown","keydownListener"]]]]],["p-839c3be0",[[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)));
|