@fluid-topics/ft-search-context 1.3.26 → 1.3.28
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/build/registration.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
|
|
1
|
+
import { Constructor, FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
import { FtSearchStateManager } from "./store/FtSearchStateManager";
|
|
3
3
|
export * from "./store/model";
|
|
4
4
|
export { FtSearchStateManager } from "./store/FtSearchStateManager";
|
|
@@ -9,9 +9,8 @@ export type FtSearchComponentInterface = {
|
|
|
9
9
|
stateManager?: FtSearchStateManager;
|
|
10
10
|
setSearchStateManager(stateManager: FtSearchStateManager): void;
|
|
11
11
|
};
|
|
12
|
-
type Constructor<T> = new (...args: any[]) => T;
|
|
13
12
|
export type FtSearchComponentType<T extends Constructor<FtLitElementRedux>> = T & Constructor<FtSearchComponentInterface>;
|
|
14
|
-
export declare
|
|
13
|
+
export declare const toFtSearchComponent: <T extends Constructor<FtLitElementRedux>>(c: T) => FtSearchComponentType<T>;
|
|
15
14
|
declare const FtSearchComponent_base: FtSearchComponentType<typeof FtLitElementRedux>;
|
|
16
15
|
export declare class FtSearchComponent extends FtSearchComponent_base {
|
|
17
16
|
}
|
package/build/registration.js
CHANGED
|
@@ -4,7 +4,7 @@ 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 { FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
|
|
7
|
+
import { applyMixinOnce, FtLitElementRedux } from "@fluid-topics/ft-wc-utils";
|
|
8
8
|
import { state } from "lit/decorators.js";
|
|
9
9
|
export * from "./store/model";
|
|
10
10
|
export { FtSearchStateManager } from "./store/FtSearchStateManager";
|
|
@@ -16,7 +16,7 @@ export class RegisterSearchComponentEvent extends Event {
|
|
|
16
16
|
const registerInterval = Symbol("registerInterval");
|
|
17
17
|
const registerAttempts = Symbol("registerAttempts");
|
|
18
18
|
const MAX_REGISTER_ATTEMPTS = 40;
|
|
19
|
-
export
|
|
19
|
+
export const toFtSearchComponent = applyMixinOnce(Symbol("toFtSearchComponent"), function (ReduxClass) {
|
|
20
20
|
class FtSearchComponentClass extends ReduxClass {
|
|
21
21
|
setSearchStateManager(stateManager) {
|
|
22
22
|
this.clearStateManager();
|
|
@@ -52,6 +52,6 @@ export function toFtSearchComponent(ReduxClass) {
|
|
|
52
52
|
state()
|
|
53
53
|
], FtSearchComponentClass.prototype, "stateManager", void 0);
|
|
54
54
|
return FtSearchComponentClass;
|
|
55
|
-
}
|
|
55
|
+
});
|
|
56
56
|
export class FtSearchComponent extends toFtSearchComponent(FtLitElementRedux) {
|
|
57
57
|
}
|
|
@@ -56,7 +56,10 @@ export class FtSearchStateManager {
|
|
|
56
56
|
}
|
|
57
57
|
async initService() {
|
|
58
58
|
this.updateLocales();
|
|
59
|
-
this.service.getConfiguration().then((conf) =>
|
|
59
|
+
this.service.getConfiguration().then((conf) => {
|
|
60
|
+
this.store.actions.configuration(conf);
|
|
61
|
+
this.setSortId(this.store.getState().request.sortId);
|
|
62
|
+
});
|
|
60
63
|
return this.launchSearch();
|
|
61
64
|
}
|
|
62
65
|
setQuery(query) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-context",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.28",
|
|
4
4
|
"description": "Context block for integrated search components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "1.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.3.28",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.3.28",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@fluid-topics/public-api": "1.0.
|
|
27
|
+
"@fluid-topics/public-api": "1.0.106"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "face2509aeead24e78a16af4ffd2123ef281dac2"
|
|
30
30
|
}
|