@fluid-topics/ft-search-result-abstract 1.1.95 → 1.1.97
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,3 +1,4 @@
|
|
|
1
|
+
import { PropertyValues } from "lit";
|
|
1
2
|
import { ElementDefinitionsMap } from "@fluid-topics/ft-wc-utils";
|
|
2
3
|
import { FtSearchResultAbstractProperties } from "./ft-search-result-abstract.properties";
|
|
3
4
|
import { FtSearchResultComponent } from "@fluid-topics/ft-search-result-context/build/registration";
|
|
@@ -6,4 +7,5 @@ export declare class FtSearchResultAbstract extends FtSearchResultComponent impl
|
|
|
6
7
|
static styles: import("lit").CSSResult;
|
|
7
8
|
protected render(): import("lit").TemplateResult<1>;
|
|
8
9
|
private selectAbstract;
|
|
10
|
+
protected contentAvailableCallback(props: PropertyValues): void;
|
|
9
11
|
}
|
|
@@ -30,6 +30,10 @@ class FtSearchResultAbstract extends FtSearchResultComponent {
|
|
|
30
30
|
}
|
|
31
31
|
return "";
|
|
32
32
|
}
|
|
33
|
+
contentAvailableCallback(props) {
|
|
34
|
+
super.contentAvailableCallback(props);
|
|
35
|
+
this.shadowRoot.querySelectorAll(".kwicmatch").forEach(match => match.setAttribute("part", "kwicmatch"));
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
38
|
FtSearchResultAbstract.elementDefinitions = {
|
|
35
39
|
"ft-typography": FtTypography,
|
|
@@ -129,7 +129,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
129
129
|
display: none !important;
|
|
130
130
|
}
|
|
131
131
|
</style>
|
|
132
|
-
`}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}};Be.elementDefinitions={"ft-typography":ne};Be.styles=qo;(0,ca.customElement)("ft-search-result-abstract")(Be);})();
|
|
132
|
+
`}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}contentAvailableCallback(t){super.contentAvailableCallback(t),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch"))}};Be.elementDefinitions={"ft-typography":ne};Be.styles=qo;(0,ca.customElement)("ft-search-result-abstract")(Be);})();
|
|
133
133
|
/*! Bundled license information:
|
|
134
134
|
|
|
135
135
|
@lit/reactive-element/css-tag.js:
|
|
@@ -174,7 +174,7 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
174
174
|
display: none !important;
|
|
175
175
|
}
|
|
176
176
|
</style>
|
|
177
|
-
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}};Rt.elementDefinitions={"ft-typography":be};Rt.styles=Js;Ge("ft-search-result-abstract")(Rt);})();
|
|
177
|
+
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Rt.elementDefinitions={"ft-typography":be};Rt.styles=Js;Ge("ft-search-result-abstract")(Rt);})();
|
|
178
178
|
/*! Bundled license information:
|
|
179
179
|
|
|
180
180
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-result-abstract",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.97",
|
|
4
4
|
"description": "Search result abstract for integrated search component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-search-result-context": "1.1.
|
|
23
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-search-result-context": "1.1.97",
|
|
23
|
+
"@fluid-topics/ft-typography": "1.1.97",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.1.97",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@fluid-topics/public-api": "1.0.73"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "05bb09e5672b741ee38202a13eb0ed087cd24b0c"
|
|
31
31
|
}
|