@fluid-topics/ft-search-saved-searches 1.0.42 → 1.0.44
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/ft-search-saved-search.js +4 -0
- package/build/ft-search-saved-searches.css.d.ts +1 -0
- package/build/ft-search-saved-searches.css.js +7 -3
- package/build/ft-search-saved-searches.js +1 -1
- package/build/ft-search-saved-searches.light.js +67 -60
- package/build/ft-search-saved-searches.min.js +239 -232
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const FtSearchSavedSearchesCssVariables: {
|
|
2
|
+
color: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
2
3
|
activeButtonTextColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
3
4
|
activeSearchBackgroundColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
4
5
|
activeSearchBorderStyle: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
var _a, _b, _c, _d;
|
|
2
2
|
import { css } from "lit";
|
|
3
|
-
import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
3
|
+
import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
4
4
|
import { FtCardCssVariables } from "@fluid-topics/ft-card";
|
|
5
5
|
export const FtSearchSavedSearchesCssVariables = {
|
|
6
|
+
color: FtCssVariableFactory.extend("--ft-search-saved-searches-color", designSystemVariables.colorOnSurface),
|
|
6
7
|
activeButtonTextColor: FtCssVariableFactory.extend("--ft-search-saved-searches-active-button-text-color", designSystemVariables.colorPrimary),
|
|
7
8
|
activeSearchBackgroundColor: FtCssVariableFactory.extend("--ft-search-saved-searches-active-search-background-color", designSystemVariables.colorContent),
|
|
8
|
-
activeSearchBorderStyle: FtCssVariableFactory.create("--ft-search-saved-searches-active-search-border-style", "
|
|
9
|
+
activeSearchBorderStyle: FtCssVariableFactory.create("--ft-search-saved-searches-active-search-border-style", "BORDER-STYLE", (_a = FtCardCssVariables.selectedOutlineStyle.lastResortDefaultValue()) !== null && _a !== void 0 ? _a : "solid"),
|
|
9
10
|
activeSearchBorderColor: FtCssVariableFactory.extend("--ft-search-saved-searches-active-search-border-color", designSystemVariables.colorPrimary),
|
|
10
11
|
activeSearchBorderWidth: FtCssVariableFactory.create("--ft-search-saved-searches-active-search-border-width", "SIZE", (_b = FtCardCssVariables.selectedOutlineWidth.lastResortDefaultValue()) !== null && _b !== void 0 ? _b : "2px"),
|
|
11
12
|
activeSearchBorderRadius: FtCssVariableFactory.extend("--ft-search-saved-searches-active-search-border-radius", designSystemVariables.borderRadiusM),
|
|
12
13
|
inactiveButtonTextColor: FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-button-text-color", designSystemVariables.colorPrimary),
|
|
13
14
|
inactiveSearchBackgroundColor: FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-search-background-color", designSystemVariables.colorContent),
|
|
14
|
-
inactiveSearchBorderStyle: FtCssVariableFactory.create("--ft-search-saved-searches-inactive-search-border-style", "
|
|
15
|
+
inactiveSearchBorderStyle: FtCssVariableFactory.create("--ft-search-saved-searches-inactive-search-border-style", "BORDER-STYLE", (_c = FtCardCssVariables.outlineStyle.lastResortDefaultValue()) !== null && _c !== void 0 ? _c : "solid"),
|
|
15
16
|
inactiveSearchBorderColor: FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-search-border-color", designSystemVariables.colorPrimary),
|
|
16
17
|
inactiveSearchBorderWidth: FtCssVariableFactory.create("--ft-search-saved-searches-inactive-search-border-width", "SIZE", (_d = FtCardCssVariables.outlineWidth.lastResortDefaultValue()) !== null && _d !== void 0 ? _d : "0"),
|
|
17
18
|
inactiveSearchBorderRadius: FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-search-border-radius", designSystemVariables.borderRadiusM),
|
|
@@ -23,5 +24,8 @@ export const styles = css `
|
|
|
23
24
|
flex-direction: column;
|
|
24
25
|
gap: 24px;
|
|
25
26
|
margin: 3px;
|
|
27
|
+
|
|
28
|
+
${setVariable(FtCardCssVariables.colorOnSurfaceHigh, FtSearchSavedSearchesCssVariables.color)};
|
|
29
|
+
${setVariable(FtCardCssVariables.colorOnSurfaceMedium, FtSearchSavedSearchesCssVariables.color)};
|
|
26
30
|
}
|
|
27
31
|
`;
|
|
@@ -79,7 +79,7 @@ class FtSearchSavedSearches extends withI18n(FtSearchComponent) {
|
|
|
79
79
|
const request = (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.store.getState().request;
|
|
80
80
|
return request != undefined
|
|
81
81
|
&& deepEqual(request.query, mySearchRequest.query)
|
|
82
|
-
&& deepEqual([...request.filters], [...mySearchRequest.filters])
|
|
82
|
+
&& deepEqual([...request.filters], [...mySearchRequest.filters].map(this.mapSearchFilter))
|
|
83
83
|
&& deepEqual([...request.sort].map(this.mapFtSearchSortCriterion), [...mySearchRequest.sort].map(this.mapFtSearchSortCriterion))
|
|
84
84
|
&& deepEqual(request.contentLocale, mySearchRequest.contentLocale)
|
|
85
85
|
&& deepEqual(request.periodFilter, mySearchRequest.periodFilter);
|