ontotext-yasgui-web-component 1.3.16 → 1.3.18
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 +7 -4
- package/dist/collection/models/ontotext-yasgui.js +6 -3
- package/dist/collection/services/utils/html-util.js +1 -1
- package/dist/components/html-util.js +1 -1
- package/dist/components/ontotext-yasgui.js +6 -3
- package/dist/esm/confirmation-dialog_9.entry.js +7 -4
- package/dist/ontotext-yasgui-web-component/ontotext-yasgui-web-component.esm.js +1 -1
- package/dist/ontotext-yasgui-web-component/p-6320a277.entry.js +1 -0
- package/dist/types/models/yasgui/yasqe.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ontotext-yasgui-web-component/p-2f001e16.entry.js +0 -1
|
@@ -17,7 +17,7 @@ class HtmlUtil {
|
|
|
17
17
|
// The result should be "<<<urn:test> <http://www.w3.org/2000/01/rdf-schema#label> "test">>>".
|
|
18
18
|
let escapedText = text;
|
|
19
19
|
if (text) {
|
|
20
|
-
escapedText = text.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
20
|
+
escapedText = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
21
21
|
}
|
|
22
22
|
return escapedText;
|
|
23
23
|
}
|
|
@@ -1143,9 +1143,12 @@ class OntotextYasgui {
|
|
|
1143
1143
|
* @param query The query value to be set.
|
|
1144
1144
|
*/
|
|
1145
1145
|
setQuery(query) {
|
|
1146
|
-
const
|
|
1147
|
-
|
|
1148
|
-
|
|
1146
|
+
const yasqe = this.yasgui.getTab().getYasqe();
|
|
1147
|
+
const cursor = yasqe.getDoc().getCursor();
|
|
1148
|
+
const lastLine = yasqe.getDoc().lastLine();
|
|
1149
|
+
const lastLineLength = yasqe.getDoc().getLine(lastLine).length;
|
|
1150
|
+
yasqe.getDoc().replaceRange(query, { line: 0, ch: 0 }, { line: lastLine, ch: lastLineLength });
|
|
1151
|
+
yasqe.getDoc().setCursor(cursor);
|
|
1149
1152
|
}
|
|
1150
1153
|
query() {
|
|
1151
1154
|
return this.yasgui.getTab().getYasqe().query();
|
|
@@ -36,9 +36,12 @@ export class OntotextYasgui {
|
|
|
36
36
|
* @param query The query value to be set.
|
|
37
37
|
*/
|
|
38
38
|
setQuery(query) {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const yasqe = this.yasgui.getTab().getYasqe();
|
|
40
|
+
const cursor = yasqe.getDoc().getCursor();
|
|
41
|
+
const lastLine = yasqe.getDoc().lastLine();
|
|
42
|
+
const lastLineLength = yasqe.getDoc().getLine(lastLine).length;
|
|
43
|
+
yasqe.getDoc().replaceRange(query, { line: 0, ch: 0 }, { line: lastLine, ch: lastLineLength });
|
|
44
|
+
yasqe.getDoc().setCursor(cursor);
|
|
42
45
|
}
|
|
43
46
|
query() {
|
|
44
47
|
return this.yasgui.getTab().getYasqe().query();
|
|
@@ -6,7 +6,7 @@ export class HtmlUtil {
|
|
|
6
6
|
// The result should be "<<<urn:test> <http://www.w3.org/2000/01/rdf-schema#label> "test">>>".
|
|
7
7
|
let escapedText = text;
|
|
8
8
|
if (text) {
|
|
9
|
-
escapedText = text.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
9
|
+
escapedText = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
10
10
|
}
|
|
11
11
|
return escapedText;
|
|
12
12
|
}
|
|
@@ -6,7 +6,7 @@ class HtmlUtil {
|
|
|
6
6
|
// The result should be "<<<urn:test> <http://www.w3.org/2000/01/rdf-schema#label> "test">>>".
|
|
7
7
|
let escapedText = text;
|
|
8
8
|
if (text) {
|
|
9
|
-
escapedText = text.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
9
|
+
escapedText = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
10
10
|
}
|
|
11
11
|
return escapedText;
|
|
12
12
|
}
|
|
@@ -125,9 +125,12 @@ class OntotextYasgui$1 {
|
|
|
125
125
|
* @param query The query value to be set.
|
|
126
126
|
*/
|
|
127
127
|
setQuery(query) {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
const yasqe = this.yasgui.getTab().getYasqe();
|
|
129
|
+
const cursor = yasqe.getDoc().getCursor();
|
|
130
|
+
const lastLine = yasqe.getDoc().lastLine();
|
|
131
|
+
const lastLineLength = yasqe.getDoc().getLine(lastLine).length;
|
|
132
|
+
yasqe.getDoc().replaceRange(query, { line: 0, ch: 0 }, { line: lastLine, ch: lastLineLength });
|
|
133
|
+
yasqe.getDoc().setCursor(cursor);
|
|
131
134
|
}
|
|
132
135
|
query() {
|
|
133
136
|
return this.yasgui.getTab().getYasqe().query();
|
|
@@ -13,7 +13,7 @@ class HtmlUtil {
|
|
|
13
13
|
// The result should be "<<<urn:test> <http://www.w3.org/2000/01/rdf-schema#label> "test">>>".
|
|
14
14
|
let escapedText = text;
|
|
15
15
|
if (text) {
|
|
16
|
-
escapedText = text.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
16
|
+
escapedText = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
17
17
|
}
|
|
18
18
|
return escapedText;
|
|
19
19
|
}
|
|
@@ -1139,9 +1139,12 @@ class OntotextYasgui {
|
|
|
1139
1139
|
* @param query The query value to be set.
|
|
1140
1140
|
*/
|
|
1141
1141
|
setQuery(query) {
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
|
|
1142
|
+
const yasqe = this.yasgui.getTab().getYasqe();
|
|
1143
|
+
const cursor = yasqe.getDoc().getCursor();
|
|
1144
|
+
const lastLine = yasqe.getDoc().lastLine();
|
|
1145
|
+
const lastLineLength = yasqe.getDoc().getLine(lastLine).length;
|
|
1146
|
+
yasqe.getDoc().replaceRange(query, { line: 0, ch: 0 }, { line: lastLine, ch: lastLineLength });
|
|
1147
|
+
yasqe.getDoc().setCursor(cursor);
|
|
1145
1148
|
}
|
|
1146
1149
|
query() {
|
|
1147
1150
|
return this.yasgui.getTab().getYasqe().query();
|
|
@@ -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-6320a277",[[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)));
|