@fluid-topics/ft-reader-search-in-document 1.3.62 → 1.3.63
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { nothing, PropertyValues, TemplateResult } from "lit";
|
|
2
2
|
import { ElementDefinitionsMap } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
import { FtReaderSearchInDocumentProperties } from "./ft-reader-search-in-document.properties";
|
|
4
|
-
import { FtSearchContext } from "@fluid-topics/ft-search-context";
|
|
4
|
+
import { FtSearchContext } from "@fluid-topics/ft-search-context/build/ft-search-context";
|
|
5
5
|
import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
|
|
6
6
|
import { FtMap, FtSearchResultClusterEntry } from "@fluid-topics/public-api";
|
|
7
7
|
declare const FtReaderSearchInDocument_base: typeof FtReaderComponent & import("@fluid-topics/ft-wc-utils").Constructor<import("@fluid-topics/ft-i18n").FtLitElementWithI18nInterface>;
|
|
@@ -4,16 +4,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, nothing } from "lit";
|
|
8
|
-
import { randomId, redux, waitFor } from "@fluid-topics/ft-wc-utils";
|
|
9
|
-
import { resultStyles, styles } from "./ft-reader-search-in-document.styles";
|
|
7
|
+
import { html, nothing, } from "lit";
|
|
8
|
+
import { randomId, redux, waitFor, } from "@fluid-topics/ft-wc-utils";
|
|
9
|
+
import { resultStyles, styles, } from "./ft-reader-search-in-document.styles";
|
|
10
10
|
import { withI18n } from "@fluid-topics/ft-i18n";
|
|
11
11
|
import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
|
|
12
|
-
import { property, query } from "lit/decorators.js";
|
|
12
|
+
import { property, query, } from "lit/decorators.js";
|
|
13
13
|
import { getResultUrl } from "@fluid-topics/ft-search-result-context/build/utils";
|
|
14
14
|
import { readerSearchInDocumentContext } from "./ReaderSearchInDocumentMessages";
|
|
15
15
|
import { FtCard } from "@fluid-topics/ft-card";
|
|
16
|
-
import { SearchResultClickEvent, SearchResultOpenContextMenuEvent } from "@fluid-topics/ft-search-context/build/utils";
|
|
16
|
+
import { SearchResultClickEvent, SearchResultOpenContextMenuEvent, } from "@fluid-topics/ft-search-context/build/utils";
|
|
17
17
|
class FtReaderSearchInDocument extends withI18n(FtReaderComponent) {
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
@@ -105,12 +105,12 @@ class FtReaderSearchInDocument extends withI18n(FtReaderComponent) {
|
|
|
105
105
|
if (props.has("map") && this.map) {
|
|
106
106
|
this.initEventManager();
|
|
107
107
|
}
|
|
108
|
-
if (["hideResultTitle", "hideResultBreadcrumb", "hideResultAbstract"].some(p => props.has(p)) && this.searchResults) {
|
|
108
|
+
if (["hideResultTitle", "hideResultBreadcrumb", "hideResultAbstract"].some((p) => props.has(p)) && this.searchResults) {
|
|
109
109
|
this.searchResults.requestUpdate();
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
initEventManager() {
|
|
113
|
-
waitFor(() => { var _a; return (_a = this.searchContext) === null || _a === void 0 ? void 0 : _a.eventManager; }).then(eventManager => {
|
|
113
|
+
waitFor(() => { var _a; return (_a = this.searchContext) === null || _a === void 0 ? void 0 : _a.eventManager; }).then((eventManager) => {
|
|
114
114
|
eventManager.setDocumentSearchFromMap(this.map);
|
|
115
115
|
eventManager.initAppInfo();
|
|
116
116
|
});
|