@empathyco/x-components 3.0.0-alpha.58 → 3.0.0-alpha.60
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/CHANGELOG.md +32 -0
- package/core/index.js +1 -1
- package/core/index.js.map +1 -1
- package/design-system/default-theme.css +204 -128
- package/design-system/full-theme.css +51 -0
- package/design-system/suggestion-default.css +51 -0
- package/docs/API-reference/api/x-components.basesuggestion.highlightcurated.md +13 -0
- package/docs/API-reference/api/x-components.basesuggestion.md +1 -0
- package/docs/API-reference/api/x-components.clearfilters.md +4 -7
- package/docs/API-reference/api/x-components.every.md +27 -0
- package/docs/API-reference/api/x-components.facetsmixin.alwaysvisible.md +13 -0
- package/docs/API-reference/api/x-components.facetsmixin.facetsids.md +13 -0
- package/docs/API-reference/api/x-components.facetsmixin.md +22 -0
- package/docs/API-reference/api/x-components.md +3 -1
- package/docs/API-reference/api/x-components.selectedfilterslist.md +7 -5
- package/docs/API-reference/api/x-types.suggestion.iscurated.md +13 -0
- package/docs/API-reference/api/x-types.suggestion.md +1 -0
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +7 -6
- package/docs/API-reference/components/facets/x-components.clear-filters.md +4 -4
- package/docs/API-reference/components/facets/x-components.facets/facets.md +6 -4
- package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +12 -11
- package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +7 -7
- package/facets/index.js +2 -1
- package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestion.vue_rollup-plugin-vue_script.vue.js +15 -1
- package/js/components/suggestions/base-suggestion.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/index.js +2 -1
- package/js/index.js.map +1 -1
- package/js/utils/object.js +15 -1
- package/js/utils/object.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue.js +4 -6
- package/js/x-modules/facets/components/clear-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue_script.vue.js +8 -56
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue.js +2 -2
- package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue_rollup-plugin-vue_script.vue.js +5 -5
- package/js/x-modules/facets/components/facets/facets.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets.mixin.js +181 -0
- package/js/x-modules/facets/components/facets.mixin.js.map +1 -0
- package/js/x-modules/facets/components/lists/selected-filters-list.vue.js +1 -1
- package/js/x-modules/facets/components/lists/selected-filters-list.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters-list.vue_rollup-plugin-vue_script.vue.js +6 -9
- package/js/x-modules/facets/components/lists/selected-filters-list.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue.js +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue_script.vue.js +5 -43
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/store/getters/selected-filters-by-facet.getter.js.map +1 -1
- package/package.json +4 -4
- package/report/x-components.api.json +227 -262
- package/report/x-components.api.md +26 -26
- package/report/x-types.api.json +26 -0
- package/types/adapter/mocked-adapter.d.ts.map +1 -1
- package/types/components/suggestions/base-suggestion.vue.d.ts +14 -0
- package/types/components/suggestions/base-suggestion.vue.d.ts.map +1 -1
- package/types/router.d.ts.map +1 -1
- package/types/utils/object.d.ts +10 -0
- package/types/utils/object.d.ts.map +1 -1
- package/types/views/base-config.d.ts.map +1 -1
- package/types/x-modules/facets/components/clear-filters.vue.d.ts +4 -51
- package/types/x-modules/facets/components/clear-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets/facets.vue.d.ts +4 -8
- package/types/x-modules/facets/components/facets/facets.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets.mixin.d.ts +60 -0
- package/types/x-modules/facets/components/facets.mixin.d.ts.map +1 -0
- package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts +6 -20
- package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts +4 -52
- package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/index.d.ts +1 -0
- package/types/x-modules/facets/index.d.ts.map +1 -1
- package/types/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.clearfilters.alwaysvisible.md +0 -13
- package/docs/API-reference/api/x-components.clearfilters.facetsids.md +0 -13
- package/docs/API-reference/api/x-components.selectedfilters.alwaysvisible.md +0 -13
- package/docs/API-reference/api/x-components.selectedfilters.facetid.md +0 -13
- package/docs/API-reference/api/x-components.selectedfilters.selectedfiltersbyfacet.md +0 -13
- package/docs/API-reference/api/x-components.selectedfilters.selectedfiltersgetter.md +0 -13
- package/docs/API-reference/api/x-components.selectedfilterslist.alwaysvisible.md +0 -15
- package/docs/API-reference/api/x-components.selectedfilterslist.facetid.md +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.60](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.59...@empathyco/x-components@3.0.0-alpha.60) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **facets:** add facets mixin to share logic between components
|
|
11
|
+
([c8a9046](https://github.com/empathyco/x/commit/c8a904612213cd12040dd6fa1348f6c9a7726eda)),
|
|
12
|
+
closes [EX-2899](https://searchbroker.atlassian.net/browse/EX-2899)
|
|
13
|
+
|
|
14
|
+
### Testing
|
|
15
|
+
|
|
16
|
+
- **e2e:** fix `tagging` using the `mockedAdapter` and replacing `fetch` for `sendBeacon`
|
|
17
|
+
([cf06d2f](https://github.com/empathyco/x/commit/cf06d2f7e9aff3987bc14fa46cd65eace402e612)),
|
|
18
|
+
closes [EX-5374](https://searchbroker.atlassian.net/browse/EX-5374)
|
|
19
|
+
|
|
20
|
+
# Change Log
|
|
21
|
+
|
|
22
|
+
All notable changes to this project will be documented in this file. See
|
|
23
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
24
|
+
|
|
25
|
+
## [3.0.0-alpha.59](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.58...@empathyco/x-components@3.0.0-alpha.59) (2022-02-17)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
- **design-system:** add `curated` modifier to the `suggestion`
|
|
30
|
+
([dd229fd](https://github.com/empathyco/x/commit/dd229fd3d64840ed3041bec618a1a23e3726430d)),
|
|
31
|
+
closes [EX-5290](https://searchbroker.atlassian.net/browse/EX-5290)
|
|
32
|
+
|
|
33
|
+
# Change Log
|
|
34
|
+
|
|
35
|
+
All notable changes to this project will be documented in this file. See
|
|
36
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
37
|
+
|
|
6
38
|
## [3.0.0-alpha.58](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.57...@empathyco/x-components@3.0.0-alpha.58) (2022-02-16)
|
|
7
39
|
|
|
8
40
|
### Features
|
package/core/index.js
CHANGED
|
@@ -136,7 +136,7 @@ export { getURLParameter } from '../js/utils/get-url-parameters.js';
|
|
|
136
136
|
export { isElementEqualOrContained } from '../js/utils/html.js';
|
|
137
137
|
export { normalizeString } from '../js/utils/normalize.js';
|
|
138
138
|
export { isInRange } from '../js/utils/number.js';
|
|
139
|
-
export { cleanUndefined, forEach, getNewAndUpdatedKeys, map, objectFilter, reduce } from '../js/utils/object.js';
|
|
139
|
+
export { cleanUndefined, every, forEach, getNewAndUpdatedKeys, map, objectFilter, reduce } from '../js/utils/object.js';
|
|
140
140
|
export { createOrigin } from '../js/utils/origin.js';
|
|
141
141
|
export { sanitize } from '../js/utils/sanitize.js';
|
|
142
142
|
export { localStorageService } from '../js/utils/storage.js';
|
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1877,6 +1877,134 @@
|
|
|
1877
1877
|
--x-size-span-row-item: 1;
|
|
1878
1878
|
--x-size-start-row-item: 0;
|
|
1879
1879
|
}
|
|
1880
|
+
|
|
1881
|
+
.x-row {
|
|
1882
|
+
display: grid;
|
|
1883
|
+
grid-template-columns: repeat(12, 1fr);
|
|
1884
|
+
grid-template-rows: 1fr;
|
|
1885
|
+
justify-items: var(--x-size-justify-row);
|
|
1886
|
+
align-items: var(--x-size-align-row);
|
|
1887
|
+
padding: var(--x-size-padding-row);
|
|
1888
|
+
gap: var(--x-size-gap-row);
|
|
1889
|
+
margin: 0;
|
|
1890
|
+
}
|
|
1891
|
+
.x-row__item {
|
|
1892
|
+
grid-column-start: var(--x-size-start-row-item);
|
|
1893
|
+
grid-column-end: span var(--x-size-span-row-item);
|
|
1894
|
+
list-style: none;
|
|
1895
|
+
}
|
|
1896
|
+
.x-row__item--span-1 {
|
|
1897
|
+
--x-size-span-row-item: 1;
|
|
1898
|
+
}
|
|
1899
|
+
.x-row__item--span-2 {
|
|
1900
|
+
--x-size-span-row-item: 2;
|
|
1901
|
+
}
|
|
1902
|
+
.x-row__item--span-3 {
|
|
1903
|
+
--x-size-span-row-item: 3;
|
|
1904
|
+
}
|
|
1905
|
+
.x-row__item--span-4 {
|
|
1906
|
+
--x-size-span-row-item: 4;
|
|
1907
|
+
}
|
|
1908
|
+
.x-row__item--span-5 {
|
|
1909
|
+
--x-size-span-row-item: 5;
|
|
1910
|
+
}
|
|
1911
|
+
.x-row__item--span-6 {
|
|
1912
|
+
--x-size-span-row-item: 6;
|
|
1913
|
+
}
|
|
1914
|
+
.x-row__item--span-7 {
|
|
1915
|
+
--x-size-span-row-item: 7;
|
|
1916
|
+
}
|
|
1917
|
+
.x-row__item--span-8 {
|
|
1918
|
+
--x-size-span-row-item: 8;
|
|
1919
|
+
}
|
|
1920
|
+
.x-row__item--span-9 {
|
|
1921
|
+
--x-size-span-row-item: 9;
|
|
1922
|
+
}
|
|
1923
|
+
.x-row__item--span-10 {
|
|
1924
|
+
--x-size-span-row-item: 10;
|
|
1925
|
+
}
|
|
1926
|
+
.x-row__item--span-11 {
|
|
1927
|
+
--x-size-span-row-item: 11;
|
|
1928
|
+
}
|
|
1929
|
+
.x-row__item--span-12 {
|
|
1930
|
+
--x-size-span-row-item: 12;
|
|
1931
|
+
}
|
|
1932
|
+
.x-row__item--start-1 {
|
|
1933
|
+
--x-size-start-row-item: 1;
|
|
1934
|
+
}
|
|
1935
|
+
.x-row__item--start-2 {
|
|
1936
|
+
--x-size-start-row-item: 2;
|
|
1937
|
+
}
|
|
1938
|
+
.x-row__item--start-3 {
|
|
1939
|
+
--x-size-start-row-item: 3;
|
|
1940
|
+
}
|
|
1941
|
+
.x-row__item--start-4 {
|
|
1942
|
+
--x-size-start-row-item: 4;
|
|
1943
|
+
}
|
|
1944
|
+
.x-row__item--start-5 {
|
|
1945
|
+
--x-size-start-row-item: 5;
|
|
1946
|
+
}
|
|
1947
|
+
.x-row__item--start-6 {
|
|
1948
|
+
--x-size-start-row-item: 6;
|
|
1949
|
+
}
|
|
1950
|
+
.x-row__item--start-7 {
|
|
1951
|
+
--x-size-start-row-item: 7;
|
|
1952
|
+
}
|
|
1953
|
+
.x-row__item--start-8 {
|
|
1954
|
+
--x-size-start-row-item: 8;
|
|
1955
|
+
}
|
|
1956
|
+
.x-row__item--start-9 {
|
|
1957
|
+
--x-size-start-row-item: 9;
|
|
1958
|
+
}
|
|
1959
|
+
.x-row__item--start-10 {
|
|
1960
|
+
--x-size-start-row-item: 10;
|
|
1961
|
+
}
|
|
1962
|
+
.x-row__item--start-11 {
|
|
1963
|
+
--x-size-start-row-item: 11;
|
|
1964
|
+
}
|
|
1965
|
+
.x-row__item--start-12 {
|
|
1966
|
+
--x-size-start-row-item: 12;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
.x-row--justify-start {
|
|
1970
|
+
--x-size-justify-row: start;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.x-row--align-start {
|
|
1974
|
+
--x-size-align-row: start;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
.x-row--justify-center {
|
|
1978
|
+
--x-size-justify-row: center;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
.x-row--align-center {
|
|
1982
|
+
--x-size-align-row: center;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.x-row--justify-end {
|
|
1986
|
+
--x-size-justify-row: end;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
.x-row--align-end {
|
|
1990
|
+
--x-size-align-row: end;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
.x-row--justify-stretch {
|
|
1994
|
+
--x-size-justify-row: stretch;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
.x-row--align-stretch {
|
|
1998
|
+
--x-size-align-row: stretch;
|
|
1999
|
+
}
|
|
2000
|
+
:root {
|
|
2001
|
+
--x-size-gap-row: 0;
|
|
2002
|
+
--x-size-padding-row: 0;
|
|
2003
|
+
--x-size-justify-row: stretch;
|
|
2004
|
+
--x-size-align-row: center;
|
|
2005
|
+
--x-size-span-row-item: 1;
|
|
2006
|
+
--x-size-start-row-item: 0;
|
|
2007
|
+
}
|
|
1880
2008
|
:root {
|
|
1881
2009
|
--x-string-overflow-scroll: auto;
|
|
1882
2010
|
--x-color-background-scroll-bar: transparent;
|
|
@@ -2106,6 +2234,11 @@
|
|
|
2106
2234
|
--x-color-text-suggestion-default-matching: var(--x-color-text-suggestion-default);
|
|
2107
2235
|
--x-color-background-suggestion-default: transparent;
|
|
2108
2236
|
--x-color-border-suggestion-default: var(--x-color-text-suggestion-default);
|
|
2237
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default);
|
|
2238
|
+
--x-color-text-suggestion-matching-part-default-curated: var(--x-color-text-suggestion-matching-part-default);
|
|
2239
|
+
--x-color-text-suggestion-default-matching-curated: var(--x-color-text-suggestion-default-matching);
|
|
2240
|
+
--x-color-background-suggestion-default-curated: var(--x-color-background-suggestion-default);
|
|
2241
|
+
--x-color-border-suggestion-default-curated: var(--x-color-border-suggestion-default);
|
|
2109
2242
|
--x-size-padding-top-suggestion-default: var(--x-size-base-01);
|
|
2110
2243
|
--x-size-padding-right-suggestion-default: 0;
|
|
2111
2244
|
--x-size-padding-bottom-suggestion-default: var(--x-size-base-02);
|
|
@@ -2139,6 +2272,26 @@
|
|
|
2139
2272
|
--x-number-font-weight-suggestion-default-matching: var(
|
|
2140
2273
|
--x-number-font-weight-suggestion-default
|
|
2141
2274
|
);
|
|
2275
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default);
|
|
2276
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default);
|
|
2277
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default);
|
|
2278
|
+
--x-number-font-weight-suggestion-default-curated: var(--x-number-font-weight-suggestion-default);
|
|
2279
|
+
--x-font-family-suggestion-matching-part-default-curated: var(--x-font-family-suggestion-matching-part-default);
|
|
2280
|
+
--x-size-font-suggestion-matching-part-default-curated: var(--x-size-font-suggestion-matching-part-default);
|
|
2281
|
+
--x-size-line-height-suggestion-matching-part-default-curated: var(
|
|
2282
|
+
--x-size-line-height-suggestion-matching-part-default
|
|
2283
|
+
);
|
|
2284
|
+
--x-number-font-weight-suggestion-matching-part-default-curated: var(
|
|
2285
|
+
--x-number-font-weight-suggestion-matching-part-default
|
|
2286
|
+
);
|
|
2287
|
+
--x-font-family-suggestion-default-matching-curated: var(--x-font-family-suggestion-default-matching);
|
|
2288
|
+
--x-size-font-suggestion-default-matching-curated: var(--x-size-font-suggestion-default-matching);
|
|
2289
|
+
--x-size-line-height-suggestion-default-matching-curated: var(
|
|
2290
|
+
--x-size-line-height-suggestion-default-matching
|
|
2291
|
+
);
|
|
2292
|
+
--x-number-font-weight-suggestion-default-matching-curated: var(
|
|
2293
|
+
--x-number-font-weight-suggestion-default-matching
|
|
2294
|
+
);
|
|
2142
2295
|
}
|
|
2143
2296
|
|
|
2144
2297
|
[dir="ltr"] .x-suggestion {
|
|
@@ -2233,6 +2386,32 @@
|
|
|
2233
2386
|
.x-suggestion > .x-identifier-result {
|
|
2234
2387
|
flex: none;
|
|
2235
2388
|
}
|
|
2389
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated {
|
|
2390
|
+
background-color: var(--x-color-background-suggestion-default-curated);
|
|
2391
|
+
color: var(--x-color-text-suggestion-default-curated);
|
|
2392
|
+
border-color: var(--x-color-border-suggestion-default-curated);
|
|
2393
|
+
font-family: var(--x-font-family-suggestion-default-curated);
|
|
2394
|
+
font-size: var(--x-size-font-suggestion-default-curated);
|
|
2395
|
+
line-height: var(--x-size-line-height-suggestion-default-curated);
|
|
2396
|
+
font-weight: var(--x-number-font-weight-suggestion-default-curated);
|
|
2397
|
+
}
|
|
2398
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated .x-suggestion__matching-part,
|
|
2399
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated .x-identifier-result__matching-part {
|
|
2400
|
+
font-family: var(--x-font-family-suggestion-matching-part-default-curated);
|
|
2401
|
+
font-size: var(--x-size-font-suggestion-matching-part-default-curated);
|
|
2402
|
+
line-height: var(--x-size-line-height-suggestion-matching-part-default-curated);
|
|
2403
|
+
font-weight: var(--x-number-font-weight-suggestion-matching-part-default-curated);
|
|
2404
|
+
color: var(--x-color-text-suggestion-matching-part-default-curated);
|
|
2405
|
+
}
|
|
2406
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated.x-suggestion--matching {
|
|
2407
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default-matching-curated);
|
|
2408
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default-matching-curated);
|
|
2409
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default-matching-curated);
|
|
2410
|
+
--x-number-font-weight-suggestion-default-curated: var(
|
|
2411
|
+
--x-number-font-weight-suggestion-default-matching-curated
|
|
2412
|
+
);
|
|
2413
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default-matching-curated);
|
|
2414
|
+
}
|
|
2236
2415
|
:root {
|
|
2237
2416
|
--x-string-align-items-suggestion-default: center;
|
|
2238
2417
|
--x-color-text-suggestion-default: var(--x-color-text-default);
|
|
@@ -2240,6 +2419,11 @@
|
|
|
2240
2419
|
--x-color-text-suggestion-default-matching: var(--x-color-text-suggestion-default);
|
|
2241
2420
|
--x-color-background-suggestion-default: transparent;
|
|
2242
2421
|
--x-color-border-suggestion-default: var(--x-color-text-suggestion-default);
|
|
2422
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default);
|
|
2423
|
+
--x-color-text-suggestion-matching-part-default-curated: var(--x-color-text-suggestion-matching-part-default);
|
|
2424
|
+
--x-color-text-suggestion-default-matching-curated: var(--x-color-text-suggestion-default-matching);
|
|
2425
|
+
--x-color-background-suggestion-default-curated: var(--x-color-background-suggestion-default);
|
|
2426
|
+
--x-color-border-suggestion-default-curated: var(--x-color-border-suggestion-default);
|
|
2243
2427
|
--x-size-padding-top-suggestion-default: var(--x-size-base-01);
|
|
2244
2428
|
--x-size-padding-right-suggestion-default: 0;
|
|
2245
2429
|
--x-size-padding-bottom-suggestion-default: var(--x-size-base-02);
|
|
@@ -2273,6 +2457,26 @@
|
|
|
2273
2457
|
--x-number-font-weight-suggestion-default-matching: var(
|
|
2274
2458
|
--x-number-font-weight-suggestion-default
|
|
2275
2459
|
);
|
|
2460
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default);
|
|
2461
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default);
|
|
2462
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default);
|
|
2463
|
+
--x-number-font-weight-suggestion-default-curated: var(--x-number-font-weight-suggestion-default);
|
|
2464
|
+
--x-font-family-suggestion-matching-part-default-curated: var(--x-font-family-suggestion-matching-part-default);
|
|
2465
|
+
--x-size-font-suggestion-matching-part-default-curated: var(--x-size-font-suggestion-matching-part-default);
|
|
2466
|
+
--x-size-line-height-suggestion-matching-part-default-curated: var(
|
|
2467
|
+
--x-size-line-height-suggestion-matching-part-default
|
|
2468
|
+
);
|
|
2469
|
+
--x-number-font-weight-suggestion-matching-part-default-curated: var(
|
|
2470
|
+
--x-number-font-weight-suggestion-matching-part-default
|
|
2471
|
+
);
|
|
2472
|
+
--x-font-family-suggestion-default-matching-curated: var(--x-font-family-suggestion-default-matching);
|
|
2473
|
+
--x-size-font-suggestion-default-matching-curated: var(--x-size-font-suggestion-default-matching);
|
|
2474
|
+
--x-size-line-height-suggestion-default-matching-curated: var(
|
|
2475
|
+
--x-size-line-height-suggestion-default-matching
|
|
2476
|
+
);
|
|
2477
|
+
--x-number-font-weight-suggestion-default-matching-curated: var(
|
|
2478
|
+
--x-number-font-weight-suggestion-default-matching
|
|
2479
|
+
);
|
|
2276
2480
|
}
|
|
2277
2481
|
:root {
|
|
2278
2482
|
--x-color-background-tag-default: var(--x-color-base-neutral-100);
|
|
@@ -2698,132 +2902,4 @@
|
|
|
2698
2902
|
--x-size-line-height-base-s: 16px;
|
|
2699
2903
|
--x-size-line-height-base-m: 24px;
|
|
2700
2904
|
--x-size-line-height-base-l: 32px;
|
|
2701
|
-
}
|
|
2702
|
-
:root {
|
|
2703
|
-
--x-size-gap-row: 0;
|
|
2704
|
-
--x-size-padding-row: 0;
|
|
2705
|
-
--x-size-justify-row: stretch;
|
|
2706
|
-
--x-size-align-row: center;
|
|
2707
|
-
--x-size-span-row-item: 1;
|
|
2708
|
-
--x-size-start-row-item: 0;
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
.x-row {
|
|
2712
|
-
display: grid;
|
|
2713
|
-
grid-template-columns: repeat(12, 1fr);
|
|
2714
|
-
grid-template-rows: 1fr;
|
|
2715
|
-
justify-items: var(--x-size-justify-row);
|
|
2716
|
-
align-items: var(--x-size-align-row);
|
|
2717
|
-
padding: var(--x-size-padding-row);
|
|
2718
|
-
gap: var(--x-size-gap-row);
|
|
2719
|
-
margin: 0;
|
|
2720
|
-
}
|
|
2721
|
-
.x-row__item {
|
|
2722
|
-
grid-column-start: var(--x-size-start-row-item);
|
|
2723
|
-
grid-column-end: span var(--x-size-span-row-item);
|
|
2724
|
-
list-style: none;
|
|
2725
|
-
}
|
|
2726
|
-
.x-row__item--span-1 {
|
|
2727
|
-
--x-size-span-row-item: 1;
|
|
2728
|
-
}
|
|
2729
|
-
.x-row__item--span-2 {
|
|
2730
|
-
--x-size-span-row-item: 2;
|
|
2731
|
-
}
|
|
2732
|
-
.x-row__item--span-3 {
|
|
2733
|
-
--x-size-span-row-item: 3;
|
|
2734
|
-
}
|
|
2735
|
-
.x-row__item--span-4 {
|
|
2736
|
-
--x-size-span-row-item: 4;
|
|
2737
|
-
}
|
|
2738
|
-
.x-row__item--span-5 {
|
|
2739
|
-
--x-size-span-row-item: 5;
|
|
2740
|
-
}
|
|
2741
|
-
.x-row__item--span-6 {
|
|
2742
|
-
--x-size-span-row-item: 6;
|
|
2743
|
-
}
|
|
2744
|
-
.x-row__item--span-7 {
|
|
2745
|
-
--x-size-span-row-item: 7;
|
|
2746
|
-
}
|
|
2747
|
-
.x-row__item--span-8 {
|
|
2748
|
-
--x-size-span-row-item: 8;
|
|
2749
|
-
}
|
|
2750
|
-
.x-row__item--span-9 {
|
|
2751
|
-
--x-size-span-row-item: 9;
|
|
2752
|
-
}
|
|
2753
|
-
.x-row__item--span-10 {
|
|
2754
|
-
--x-size-span-row-item: 10;
|
|
2755
|
-
}
|
|
2756
|
-
.x-row__item--span-11 {
|
|
2757
|
-
--x-size-span-row-item: 11;
|
|
2758
|
-
}
|
|
2759
|
-
.x-row__item--span-12 {
|
|
2760
|
-
--x-size-span-row-item: 12;
|
|
2761
|
-
}
|
|
2762
|
-
.x-row__item--start-1 {
|
|
2763
|
-
--x-size-start-row-item: 1;
|
|
2764
|
-
}
|
|
2765
|
-
.x-row__item--start-2 {
|
|
2766
|
-
--x-size-start-row-item: 2;
|
|
2767
|
-
}
|
|
2768
|
-
.x-row__item--start-3 {
|
|
2769
|
-
--x-size-start-row-item: 3;
|
|
2770
|
-
}
|
|
2771
|
-
.x-row__item--start-4 {
|
|
2772
|
-
--x-size-start-row-item: 4;
|
|
2773
|
-
}
|
|
2774
|
-
.x-row__item--start-5 {
|
|
2775
|
-
--x-size-start-row-item: 5;
|
|
2776
|
-
}
|
|
2777
|
-
.x-row__item--start-6 {
|
|
2778
|
-
--x-size-start-row-item: 6;
|
|
2779
|
-
}
|
|
2780
|
-
.x-row__item--start-7 {
|
|
2781
|
-
--x-size-start-row-item: 7;
|
|
2782
|
-
}
|
|
2783
|
-
.x-row__item--start-8 {
|
|
2784
|
-
--x-size-start-row-item: 8;
|
|
2785
|
-
}
|
|
2786
|
-
.x-row__item--start-9 {
|
|
2787
|
-
--x-size-start-row-item: 9;
|
|
2788
|
-
}
|
|
2789
|
-
.x-row__item--start-10 {
|
|
2790
|
-
--x-size-start-row-item: 10;
|
|
2791
|
-
}
|
|
2792
|
-
.x-row__item--start-11 {
|
|
2793
|
-
--x-size-start-row-item: 11;
|
|
2794
|
-
}
|
|
2795
|
-
.x-row__item--start-12 {
|
|
2796
|
-
--x-size-start-row-item: 12;
|
|
2797
|
-
}
|
|
2798
|
-
|
|
2799
|
-
.x-row--justify-start {
|
|
2800
|
-
--x-size-justify-row: start;
|
|
2801
|
-
}
|
|
2802
|
-
|
|
2803
|
-
.x-row--align-start {
|
|
2804
|
-
--x-size-align-row: start;
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2807
|
-
.x-row--justify-center {
|
|
2808
|
-
--x-size-justify-row: center;
|
|
2809
|
-
}
|
|
2810
|
-
|
|
2811
|
-
.x-row--align-center {
|
|
2812
|
-
--x-size-align-row: center;
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
.x-row--justify-end {
|
|
2816
|
-
--x-size-justify-row: end;
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
-
.x-row--align-end {
|
|
2820
|
-
--x-size-align-row: end;
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
.x-row--justify-stretch {
|
|
2824
|
-
--x-size-justify-row: stretch;
|
|
2825
|
-
}
|
|
2826
|
-
|
|
2827
|
-
.x-row--align-stretch {
|
|
2828
|
-
--x-size-align-row: stretch;
|
|
2829
2905
|
}
|
|
@@ -3812,6 +3812,32 @@
|
|
|
3812
3812
|
.x-suggestion > .x-identifier-result {
|
|
3813
3813
|
flex: none;
|
|
3814
3814
|
}
|
|
3815
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated {
|
|
3816
|
+
background-color: var(--x-color-background-suggestion-default-curated);
|
|
3817
|
+
color: var(--x-color-text-suggestion-default-curated);
|
|
3818
|
+
border-color: var(--x-color-border-suggestion-default-curated);
|
|
3819
|
+
font-family: var(--x-font-family-suggestion-default-curated);
|
|
3820
|
+
font-size: var(--x-size-font-suggestion-default-curated);
|
|
3821
|
+
line-height: var(--x-size-line-height-suggestion-default-curated);
|
|
3822
|
+
font-weight: var(--x-number-font-weight-suggestion-default-curated);
|
|
3823
|
+
}
|
|
3824
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated .x-suggestion__matching-part,
|
|
3825
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated .x-identifier-result__matching-part {
|
|
3826
|
+
font-family: var(--x-font-family-suggestion-matching-part-default-curated);
|
|
3827
|
+
font-size: var(--x-size-font-suggestion-matching-part-default-curated);
|
|
3828
|
+
line-height: var(--x-size-line-height-suggestion-matching-part-default-curated);
|
|
3829
|
+
font-weight: var(--x-number-font-weight-suggestion-matching-part-default-curated);
|
|
3830
|
+
color: var(--x-color-text-suggestion-matching-part-default-curated);
|
|
3831
|
+
}
|
|
3832
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated.x-suggestion--matching {
|
|
3833
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default-matching-curated);
|
|
3834
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default-matching-curated);
|
|
3835
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default-matching-curated);
|
|
3836
|
+
--x-number-font-weight-suggestion-default-curated: var(
|
|
3837
|
+
--x-number-font-weight-suggestion-default-matching-curated
|
|
3838
|
+
);
|
|
3839
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default-matching-curated);
|
|
3840
|
+
}
|
|
3815
3841
|
:root {
|
|
3816
3842
|
--x-string-align-items-suggestion-default: center;
|
|
3817
3843
|
--x-color-text-suggestion-default: var(--x-color-text-default);
|
|
@@ -3819,6 +3845,11 @@
|
|
|
3819
3845
|
--x-color-text-suggestion-default-matching: var(--x-color-text-suggestion-default);
|
|
3820
3846
|
--x-color-background-suggestion-default: transparent;
|
|
3821
3847
|
--x-color-border-suggestion-default: var(--x-color-text-suggestion-default);
|
|
3848
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default);
|
|
3849
|
+
--x-color-text-suggestion-matching-part-default-curated: var(--x-color-text-suggestion-matching-part-default);
|
|
3850
|
+
--x-color-text-suggestion-default-matching-curated: var(--x-color-text-suggestion-default-matching);
|
|
3851
|
+
--x-color-background-suggestion-default-curated: var(--x-color-background-suggestion-default);
|
|
3852
|
+
--x-color-border-suggestion-default-curated: var(--x-color-border-suggestion-default);
|
|
3822
3853
|
--x-size-padding-top-suggestion-default: var(--x-size-base-01);
|
|
3823
3854
|
--x-size-padding-right-suggestion-default: 0;
|
|
3824
3855
|
--x-size-padding-bottom-suggestion-default: var(--x-size-base-02);
|
|
@@ -3852,6 +3883,26 @@
|
|
|
3852
3883
|
--x-number-font-weight-suggestion-default-matching: var(
|
|
3853
3884
|
--x-number-font-weight-suggestion-default
|
|
3854
3885
|
);
|
|
3886
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default);
|
|
3887
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default);
|
|
3888
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default);
|
|
3889
|
+
--x-number-font-weight-suggestion-default-curated: var(--x-number-font-weight-suggestion-default);
|
|
3890
|
+
--x-font-family-suggestion-matching-part-default-curated: var(--x-font-family-suggestion-matching-part-default);
|
|
3891
|
+
--x-size-font-suggestion-matching-part-default-curated: var(--x-size-font-suggestion-matching-part-default);
|
|
3892
|
+
--x-size-line-height-suggestion-matching-part-default-curated: var(
|
|
3893
|
+
--x-size-line-height-suggestion-matching-part-default
|
|
3894
|
+
);
|
|
3895
|
+
--x-number-font-weight-suggestion-matching-part-default-curated: var(
|
|
3896
|
+
--x-number-font-weight-suggestion-matching-part-default
|
|
3897
|
+
);
|
|
3898
|
+
--x-font-family-suggestion-default-matching-curated: var(--x-font-family-suggestion-default-matching);
|
|
3899
|
+
--x-size-font-suggestion-default-matching-curated: var(--x-size-font-suggestion-default-matching);
|
|
3900
|
+
--x-size-line-height-suggestion-default-matching-curated: var(
|
|
3901
|
+
--x-size-line-height-suggestion-default-matching
|
|
3902
|
+
);
|
|
3903
|
+
--x-number-font-weight-suggestion-default-matching-curated: var(
|
|
3904
|
+
--x-number-font-weight-suggestion-default-matching
|
|
3905
|
+
);
|
|
3855
3906
|
}
|
|
3856
3907
|
.x-tag--card.x-tag,
|
|
3857
3908
|
.x-tag--card .x-tag {
|
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
--x-color-text-suggestion-default-matching: var(--x-color-text-suggestion-default);
|
|
6
6
|
--x-color-background-suggestion-default: transparent;
|
|
7
7
|
--x-color-border-suggestion-default: var(--x-color-text-suggestion-default);
|
|
8
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default);
|
|
9
|
+
--x-color-text-suggestion-matching-part-default-curated: var(--x-color-text-suggestion-matching-part-default);
|
|
10
|
+
--x-color-text-suggestion-default-matching-curated: var(--x-color-text-suggestion-default-matching);
|
|
11
|
+
--x-color-background-suggestion-default-curated: var(--x-color-background-suggestion-default);
|
|
12
|
+
--x-color-border-suggestion-default-curated: var(--x-color-border-suggestion-default);
|
|
8
13
|
--x-size-padding-top-suggestion-default: var(--x-size-base-01);
|
|
9
14
|
--x-size-padding-right-suggestion-default: 0;
|
|
10
15
|
--x-size-padding-bottom-suggestion-default: var(--x-size-base-02);
|
|
@@ -38,6 +43,26 @@
|
|
|
38
43
|
--x-number-font-weight-suggestion-default-matching: var(
|
|
39
44
|
--x-number-font-weight-suggestion-default
|
|
40
45
|
);
|
|
46
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default);
|
|
47
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default);
|
|
48
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default);
|
|
49
|
+
--x-number-font-weight-suggestion-default-curated: var(--x-number-font-weight-suggestion-default);
|
|
50
|
+
--x-font-family-suggestion-matching-part-default-curated: var(--x-font-family-suggestion-matching-part-default);
|
|
51
|
+
--x-size-font-suggestion-matching-part-default-curated: var(--x-size-font-suggestion-matching-part-default);
|
|
52
|
+
--x-size-line-height-suggestion-matching-part-default-curated: var(
|
|
53
|
+
--x-size-line-height-suggestion-matching-part-default
|
|
54
|
+
);
|
|
55
|
+
--x-number-font-weight-suggestion-matching-part-default-curated: var(
|
|
56
|
+
--x-number-font-weight-suggestion-matching-part-default
|
|
57
|
+
);
|
|
58
|
+
--x-font-family-suggestion-default-matching-curated: var(--x-font-family-suggestion-default-matching);
|
|
59
|
+
--x-size-font-suggestion-default-matching-curated: var(--x-size-font-suggestion-default-matching);
|
|
60
|
+
--x-size-line-height-suggestion-default-matching-curated: var(
|
|
61
|
+
--x-size-line-height-suggestion-default-matching
|
|
62
|
+
);
|
|
63
|
+
--x-number-font-weight-suggestion-default-matching-curated: var(
|
|
64
|
+
--x-number-font-weight-suggestion-default-matching
|
|
65
|
+
);
|
|
41
66
|
}
|
|
42
67
|
|
|
43
68
|
[dir="ltr"] .x-suggestion {
|
|
@@ -131,4 +156,30 @@
|
|
|
131
156
|
}
|
|
132
157
|
.x-suggestion > .x-identifier-result {
|
|
133
158
|
flex: none;
|
|
159
|
+
}
|
|
160
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated {
|
|
161
|
+
background-color: var(--x-color-background-suggestion-default-curated);
|
|
162
|
+
color: var(--x-color-text-suggestion-default-curated);
|
|
163
|
+
border-color: var(--x-color-border-suggestion-default-curated);
|
|
164
|
+
font-family: var(--x-font-family-suggestion-default-curated);
|
|
165
|
+
font-size: var(--x-size-font-suggestion-default-curated);
|
|
166
|
+
line-height: var(--x-size-line-height-suggestion-default-curated);
|
|
167
|
+
font-weight: var(--x-number-font-weight-suggestion-default-curated);
|
|
168
|
+
}
|
|
169
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated .x-suggestion__matching-part,
|
|
170
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated .x-identifier-result__matching-part {
|
|
171
|
+
font-family: var(--x-font-family-suggestion-matching-part-default-curated);
|
|
172
|
+
font-size: var(--x-size-font-suggestion-matching-part-default-curated);
|
|
173
|
+
line-height: var(--x-size-line-height-suggestion-matching-part-default-curated);
|
|
174
|
+
font-weight: var(--x-number-font-weight-suggestion-matching-part-default-curated);
|
|
175
|
+
color: var(--x-color-text-suggestion-matching-part-default-curated);
|
|
176
|
+
}
|
|
177
|
+
.x-suggestion.x-suggestion.x-suggestion--is-curated.x-suggestion--matching {
|
|
178
|
+
--x-font-family-suggestion-default-curated: var(--x-font-family-suggestion-default-matching-curated);
|
|
179
|
+
--x-size-font-suggestion-default-curated: var(--x-size-font-suggestion-default-matching-curated);
|
|
180
|
+
--x-size-line-height-suggestion-default-curated: var(--x-size-line-height-suggestion-default-matching-curated);
|
|
181
|
+
--x-number-font-weight-suggestion-default-curated: var(
|
|
182
|
+
--x-number-font-weight-suggestion-default-matching-curated
|
|
183
|
+
);
|
|
184
|
+
--x-color-text-suggestion-default-curated: var(--x-color-text-suggestion-default-matching-curated);
|
|
134
185
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseSuggestion](./x-components.basesuggestion.md) > [highlightCurated](./x-components.basesuggestion.highlightcurated.md)
|
|
4
|
+
|
|
5
|
+
## BaseSuggestion.highlightCurated property
|
|
6
|
+
|
|
7
|
+
Indicates if the curated suggestion should be highlighted.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
protected highlightCurated: boolean;
|
|
13
|
+
```
|
|
@@ -22,6 +22,7 @@ export default class BaseSuggestion extends Vue
|
|
|
22
22
|
| [dynamicCSSClasses](./x-components.basesuggestion.dynamiccssclasses.md) | | [VueCSSClasses](./x-components.vuecssclasses.md) | Generates css classes dynamically. |
|
|
23
23
|
| [events](./x-components.basesuggestion.events.md) | | Partial<[XEventsTypes](./x-components.xeventstypes.md)<!-- -->> | The event handler that will be triggered when clicking on a suggestion. |
|
|
24
24
|
| [feature?](./x-components.basesuggestion.feature.md) | | [QueryFeature](./x-components.queryfeature.md) | <i>(Optional)</i> The feature from which the events will be emitted. |
|
|
25
|
+
| [highlightCurated](./x-components.basesuggestion.highlightcurated.md) | | boolean | Indicates if the curated suggestion should be highlighted. |
|
|
25
26
|
| [query](./x-components.basesuggestion.query.md) | | string | The normalized query of the module using this component. |
|
|
26
27
|
| [queryHTML](./x-components.basesuggestion.queryhtml.md) | | string | Highlights the matching part of the suggestion query with the query passed as prop of the component putting it inside a <code><span></code> tag. |
|
|
27
28
|
| [suggestion](./x-components.basesuggestion.suggestion.md) | | Suggestion | The suggestion to render and use in the default slot. |
|
|
@@ -9,14 +9,11 @@ Renders a simple button, emitting the needed events when clicked.
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export default class ClearFilters extends
|
|
12
|
+
export default class ClearFilters extends FacetsMixin
|
|
13
13
|
```
|
|
14
|
-
<b>Extends:</b>
|
|
14
|
+
<b>Extends:</b> FacetsMixin
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Remarks
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
| --- | --- | --- | --- |
|
|
20
|
-
| [alwaysVisible](./x-components.clearfilters.alwaysvisible.md) | | boolean | It handles if the ClearFilters button is always visible no matter if there are not filters selected. If false, the ClearFilters button is not visible whether there are no filters selected. |
|
|
21
|
-
| [facetsIds?](./x-components.clearfilters.facetsids.md) | | Array<Facet\['id'\]> | <i>(Optional)</i> Array of facets ids that will be passed to event like payload. |
|
|
18
|
+
It extends [FacetsMixin](./x-components.facetsmixin.md)<!-- -->.
|
|
22
19
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [every](./x-components.every.md)
|
|
4
|
+
|
|
5
|
+
## every() function
|
|
6
|
+
|
|
7
|
+
Ensures that the given condition is met in all the non-undefined entries of the object.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function every<ObjectType extends Dictionary>(object: ObjectType, condition: (key: keyof ObjectType, value: Exclude<ObjectType[keyof ObjectType], undefined>, index: number) => boolean): boolean;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| object | ObjectType | The object to check if every item meets the given condition. |
|
|
20
|
+
| condition | (key: keyof ObjectType, value: Exclude<ObjectType\[keyof ObjectType\], undefined>, index: number) => boolean | The condition to check in each one of the entries of the object. |
|
|
21
|
+
|
|
22
|
+
<b>Returns:</b>
|
|
23
|
+
|
|
24
|
+
boolean
|
|
25
|
+
|
|
26
|
+
True when all the entries pass the condition. False otherwise.
|
|
27
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [FacetsMixin](./x-components.facetsmixin.md) > [alwaysVisible](./x-components.facetsmixin.alwaysvisible.md)
|
|
4
|
+
|
|
5
|
+
## FacetsMixin.alwaysVisible property
|
|
6
|
+
|
|
7
|
+
Flag to render the component even if there are no filters selected.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
alwaysVisible: boolean;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [FacetsMixin](./x-components.facetsmixin.md) > [facetsIds](./x-components.facetsmixin.facetsids.md)
|
|
4
|
+
|
|
5
|
+
## FacetsMixin.facetsIds property
|
|
6
|
+
|
|
7
|
+
Array of facets ids used to get the selected filters for those facets.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
facetsIds?: Array<Facet['id']>;
|
|
13
|
+
```
|