@empathyco/x-components 5.0.0-alpha.7 → 5.0.0-alpha.9
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 +23 -0
- package/core/index.js +0 -1
- package/core/index.js.map +1 -1
- package/design-system/deprecated-full-theme.css +157 -156
- package/docs/API-reference/api/x-components.bannerslist.md +23 -11
- package/docs/API-reference/api/x-components.basegrid.md +4 -1
- package/docs/API-reference/api/x-components.itemslist.md +35 -11
- package/docs/API-reference/api/x-components.mainscroll.md +47 -20
- package/docs/API-reference/api/x-components.mainscrollitem.md +31 -18
- package/docs/API-reference/api/x-components.md +7 -8
- package/docs/API-reference/api/x-components.nextquerieslist.md +57 -17
- package/docs/API-reference/api/x-components.promotedslist.md +19 -11
- package/docs/API-reference/api/x-components.resultslist.md +20 -24
- package/docs/API-reference/components/common/x-components.items-list.md +5 -4
- package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +8 -8
- package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +4 -4
- package/docs/API-reference/components/search/x-components.banners-list.md +3 -3
- package/docs/API-reference/components/search/x-components.promoteds-list.md +3 -3
- package/docs/API-reference/components/search/x-components.results-list.md +9 -3
- package/js/components/animations/disable-animation.mixin.js +2 -3
- package/js/components/animations/disable-animation.mixin.js.map +1 -1
- package/js/components/base-grid.vue.js +2 -2
- package/js/components/base-grid.vue.js.map +1 -1
- package/js/components/base-grid.vue2.js +16 -7
- package/js/components/base-grid.vue2.js.map +1 -1
- package/js/components/base-grid.vue3.js +1 -1
- package/js/components/items-list.vue.js.map +1 -1
- package/js/components/items-list.vue2.js +52 -31
- package/js/components/items-list.vue2.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue.js +2 -1
- package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue4.js +1 -1
- package/js/components/location-provider.vue.js.map +1 -1
- package/js/components/location-provider.vue2.js +0 -10
- package/js/components/location-provider.vue2.js.map +1 -1
- package/js/composables/use-state.js +1 -1
- package/js/composables/use-state.js.map +1 -1
- package/js/index.js +0 -1
- package/js/index.js.map +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue2.js +0 -1
- package/js/x-modules/extra-params/components/extra-params.vue2.js.map +1 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue2.js +0 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue2.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue2.js +0 -1
- package/js/x-modules/facets/components/clear-filters.vue2.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets-provider.vue2.js +0 -1
- package/js/x-modules/facets/components/facets/facets-provider.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue2.js +0 -1
- package/js/x-modules/facets/components/filters/all-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js +0 -1
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue2.js +0 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue2.js +0 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue2.js +0 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue2.js +0 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue2.js +0 -1
- package/js/x-modules/facets/components/lists/filters-list.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue2.js +0 -1
- package/js/x-modules/facets/components/lists/filters-search.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue2.js +0 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue2.js +0 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue2.js +0 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue2.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue.js +35 -33
- package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue2.js +161 -106
- package/js/x-modules/next-queries/components/next-queries-list.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +0 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue.js +5 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue2.js +111 -208
- package/js/x-modules/scroll/components/main-scroll-item.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll.vue.js +6 -1
- package/js/x-modules/scroll/components/main-scroll.vue.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll.vue2.js +211 -180
- package/js/x-modules/scroll/components/main-scroll.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js +0 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/window-scroll.vue2.js +0 -1
- package/js/x-modules/scroll/components/window-scroll.vue2.js.map +1 -1
- package/js/x-modules/search/components/banners-list.vue.js +35 -33
- package/js/x-modules/search/components/banners-list.vue.js.map +1 -1
- package/js/x-modules/search/components/banners-list.vue2.js +109 -81
- package/js/x-modules/search/components/banners-list.vue2.js.map +1 -1
- package/js/x-modules/search/components/fallback-disclaimer.vue2.js +0 -1
- package/js/x-modules/search/components/fallback-disclaimer.vue2.js.map +1 -1
- package/js/x-modules/search/components/promoteds-list.vue.js +35 -33
- package/js/x-modules/search/components/promoteds-list.vue.js.map +1 -1
- package/js/x-modules/search/components/promoteds-list.vue2.js +79 -50
- package/js/x-modules/search/components/promoteds-list.vue2.js.map +1 -1
- package/js/x-modules/search/components/results-list.vue.js +35 -33
- package/js/x-modules/search/components/results-list.vue.js.map +1 -1
- package/js/x-modules/search/components/results-list.vue2.js +111 -75
- package/js/x-modules/search/components/results-list.vue2.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue2.js +0 -1
- package/js/x-modules/search/components/spellcheck.vue2.js.map +1 -1
- package/js/x-modules/search-box/components/search-input-placeholder.vue2.js +0 -1
- package/js/x-modules/search-box/components/search-input-placeholder.vue2.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js +0 -1
- package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-query.vue2.js +0 -1
- package/js/x-modules/semantic-queries/components/semantic-query.vue2.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue2.js +0 -1
- package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +6190 -4095
- package/report/x-components.api.md +230 -122
- package/types/components/animations/disable-animation.mixin.d.ts.map +1 -1
- package/types/components/base-grid.vue.d.ts +4 -1
- package/types/components/base-grid.vue.d.ts.map +1 -1
- package/types/components/index.d.ts +0 -1
- package/types/components/index.d.ts.map +1 -1
- package/types/components/items-list.vue.d.ts +51 -13
- package/types/components/items-list.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts +72 -40
- package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -1
- package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts +36 -40
- package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts.map +1 -1
- package/types/x-modules/scroll/components/main-scroll.vue.d.ts +58 -90
- package/types/x-modules/scroll/components/main-scroll.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/banners-list.vue.d.ts +25 -42
- package/types/x-modules/search/components/banners-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/promoteds-list.vue.d.ts +21 -19
- package/types/x-modules/search/components/promoteds-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/results-list.vue.d.ts +22 -49
- package/types/x-modules/search/components/results-list.vue.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.bannerslist.animation.md +0 -13
- package/docs/API-reference/api/x-components.bannerslist.stateitems.md +0 -13
- package/docs/API-reference/api/x-components.itemslist.animation.md +0 -13
- package/docs/API-reference/api/x-components.itemslist.items.md +0 -13
- package/docs/API-reference/api/x-components.itemslistinjectionmixin.md +0 -15
- package/docs/API-reference/api/x-components.mainscroll.margin.md +0 -13
- package/docs/API-reference/api/x-components.mainscroll.mounted.md +0 -17
- package/docs/API-reference/api/x-components.mainscroll.restorescrolltimeoutms.md +0 -13
- package/docs/API-reference/api/x-components.mainscroll.threshold.md +0 -13
- package/docs/API-reference/api/x-components.mainscroll.usewindow.md +0 -13
- package/docs/API-reference/api/x-components.mainscroll.visibleelementsobserver.md +0 -13
- package/docs/API-reference/api/x-components.mainscrollitem._el.md +0 -13
- package/docs/API-reference/api/x-components.mainscrollitem.item.md +0 -13
- package/docs/API-reference/api/x-components.mainscrollitem.observeitem.md +0 -25
- package/docs/API-reference/api/x-components.mainscrollitem.tag.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.animation.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.frequency.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.hasmoreitems.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.injectedquery.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.maxgroups.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.maxnextqueriespergroup.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.offset.md +0 -13
- package/docs/API-reference/api/x-components.nextquerieslist.showonlyafteroffset.md +0 -13
- package/docs/API-reference/api/x-components.promotedslist.animation.md +0 -13
- package/docs/API-reference/api/x-components.promotedslist.stateitems.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.animation.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.hasmoreitems.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.items.md +0 -18
- package/docs/API-reference/api/x-components.resultslist.providedquery.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.searchquery.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.searchstatus.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.totalresults.md +0 -13
- package/docs/API-reference/api/x-components.resultslist.updatequery.md +0 -24
- package/js/components/items-list-injection.mixin.js +0 -37
- package/js/components/items-list-injection.mixin.js.map +0 -1
- package/types/components/items-list-injection.mixin.d.ts +0 -35
- package/types/components/items-list-injection.mixin.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.0-alpha.9](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.8...@empathyco/x-components@5.0.0-alpha.9) (2024-05-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* migrate `ItemsListInjection` mixin (#1460) ([a89fb51](https://github.com/empathyco/x/commit/a89fb5179de040695f13d56f43de50917e1c7f97))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [5.0.0-alpha.8](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.7...@empathyco/x-components@5.0.0-alpha.8) (2024-05-08)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* `MainScroll` drops the usage of `NoElement` as root element and uses a div instead. This extra div could break the style of an application that relies on `MainScroll` rendering their content directly.
|
|
21
|
+
`MainScrollItem` drops the usage of `NoElement` if no `tag` prop is passed and uses a div as fallback.
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* migrate `MainScroll` and `MainScrollItem` components (#1456) ([b720132](https://github.com/empathyco/x/commit/b7201322bbf1f5696e80e00622d21d653228177c))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [5.0.0-alpha.7](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.6...@empathyco/x-components@5.0.0-alpha.7) (2024-05-06)
|
|
7
30
|
|
|
8
31
|
|
package/core/index.js
CHANGED
|
@@ -144,7 +144,6 @@ export { Debounce } from '../js/components/decorators/debounce.decorators.js';
|
|
|
144
144
|
export { DISABLE_ANIMATIONS_KEY, HAS_MORE_ITEMS_KEY, LIST_ITEMS_KEY, QUERY_KEY, RESULT_WITH_VARIANTS_KEY, SELECTED_VARIANTS_KEY, SELECT_RESULT_VARIANT_KEY } from '../js/components/decorators/injection.consts.js';
|
|
145
145
|
export { XInject, XProvide } from '../js/components/decorators/injection.decorators.js';
|
|
146
146
|
export { Getter, State } from '../js/components/decorators/store.decorators.js';
|
|
147
|
-
export { ItemsListInjectionMixin } from '../js/components/items-list-injection.mixin.js';
|
|
148
147
|
export { xComponentMixin } from '../js/components/x-component.mixin.js';
|
|
149
148
|
export { getRootXComponent, getXComponentXModuleName, isXComponent } from '../js/components/x-component.utils.js';
|
|
150
149
|
export { createUseDevice } from '../js/composables/create-use-device.composable.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
.x-uppercase {
|
|
2
4
|
text-transform: uppercase;
|
|
3
5
|
}
|
|
@@ -13,26 +15,6 @@
|
|
|
13
15
|
.x-normal-case {
|
|
14
16
|
text-transform: none;
|
|
15
17
|
}
|
|
16
|
-
.x-underline {
|
|
17
|
-
-webkit-text-decoration-line: underline;
|
|
18
|
-
text-decoration-line: underline;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.x-overline {
|
|
22
|
-
-webkit-text-decoration-line: overline;
|
|
23
|
-
text-decoration-line: overline;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.x-line-through {
|
|
27
|
-
-webkit-text-decoration-line: line-through;
|
|
28
|
-
text-decoration-line: line-through;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.x-no-underline {
|
|
32
|
-
-webkit-text-decoration-line: none;
|
|
33
|
-
text-decoration-line: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
18
|
.x-static {
|
|
37
19
|
position: static !important;
|
|
38
20
|
}
|
|
@@ -955,6 +937,48 @@
|
|
|
955
937
|
[dir="rtl"] .x-margin--left-20 {
|
|
956
938
|
margin-right: var(--x-size-base-20) !important;
|
|
957
939
|
}
|
|
940
|
+
.x-line-height--none {
|
|
941
|
+
line-height: 1 !important;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.x-line-height--tight {
|
|
945
|
+
line-height: 1.25 !important;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.x-line-height--snug {
|
|
949
|
+
line-height: 1.375 !important;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.x-line-height--normal {
|
|
953
|
+
line-height: 1.5 !important;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.x-line-height--relaxed {
|
|
957
|
+
line-height: 1.625 !important;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.x-line-height--loose {
|
|
961
|
+
line-height: 2 !important;
|
|
962
|
+
}
|
|
963
|
+
.x-underline {
|
|
964
|
+
-webkit-text-decoration-line: underline;
|
|
965
|
+
text-decoration-line: underline;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.x-overline {
|
|
969
|
+
-webkit-text-decoration-line: overline;
|
|
970
|
+
text-decoration-line: overline;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.x-line-through {
|
|
974
|
+
-webkit-text-decoration-line: line-through;
|
|
975
|
+
text-decoration-line: line-through;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.x-no-underline {
|
|
979
|
+
-webkit-text-decoration-line: none;
|
|
980
|
+
text-decoration-line: none;
|
|
981
|
+
}
|
|
958
982
|
.x-line-clamp--2 {
|
|
959
983
|
overflow: hidden !important;
|
|
960
984
|
display: -webkit-box !important;
|
|
@@ -989,29 +1013,6 @@
|
|
|
989
1013
|
-webkit-box-orient: vertical !important;
|
|
990
1014
|
-webkit-line-clamp: 6 !important;
|
|
991
1015
|
}
|
|
992
|
-
.x-line-height--none {
|
|
993
|
-
line-height: 1 !important;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
.x-line-height--tight {
|
|
997
|
-
line-height: 1.25 !important;
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
.x-line-height--snug {
|
|
1001
|
-
line-height: 1.375 !important;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
.x-line-height--normal {
|
|
1005
|
-
line-height: 1.5 !important;
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
.x-line-height--relaxed {
|
|
1009
|
-
line-height: 1.625 !important;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
.x-line-height--loose {
|
|
1013
|
-
line-height: 2 !important;
|
|
1014
|
-
}
|
|
1015
1016
|
.x-font-weight--light {
|
|
1016
1017
|
font-weight: var(--x-number-font-weight-base-light) !important;
|
|
1017
1018
|
}
|
|
@@ -3285,49 +3286,6 @@
|
|
|
3285
3286
|
[dir="rtl"] .x-border-radius--bottom-right-20 {
|
|
3286
3287
|
border-bottom-left-radius: var(--x-size-base-20) !important;
|
|
3287
3288
|
}
|
|
3288
|
-
.x-border-color--lead {
|
|
3289
|
-
border-color: var(--x-color-base-lead) !important;
|
|
3290
|
-
}
|
|
3291
|
-
|
|
3292
|
-
.x-border-color--auxiliary {
|
|
3293
|
-
border-color: var(--x-color-base-auxiliary) !important;
|
|
3294
|
-
}
|
|
3295
|
-
|
|
3296
|
-
.x-border-color--neutral-10 {
|
|
3297
|
-
border-color: var(--x-color-base-neutral-10) !important;
|
|
3298
|
-
}
|
|
3299
|
-
|
|
3300
|
-
.x-border-color--neutral-35 {
|
|
3301
|
-
border-color: var(--x-color-base-neutral-35) !important;
|
|
3302
|
-
}
|
|
3303
|
-
|
|
3304
|
-
.x-border-color--neutral-70 {
|
|
3305
|
-
border-color: var(--x-color-base-neutral-70) !important;
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3308
|
-
.x-border-color--neutral-95 {
|
|
3309
|
-
border-color: var(--x-color-base-neutral-95) !important;
|
|
3310
|
-
}
|
|
3311
|
-
|
|
3312
|
-
.x-border-color--neutral-100 {
|
|
3313
|
-
border-color: var(--x-color-base-neutral-100) !important;
|
|
3314
|
-
}
|
|
3315
|
-
|
|
3316
|
-
.x-border-color--accent {
|
|
3317
|
-
border-color: var(--x-color-base-accent) !important;
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
.x-border-color--enable {
|
|
3321
|
-
border-color: var(--x-color-base-enable) !important;
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
.x-border-color--disable {
|
|
3325
|
-
border-color: var(--x-color-base-disable) !important;
|
|
3326
|
-
}
|
|
3327
|
-
|
|
3328
|
-
.x-border-color--transparent {
|
|
3329
|
-
border-color: var(--x-color-base-transparent) !important;
|
|
3330
|
-
}
|
|
3331
3289
|
.x-background--lead {
|
|
3332
3290
|
background-color: var(--x-color-base-lead) !important;
|
|
3333
3291
|
}
|
|
@@ -3371,6 +3329,49 @@
|
|
|
3371
3329
|
.x-background--transparent {
|
|
3372
3330
|
background-color: var(--x-color-base-transparent) !important;
|
|
3373
3331
|
}
|
|
3332
|
+
.x-border-color--lead {
|
|
3333
|
+
border-color: var(--x-color-base-lead) !important;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3336
|
+
.x-border-color--auxiliary {
|
|
3337
|
+
border-color: var(--x-color-base-auxiliary) !important;
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
.x-border-color--neutral-10 {
|
|
3341
|
+
border-color: var(--x-color-base-neutral-10) !important;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
.x-border-color--neutral-35 {
|
|
3345
|
+
border-color: var(--x-color-base-neutral-35) !important;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
.x-border-color--neutral-70 {
|
|
3349
|
+
border-color: var(--x-color-base-neutral-70) !important;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
.x-border-color--neutral-95 {
|
|
3353
|
+
border-color: var(--x-color-base-neutral-95) !important;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
.x-border-color--neutral-100 {
|
|
3357
|
+
border-color: var(--x-color-base-neutral-100) !important;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
.x-border-color--accent {
|
|
3361
|
+
border-color: var(--x-color-base-accent) !important;
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
.x-border-color--enable {
|
|
3365
|
+
border-color: var(--x-color-base-enable) !important;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
3368
|
+
.x-border-color--disable {
|
|
3369
|
+
border-color: var(--x-color-base-disable) !important;
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
.x-border-color--transparent {
|
|
3373
|
+
border-color: var(--x-color-base-transparent) !important;
|
|
3374
|
+
}
|
|
3374
3375
|
.x-text--stroke.x-text {
|
|
3375
3376
|
--x-string-text-decoration: line-through;
|
|
3376
3377
|
}
|
|
@@ -3389,6 +3390,9 @@
|
|
|
3389
3390
|
:root {
|
|
3390
3391
|
--x-color-text-secondary: var(--x-color-base-neutral-35);
|
|
3391
3392
|
}
|
|
3393
|
+
.x-text--secondary {
|
|
3394
|
+
--x-color-text-default: var(--x-color-text-secondary);
|
|
3395
|
+
}
|
|
3392
3396
|
.x-text--light.x-text {
|
|
3393
3397
|
--x-number-font-weight-text: var(--x-number-font-weight-base-light);
|
|
3394
3398
|
}
|
|
@@ -3680,52 +3684,6 @@
|
|
|
3680
3684
|
--x-number-font-weight-tag-default-selected
|
|
3681
3685
|
);
|
|
3682
3686
|
}
|
|
3683
|
-
:root {
|
|
3684
|
-
--x-color-background-tag-default: var(--x-color-base-neutral-100);
|
|
3685
|
-
--x-color-border-tag-default: var(--x-color-text-tag-default);
|
|
3686
|
-
--x-color-text-tag-default: var(--x-color-text-default);
|
|
3687
|
-
--x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
|
|
3688
|
-
--x-color-border-tag-default-selected: var(--x-color-border-tag-default);
|
|
3689
|
-
--x-color-text-tag-default-selected: var(--x-color-text-tag-default);
|
|
3690
|
-
--x-color-background-tag-default-curated: var(--x-color-background-tag-default);
|
|
3691
|
-
--x-color-border-tag-default-curated: var(--x-color-border-tag-default);
|
|
3692
|
-
--x-color-text-tag-default-curated: var(--x-color-text-tag-default);
|
|
3693
|
-
--x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
|
|
3694
|
-
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
|
|
3695
|
-
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
|
|
3696
|
-
--x-size-border-width-tag-default: var(--x-size-border-width-base);
|
|
3697
|
-
--x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
|
|
3698
|
-
--x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
|
|
3699
|
-
--x-size-border-width-bottom-tag-default: var(--x-size-border-width-tag-default);
|
|
3700
|
-
--x-size-border-width-left-tag-default: var(--x-size-border-width-tag-default);
|
|
3701
|
-
--x-size-border-radius-tag-default: var(--x-size-border-radius-base-none);
|
|
3702
|
-
--x-size-border-radius-top-left-tag-default: var(--x-size-border-radius-tag-default);
|
|
3703
|
-
--x-size-border-radius-top-right-tag-default: var(--x-size-border-radius-tag-default);
|
|
3704
|
-
--x-size-border-radius-bottom-right-tag-default: var(--x-size-border-radius-tag-default);
|
|
3705
|
-
--x-size-border-radius-bottom-left-tag-default: var(--x-size-border-radius-tag-default);
|
|
3706
|
-
--x-size-height-tag-default: var(--x-size-base-07);
|
|
3707
|
-
--x-size-padding-right-tag-default: var(--x-size-base-04);
|
|
3708
|
-
--x-size-padding-left-tag-default: var(--x-size-base-04);
|
|
3709
|
-
--x-size-gap-tag-default: var(--x-size-base-02);
|
|
3710
|
-
--x-font-family-tag-default: var(--x-font-family-text);
|
|
3711
|
-
--x-size-font-tag-default: var(--x-size-font-text);
|
|
3712
|
-
--x-size-line-height-tag-default: var(--x-size-line-height-text);
|
|
3713
|
-
--x-number-font-weight-tag-default: var(--x-number-font-weight-text);
|
|
3714
|
-
--x-font-family-tag-default-selected: var(--x-font-family-tag-default);
|
|
3715
|
-
--x-size-font-tag-default-selected: var(--x-size-font-tag-default);
|
|
3716
|
-
--x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
|
|
3717
|
-
--x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
|
|
3718
|
-
--x-font-family-tag-default-curated: var(--x-font-family-tag-default);
|
|
3719
|
-
--x-size-font-tag-default-curated: var(--x-size-font-tag-default);
|
|
3720
|
-
--x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
|
|
3721
|
-
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
|
|
3722
|
-
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
|
|
3723
|
-
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
|
|
3724
|
-
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
|
|
3725
|
-
--x-number-font-weight-tag-default-curated-selected: var(
|
|
3726
|
-
--x-number-font-weight-tag-default-selected
|
|
3727
|
-
);
|
|
3728
|
-
}
|
|
3729
3687
|
|
|
3730
3688
|
[dir="ltr"] .x-tag {
|
|
3731
3689
|
border-left-width: var(--x-size-border-width-left-tag-default);
|
|
@@ -4563,14 +4521,6 @@
|
|
|
4563
4521
|
--x-size-gap-row-19: var(--x-size-base-19);
|
|
4564
4522
|
--x-size-gap-row-20: var(--x-size-base-20);
|
|
4565
4523
|
}
|
|
4566
|
-
:root {
|
|
4567
|
-
--x-size-gap-row: 0;
|
|
4568
|
-
--x-size-padding-row: 0;
|
|
4569
|
-
--x-size-justify-row: stretch;
|
|
4570
|
-
--x-size-align-row: center;
|
|
4571
|
-
--x-size-span-row-item: 1;
|
|
4572
|
-
--x-size-start-row-item: 0;
|
|
4573
|
-
}
|
|
4574
4524
|
:root {
|
|
4575
4525
|
--x-size-gap-row-01: var(--x-size-base-01);
|
|
4576
4526
|
--x-size-gap-row-02: var(--x-size-base-02);
|
|
@@ -4681,6 +4631,14 @@
|
|
|
4681
4631
|
--x-size-span-row-item: 1;
|
|
4682
4632
|
--x-size-start-row-item: 0;
|
|
4683
4633
|
}
|
|
4634
|
+
:root {
|
|
4635
|
+
--x-size-gap-row: 0;
|
|
4636
|
+
--x-size-padding-row: 0;
|
|
4637
|
+
--x-size-justify-row: stretch;
|
|
4638
|
+
--x-size-align-row: center;
|
|
4639
|
+
--x-size-span-row-item: 1;
|
|
4640
|
+
--x-size-start-row-item: 0;
|
|
4641
|
+
}
|
|
4684
4642
|
|
|
4685
4643
|
.x-row {
|
|
4686
4644
|
display: grid;
|
|
@@ -4891,6 +4849,9 @@
|
|
|
4891
4849
|
:root {
|
|
4892
4850
|
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4893
4851
|
}
|
|
4852
|
+
:root {
|
|
4853
|
+
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4854
|
+
}
|
|
4894
4855
|
|
|
4895
4856
|
.x-result.x-result--card {
|
|
4896
4857
|
overflow: hidden;
|
|
@@ -4905,9 +4866,6 @@
|
|
|
4905
4866
|
--x-size-border-radius-progress-bar-default: var(--x-size-border-radius-base-pill);
|
|
4906
4867
|
--x-size-border-width-progress-bar-default: 0;
|
|
4907
4868
|
}
|
|
4908
|
-
:root {
|
|
4909
|
-
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4910
|
-
}
|
|
4911
4869
|
:root {
|
|
4912
4870
|
--x-size-height-progress-bar-line-default: var(--x-size-base-02);
|
|
4913
4871
|
--x-size-width-progress-bar-line-default: var(--x-size-base-20);
|
|
@@ -8429,6 +8387,16 @@
|
|
|
8429
8387
|
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8430
8388
|
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8431
8389
|
}
|
|
8390
|
+
:root {
|
|
8391
|
+
--x-color-background-button-tertiary: var(--x-color-base-neutral-95);
|
|
8392
|
+
--x-color-border-button-tertiary: var(--x-color-base-neutral-70);
|
|
8393
|
+
--x-color-text-button-tertiary: var(--x-color-text-default);
|
|
8394
|
+
--x-size-border-width-button-tertiary: var(--x-size-border-width-base);
|
|
8395
|
+
--x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8396
|
+
--x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8397
|
+
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8398
|
+
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8399
|
+
}
|
|
8432
8400
|
|
|
8433
8401
|
.x-button--tertiary.x-button,
|
|
8434
8402
|
.x-button--tertiary .x-button {
|
|
@@ -8440,16 +8408,6 @@
|
|
|
8440
8408
|
--x-size-border-width-bottom-button-default: var(--x-size-border-width-bottom-button-tertiary);
|
|
8441
8409
|
--x-size-border-width-left-button-default: var(--x-size-border-width-left-button-tertiary);
|
|
8442
8410
|
}
|
|
8443
|
-
:root {
|
|
8444
|
-
--x-color-background-button-tertiary: var(--x-color-base-neutral-95);
|
|
8445
|
-
--x-color-border-button-tertiary: var(--x-color-base-neutral-70);
|
|
8446
|
-
--x-color-text-button-tertiary: var(--x-color-text-default);
|
|
8447
|
-
--x-size-border-width-button-tertiary: var(--x-size-border-width-base);
|
|
8448
|
-
--x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8449
|
-
--x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8450
|
-
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8451
|
-
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8452
|
-
}
|
|
8453
8411
|
:root {
|
|
8454
8412
|
--x-color-background-button-secondary: transparent;
|
|
8455
8413
|
--x-color-border-button-secondary: var(--x-color-border-button-default);
|
|
@@ -8838,6 +8796,49 @@
|
|
|
8838
8796
|
--x-size-border-radius-base-pill: 99999px;
|
|
8839
8797
|
--x-size-border-width-base: 1px;
|
|
8840
8798
|
}
|
|
8841
|
-
|
|
8842
|
-
--x-color-
|
|
8843
|
-
|
|
8799
|
+
:root {
|
|
8800
|
+
--x-color-background-tag-default: var(--x-color-base-neutral-100);
|
|
8801
|
+
--x-color-border-tag-default: var(--x-color-text-tag-default);
|
|
8802
|
+
--x-color-text-tag-default: var(--x-color-text-default);
|
|
8803
|
+
--x-color-background-tag-default-selected: var(--x-color-base-neutral-95);
|
|
8804
|
+
--x-color-border-tag-default-selected: var(--x-color-border-tag-default);
|
|
8805
|
+
--x-color-text-tag-default-selected: var(--x-color-text-tag-default);
|
|
8806
|
+
--x-color-background-tag-default-curated: var(--x-color-background-tag-default);
|
|
8807
|
+
--x-color-border-tag-default-curated: var(--x-color-border-tag-default);
|
|
8808
|
+
--x-color-text-tag-default-curated: var(--x-color-text-tag-default);
|
|
8809
|
+
--x-color-background-tag-default-curated-selected: var(--x-color-background-tag-default-selected);
|
|
8810
|
+
--x-color-border-tag-default-curated-selected: var(--x-color-border-tag-default-selected);
|
|
8811
|
+
--x-color-text-tag-default-curated-selected: var(--x-color-text-tag-default-selected);
|
|
8812
|
+
--x-size-border-width-tag-default: var(--x-size-border-width-base);
|
|
8813
|
+
--x-size-border-width-top-tag-default: var(--x-size-border-width-tag-default);
|
|
8814
|
+
--x-size-border-width-right-tag-default: var(--x-size-border-width-tag-default);
|
|
8815
|
+
--x-size-border-width-bottom-tag-default: var(--x-size-border-width-tag-default);
|
|
8816
|
+
--x-size-border-width-left-tag-default: var(--x-size-border-width-tag-default);
|
|
8817
|
+
--x-size-border-radius-tag-default: var(--x-size-border-radius-base-none);
|
|
8818
|
+
--x-size-border-radius-top-left-tag-default: var(--x-size-border-radius-tag-default);
|
|
8819
|
+
--x-size-border-radius-top-right-tag-default: var(--x-size-border-radius-tag-default);
|
|
8820
|
+
--x-size-border-radius-bottom-right-tag-default: var(--x-size-border-radius-tag-default);
|
|
8821
|
+
--x-size-border-radius-bottom-left-tag-default: var(--x-size-border-radius-tag-default);
|
|
8822
|
+
--x-size-height-tag-default: var(--x-size-base-07);
|
|
8823
|
+
--x-size-padding-right-tag-default: var(--x-size-base-04);
|
|
8824
|
+
--x-size-padding-left-tag-default: var(--x-size-base-04);
|
|
8825
|
+
--x-size-gap-tag-default: var(--x-size-base-02);
|
|
8826
|
+
--x-font-family-tag-default: var(--x-font-family-text);
|
|
8827
|
+
--x-size-font-tag-default: var(--x-size-font-text);
|
|
8828
|
+
--x-size-line-height-tag-default: var(--x-size-line-height-text);
|
|
8829
|
+
--x-number-font-weight-tag-default: var(--x-number-font-weight-text);
|
|
8830
|
+
--x-font-family-tag-default-selected: var(--x-font-family-tag-default);
|
|
8831
|
+
--x-size-font-tag-default-selected: var(--x-size-font-tag-default);
|
|
8832
|
+
--x-size-line-height-tag-default-selected: var(--x-size-line-height-tag-default);
|
|
8833
|
+
--x-number-font-weight-tag-default-selected: var(--x-number-font-weight-tag-default);
|
|
8834
|
+
--x-font-family-tag-default-curated: var(--x-font-family-tag-default);
|
|
8835
|
+
--x-size-font-tag-default-curated: var(--x-size-font-tag-default);
|
|
8836
|
+
--x-size-line-height-tag-default-curated: var(--x-size-line-height-tag-default);
|
|
8837
|
+
--x-number-font-weight-tag-default-curated: var(--x-number-font-weight-tag-default);
|
|
8838
|
+
--x-font-family-tag-default-curated-selected: var(--x-font-family-tag-default-selected);
|
|
8839
|
+
--x-size-font-tag-default-curated-selected: var(--x-size-font-tag-default-selected);
|
|
8840
|
+
--x-size-line-height-tag-default-curated-selected: var(--x-size-line-height-tag-default-selected);
|
|
8841
|
+
--x-number-font-weight-tag-default-curated-selected: var(
|
|
8842
|
+
--x-number-font-weight-tag-default-selected
|
|
8843
|
+
);
|
|
8844
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BannersList](./x-components.bannerslist.md)
|
|
4
4
|
|
|
5
|
-
## BannersList
|
|
5
|
+
## BannersList variable
|
|
6
6
|
|
|
7
7
|
It renders a [ItemsList](./x-components.itemslist.md) list of banners from [SearchState.banners](./x-components.searchstate.banners.md) by default using the `ItemsInjectionMixin`<!-- -->.
|
|
8
8
|
|
|
@@ -13,14 +13,26 @@ It also provides the parent slots to customize the items.
|
|
|
13
13
|
**Signature:**
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
|
|
16
|
+
_default: import("vue").DefineComponent<{
|
|
17
|
+
animation: {
|
|
18
|
+
type: import("vue").PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
items: ComputedRef<ListItem[]>;
|
|
23
|
+
slots: import("vue/types/v3-setup-context").Slots;
|
|
24
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
animation: {
|
|
26
|
+
type: import("vue").PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
animation: string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue").ExtractPropTypes<{}>>, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{}>>> & import("vue").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue").ComponentComputedOptions> & import("vue").ComponentMethodOptions & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{}>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
|
|
31
|
+
props: {}; /**
|
|
32
|
+
* Animation component that will be used to animate the banners.
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
});
|
|
37
|
+
}>
|
|
17
38
|
```
|
|
18
|
-
**Extends:** [ItemsListInjectionMixin](./x-components.itemslistinjectionmixin.md)
|
|
19
|
-
|
|
20
|
-
## Properties
|
|
21
|
-
|
|
22
|
-
| Property | Modifiers | Type | Description |
|
|
23
|
-
| --- | --- | --- | --- |
|
|
24
|
-
| [animation](./x-components.bannerslist.animation.md) | <code>protected</code> | Vue \| string | Animation component that will be used to animate the banners. |
|
|
25
|
-
| [stateItems](./x-components.bannerslist.stateitems.md) | | Banner\[\] | The banners to render from the state. |
|
|
26
|
-
|
|
@@ -25,7 +25,10 @@ _default: import("vue").DefineComponent<{
|
|
|
25
25
|
gridItems: import("vue").ComputedRef<GridItem[]>;
|
|
26
26
|
cssClasses: import("vue").ComputedRef<VueCSSClasses>;
|
|
27
27
|
style: import("vue").ComputedRef<Partial<CSSStyleDeclaration>>;
|
|
28
|
-
gridEl: Ref<HTMLElement |
|
|
28
|
+
gridEl: Ref<HTMLElement | {
|
|
29
|
+
$el: HTMLElement;
|
|
30
|
+
} | null>;
|
|
31
|
+
slots: import("vue/types/v3-setup-context").Slots;
|
|
29
32
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
30
33
|
animation: {
|
|
31
34
|
type: PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -2,21 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ItemsList](./x-components.itemslist.md)
|
|
4
4
|
|
|
5
|
-
## ItemsList
|
|
5
|
+
## ItemsList variable
|
|
6
6
|
|
|
7
7
|
It renders a list of [ListItem](./x-components.listitem.md) providing a slot for each `slotName` which depends on the `modelName`<!-- -->of the item.
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
|
|
12
|
+
_default: import("vue").DefineComponent<{
|
|
13
|
+
animation: {
|
|
14
|
+
type: PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
items: {
|
|
18
|
+
type: PropType<ListItem[]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
itemClass: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
computedItems: import("vue").ComputedRef<{
|
|
26
|
+
dataTest: string;
|
|
27
|
+
class: Array<string | undefined>;
|
|
28
|
+
}[]>;
|
|
29
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
animation: {
|
|
31
|
+
type: PropType<string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
items: {
|
|
35
|
+
type: PropType<ListItem[]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
itemClass: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
41
|
+
}>>, {
|
|
42
|
+
animation: string | import("vue").DefineComponent<{}, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}> | (import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue").ExtractPropTypes<{}>>, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue").ExtractPropTypes<{}>>> & import("vue").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue").ComponentComputedOptions> & import("vue").ComponentMethodOptions & import("vue").ComponentCustomProperties & Readonly<import("vue").ExtractPropTypes<{}>>, any, any, any, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, import("vue").ComponentComputedOptions, import("vue").ComponentMethodOptions, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
|
|
43
|
+
props: {};
|
|
44
|
+
});
|
|
45
|
+
}>
|
|
13
46
|
```
|
|
14
|
-
**Extends:** ItemsList\_base
|
|
15
|
-
|
|
16
|
-
## Properties
|
|
17
|
-
|
|
18
|
-
| Property | Modifiers | Type | Description |
|
|
19
|
-
| --- | --- | --- | --- |
|
|
20
|
-
| [animation](./x-components.itemslist.animation.md) | <code>protected</code> | Vue \| string | Animation component that will be used to animate the list. |
|
|
21
|
-
| [items](./x-components.itemslist.items.md) | <code>protected</code> | [ListItem](./x-components.listitem.md)<!-- -->\[\] | List of items. |
|
|
22
|
-
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [MainScroll](./x-components.mainscroll.md)
|
|
4
4
|
|
|
5
|
-
## MainScroll
|
|
5
|
+
## MainScroll variable
|
|
6
6
|
|
|
7
7
|
Extends the scroll making it able to sync the first visible element, and allowing the children position to be restored.
|
|
8
8
|
|
|
@@ -11,23 +11,50 @@ Each child element that wants to have this support must be wrapped in a [MainScr
|
|
|
11
11
|
**Signature:**
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
|
|
14
|
+
_default: import("vue").DefineComponent<{
|
|
15
|
+
useWindow: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
restoreScrollTimeoutMs: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
threshold: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
margin: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
rootRef: import("vue").Ref<HTMLDivElement | null>;
|
|
33
|
+
dynamicClasses: import("vue").ComputedRef<VueCSSClasses>;
|
|
34
|
+
firstVisibleElement: import("vue").ComputedRef<string>;
|
|
35
|
+
visibleElementsObserver: import("vue").ComputedRef<ScrollVisibilityObserver | null>;
|
|
36
|
+
intersectingElements: import("vue").Ref<HTMLElement[]>;
|
|
37
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
useWindow: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
restoreScrollTimeoutMs: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
threshold: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
margin: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>>, {
|
|
55
|
+
useWindow: boolean;
|
|
56
|
+
restoreScrollTimeoutMs: number;
|
|
57
|
+
threshold: number;
|
|
58
|
+
margin: string;
|
|
59
|
+
}>
|
|
15
60
|
```
|
|
16
|
-
**Extends:** Vue
|
|
17
|
-
|
|
18
|
-
## Properties
|
|
19
|
-
|
|
20
|
-
| Property | Modifiers | Type | Description |
|
|
21
|
-
| --- | --- | --- | --- |
|
|
22
|
-
| [margin](./x-components.mainscroll.margin.md) | | string | Adjusts the size of the scroll container bounds. |
|
|
23
|
-
| [restoreScrollTimeoutMs](./x-components.mainscroll.restorescrolltimeoutms.md) | | number | Timeout in milliseconds to abort trying to restore the scroll position to the target element. |
|
|
24
|
-
| [threshold](./x-components.mainscroll.threshold.md) | | number | Intersection percentage to consider an element visible. |
|
|
25
|
-
| [useWindow](./x-components.mainscroll.usewindow.md) | | boolean | If <code>true</code>, sets this scroll instance to the main of the application. Being the main scroll implies that features like restoring the scroll when the query changes, or storing the scroll position in the URL will be enabled for this container. |
|
|
26
|
-
| [visibleElementsObserver](./x-components.mainscroll.visibleelementsobserver.md) | <code>readonly</code> | [ScrollVisibilityObserver](./x-components.scrollvisibilityobserver.md) \| null | Creates an <code>IntersectionObserver</code> to detect the first visible elements. Children of this component should register themselves if they want to be observed. |
|
|
27
|
-
|
|
28
|
-
## Methods
|
|
29
|
-
|
|
30
|
-
| Method | Modifiers | Description |
|
|
31
|
-
| --- | --- | --- |
|
|
32
|
-
| [mounted()](./x-components.mainscroll.mounted.md) | | Initialise the observer after mounting the component. |
|
|
33
|
-
|