@empathyco/x-components 3.0.0-alpha.132 → 3.0.0-alpha.135
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 +39 -0
- package/core/index.js +1 -0
- package/core/index.js.map +1 -1
- package/design-system/full-theme.css +36 -35
- package/docs/API-reference/api/x-components.basemodal.animation.md +1 -1
- package/docs/API-reference/api/x-components.basemodal.iswaitingforleave.md +13 -0
- package/docs/API-reference/api/x-components.basemodal.md +3 -2
- package/docs/API-reference/api/x-components.basemodal.overlayanimation.md +13 -0
- package/docs/API-reference/api/x-components.crossfade.md +1 -1
- package/docs/API-reference/api/x-components.fade.md +15 -0
- package/docs/API-reference/api/x-components.md +2 -1
- package/docs/API-reference/components/common/animations/x-components.cross-fade.md +1 -1
- package/docs/API-reference/components/common/animations/x-components.fade.md +48 -0
- package/docs/API-reference/components/common/modals/x-components.base-modal.md +5 -4
- package/js/components/animations/animate-width.vue.js +11 -3
- package/js/components/animations/animate-width.vue.js.map +1 -1
- package/js/components/animations/animate-width.vue_rollup-plugin-vue_script.vue.js +3 -1
- package/js/components/animations/animate-width.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/animations/collapse-height.vue.js +14 -9
- package/js/components/animations/collapse-height.vue.js.map +1 -1
- package/js/components/animations/collapse-height.vue_rollup-plugin-vue_script.vue.js +2 -1
- package/js/components/animations/collapse-height.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/animations/collapse-width.vue.js +14 -9
- package/js/components/animations/collapse-width.vue.js.map +1 -1
- package/js/components/animations/collapse-width.vue_rollup-plugin-vue_script.vue.js +2 -1
- package/js/components/animations/collapse-width.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/animations/create-directional-animation-factory.js +6 -1
- package/js/components/animations/create-directional-animation-factory.js.map +1 -1
- package/js/components/animations/cross-fade.vue.js +8 -3
- package/js/components/animations/cross-fade.vue.js.map +1 -1
- package/js/components/animations/cross-fade.vue_rollup-plugin-vue_script.vue.js +4 -2
- package/js/components/animations/cross-fade.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/animations/fade-and-slide.vue.js +11 -6
- package/js/components/animations/fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/fade-and-slide.vue_rollup-plugin-vue_script.vue.js +3 -1
- package/js/components/animations/fade-and-slide.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/animations/fade.vue.js +63 -0
- package/js/components/animations/fade.vue.js.map +1 -0
- package/js/components/animations/fade.vue_rollup-plugin-vue_script.vue.js +21 -0
- package/js/components/animations/fade.vue_rollup-plugin-vue_script.vue.js.map +1 -0
- package/js/components/animations/staggered-fade-and-slide.vue.js +2 -2
- package/js/components/animations/staggered-fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue_rollup-plugin-vue_script.vue.js +2 -1
- package/js/components/animations/staggered-fade-and-slide.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/layouts/layouts.mixin.js +1 -1
- package/js/components/layouts/layouts.mixin.js.map +1 -1
- package/js/components/modals/base-modal.vue.js +47 -32
- package/js/components/modals/base-modal.vue.js.map +1 -1
- package/js/components/modals/base-modal.vue_rollup-plugin-vue_script.vue.js +6 -2
- package/js/components/modals/base-modal.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/index.js +1 -0
- package/js/index.js.map +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue_script.vue.js +1 -0
- 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-provider.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/scroll/components/scroll-to-top.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/scroll/components/window-scroll.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/scroll/components/window-scroll.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/search/components/sort.mixin.js +1 -0
- package/js/x-modules/search/components/sort.mixin.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue_rollup-plugin-vue_script.vue.js +1 -0
- package/js/x-modules/url/components/url-handler.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +77 -17
- package/report/x-components.api.md +6 -1
- package/types/components/animations/animate-width.vue.d.ts.map +1 -1
- package/types/components/animations/collapse-height.vue.d.ts.map +1 -1
- package/types/components/animations/collapse-width.vue.d.ts.map +1 -1
- package/types/components/animations/create-directional-animation-factory.d.ts.map +1 -1
- package/types/components/animations/cross-fade.vue.d.ts +1 -1
- package/types/components/animations/cross-fade.vue.d.ts.map +1 -1
- package/types/components/animations/fade-and-slide.vue.d.ts.map +1 -1
- package/types/components/animations/fade.vue.d.ts +10 -0
- package/types/components/animations/fade.vue.d.ts.map +1 -0
- package/types/components/animations/index.d.ts +1 -0
- package/types/components/animations/index.d.ts.map +1 -1
- package/types/components/animations/staggered-fade-and-slide.vue.d.ts.map +1 -1
- package/types/components/modals/base-modal.vue.d.ts +8 -3
- package/types/components/modals/base-modal.vue.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.basemodal.showoverlay.md +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
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.135](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.134...@empathyco/x-components@3.0.0-alpha.135) (2022-07-21)
|
|
7
|
+
|
|
8
|
+
### Testing
|
|
9
|
+
|
|
10
|
+
- **e2e:** search modal re-opens properly after being closed (#613)
|
|
11
|
+
([43282ab](https://github.com/empathyco/x/commit/43282ab1d0ab54af7794c88c89aa8e62326d73d8)),
|
|
12
|
+
closes [EX-6708](https://searchbroker.atlassian.net/browse/EX-6708)
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
## [3.0.0-alpha.134](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.133...@empathyco/x-components@3.0.0-alpha.134) (2022-07-20)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- **components:** now properly checks if a has content (#612)
|
|
24
|
+
([ad2f6dc](https://github.com/empathyco/x/commit/ad2f6dc522d9da59dde2e2c5f90510c0f93380ab)),
|
|
25
|
+
closes [EX-6681](https://searchbroker.atlassian.net/browse/EX-6681)
|
|
26
|
+
|
|
27
|
+
# Change Log
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file. See
|
|
30
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
31
|
+
|
|
32
|
+
## [3.0.0-alpha.133](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.132...@empathyco/x-components@3.0.0-alpha.133) (2022-07-15)
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **components:** Add option to extend transitions with listeners and attributes (#600)
|
|
37
|
+
([16d5262](https://github.com/empathyco/x/commit/16d5262ab2213d53c736e89774089313755abeff)),
|
|
38
|
+
closes [EX-6457](https://searchbroker.atlassian.net/browse/EX-6457)
|
|
39
|
+
|
|
40
|
+
# Change Log
|
|
41
|
+
|
|
42
|
+
All notable changes to this project will be documented in this file. See
|
|
43
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
44
|
+
|
|
6
45
|
## [3.0.0-alpha.132](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.131...@empathyco/x-components@3.0.0-alpha.132) (2022-07-14)
|
|
7
46
|
|
|
8
47
|
### Features
|
package/core/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { default as AnimateWidth } from '../js/components/animations/animate-wid
|
|
|
2
2
|
export { default as CollapseHeight } from '../js/components/animations/collapse-height.vue.js';
|
|
3
3
|
export { default as CollapseWidth } from '../js/components/animations/collapse-width.vue.js';
|
|
4
4
|
export { default as CrossFade } from '../js/components/animations/cross-fade.vue.js';
|
|
5
|
+
export { default as Fade } from '../js/components/animations/fade.vue.js';
|
|
5
6
|
export { default as FadeAndSlide } from '../js/components/animations/fade-and-slide.vue.js';
|
|
6
7
|
export { default as StaggeredFadeAndSlide } from '../js/components/animations/staggered-fade-and-slide.vue.js';
|
|
7
8
|
export { default as StaggeringTransitionGroup } from '../js/components/animations/staggering-transition-group.vue.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,41 +5,6 @@
|
|
|
5
5
|
--x-size-border-radius-base-pill: 99999px;
|
|
6
6
|
--x-size-border-width-base: 1px;
|
|
7
7
|
}
|
|
8
|
-
:root {
|
|
9
|
-
--x-color-base-lead: #36515b;
|
|
10
|
-
--x-color-base-auxiliary: #667981;
|
|
11
|
-
--x-color-base-neutral-10: #1a1a1a;
|
|
12
|
-
--x-color-base-neutral-35: #595959;
|
|
13
|
-
--x-color-base-neutral-70: #b3b3b3;
|
|
14
|
-
--x-color-base-neutral-95: #f2f2f2;
|
|
15
|
-
--x-color-base-neutral-100: #ffffff;
|
|
16
|
-
--x-color-base-accent: #b90276;
|
|
17
|
-
--x-color-base-enable: #00705c;
|
|
18
|
-
--x-color-base-disable: #e11f26;
|
|
19
|
-
--x-color-base-transparent: transparent;
|
|
20
|
-
}
|
|
21
|
-
:root {
|
|
22
|
-
--x-size-base-01: 2px;
|
|
23
|
-
--x-size-base-02: 4px;
|
|
24
|
-
--x-size-base-03: 8px;
|
|
25
|
-
--x-size-base-04: 12px;
|
|
26
|
-
--x-size-base-05: 16px;
|
|
27
|
-
--x-size-base-06: 24px;
|
|
28
|
-
--x-size-base-07: 32px;
|
|
29
|
-
--x-size-base-08: 40px;
|
|
30
|
-
--x-size-base-09: 48px;
|
|
31
|
-
--x-size-base-10: 56px;
|
|
32
|
-
--x-size-base-11: 64px;
|
|
33
|
-
--x-size-base-12: 72px;
|
|
34
|
-
--x-size-base-13: 80px;
|
|
35
|
-
--x-size-base-14: 96px;
|
|
36
|
-
--x-size-base-15: 112px;
|
|
37
|
-
--x-size-base-16: 144px;
|
|
38
|
-
--x-size-base-17: 176px;
|
|
39
|
-
--x-size-base-18: 208px;
|
|
40
|
-
--x-size-base-19: 240px;
|
|
41
|
-
--x-size-base-20: 272px;
|
|
42
|
-
}
|
|
43
8
|
:root {
|
|
44
9
|
--x-font-family-base: "Montserrat", sans-serif;
|
|
45
10
|
--x-size-font-base-xs: 12px;
|
|
@@ -7613,3 +7578,39 @@
|
|
|
7613
7578
|
.x-normal-case {
|
|
7614
7579
|
text-transform: none;
|
|
7615
7580
|
}
|
|
7581
|
+
|
|
7582
|
+
:root {
|
|
7583
|
+
--x-size-base-01: 2px;
|
|
7584
|
+
--x-size-base-02: 4px;
|
|
7585
|
+
--x-size-base-03: 8px;
|
|
7586
|
+
--x-size-base-04: 12px;
|
|
7587
|
+
--x-size-base-05: 16px;
|
|
7588
|
+
--x-size-base-06: 24px;
|
|
7589
|
+
--x-size-base-07: 32px;
|
|
7590
|
+
--x-size-base-08: 40px;
|
|
7591
|
+
--x-size-base-09: 48px;
|
|
7592
|
+
--x-size-base-10: 56px;
|
|
7593
|
+
--x-size-base-11: 64px;
|
|
7594
|
+
--x-size-base-12: 72px;
|
|
7595
|
+
--x-size-base-13: 80px;
|
|
7596
|
+
--x-size-base-14: 96px;
|
|
7597
|
+
--x-size-base-15: 112px;
|
|
7598
|
+
--x-size-base-16: 144px;
|
|
7599
|
+
--x-size-base-17: 176px;
|
|
7600
|
+
--x-size-base-18: 208px;
|
|
7601
|
+
--x-size-base-19: 240px;
|
|
7602
|
+
--x-size-base-20: 272px;
|
|
7603
|
+
}
|
|
7604
|
+
:root {
|
|
7605
|
+
--x-color-base-lead: #36515b;
|
|
7606
|
+
--x-color-base-auxiliary: #667981;
|
|
7607
|
+
--x-color-base-neutral-10: #1a1a1a;
|
|
7608
|
+
--x-color-base-neutral-35: #595959;
|
|
7609
|
+
--x-color-base-neutral-70: #b3b3b3;
|
|
7610
|
+
--x-color-base-neutral-95: #f2f2f2;
|
|
7611
|
+
--x-color-base-neutral-100: #ffffff;
|
|
7612
|
+
--x-color-base-accent: #b90276;
|
|
7613
|
+
--x-color-base-enable: #00705c;
|
|
7614
|
+
--x-color-base-disable: #e11f26;
|
|
7615
|
+
--x-color-base-transparent: transparent;
|
|
7616
|
+
}
|
|
@@ -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) > [BaseModal](./x-components.basemodal.md) > [isWaitingForLeave](./x-components.basemodal.iswaitingforleave.md)
|
|
4
|
+
|
|
5
|
+
## BaseModal.isWaitingForLeave property
|
|
6
|
+
|
|
7
|
+
Boolean to delay the leave animation until it has completed.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
protected isWaitingForLeave: boolean;
|
|
13
|
+
```
|
|
@@ -18,11 +18,12 @@ export default class BaseModal extends Vue
|
|
|
18
18
|
| Property | Modifiers | Type | Description |
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
20
|
| [$refs](./x-components.basemodal._refs.md) | | { modal: HTMLDivElement; } | |
|
|
21
|
-
| [animation](./x-components.basemodal.animation.md) | | Vue \| string | Animation to use for opening/closing the modal. |
|
|
21
|
+
| [animation](./x-components.basemodal.animation.md) | | Vue \| string | Animation to use for opening/closing the modal. This animation only affects the content. |
|
|
22
|
+
| [isWaitingForLeave](./x-components.basemodal.iswaitingforleave.md) | | boolean | Boolean to delay the leave animation until it has completed. |
|
|
22
23
|
| [open](./x-components.basemodal.open.md) | | boolean | Determines if the modal is open or not. |
|
|
24
|
+
| [overlayAnimation](./x-components.basemodal.overlayanimation.md) | | Vue \| string | Animation to use for the overlay (backdrop) part of the modal. By default, it uses a fade transition. |
|
|
23
25
|
| [previousBodyOverflow](./x-components.basemodal.previousbodyoverflow.md) | | string | The previous value of the body overflow style. |
|
|
24
26
|
| [previousHTMLOverflow](./x-components.basemodal.previoushtmloverflow.md) | | string | The previous value of the HTML element overflow style. |
|
|
25
|
-
| [showOverlay](./x-components.basemodal.showoverlay.md) | | boolean | To animate the overlay opacity after and before the animation. |
|
|
26
27
|
|
|
27
28
|
## Methods
|
|
28
29
|
|
|
@@ -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) > [BaseModal](./x-components.basemodal.md) > [overlayAnimation](./x-components.basemodal.overlayanimation.md)
|
|
4
|
+
|
|
5
|
+
## BaseModal.overlayAnimation property
|
|
6
|
+
|
|
7
|
+
Animation to use for the overlay (backdrop) part of the modal. By default, it uses a fade transition.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
overlayAnimation: Vue | string;
|
|
13
|
+
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## CrossFade class
|
|
6
6
|
|
|
7
|
-
Renders a transition wrapping the element passed in the default
|
|
7
|
+
Renders a transition wrapping the element passed in the default slot. The transition fades between the two toggled elements at the same time.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [Fade](./x-components.fade.md)
|
|
4
|
+
|
|
5
|
+
## Fade class
|
|
6
|
+
|
|
7
|
+
Renders a transition wrapping the element passed in the default slot. The animation just fades in/out the element by changing its opacity.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export default class Fade extends Vue
|
|
13
|
+
```
|
|
14
|
+
<b>Extends:</b> Vue
|
|
15
|
+
|
|
@@ -56,7 +56,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
56
56
|
| [CollapseHeight](./x-components.collapseheight.md) | Renders a transition wrapping the element passed in the default slot and animating it with a height animation. |
|
|
57
57
|
| [CollapseWidth](./x-components.collapsewidth.md) | Renders a transition wrapping the element passed in the default slot and animating it with a width animation. |
|
|
58
58
|
| [ColumnPickerMixin](./x-components.columnpickermixin.md) | Mixin to share Column Pickers logic. |
|
|
59
|
-
| [CrossFade](./x-components.crossfade.md) | Renders a transition wrapping the element passed in the default
|
|
59
|
+
| [CrossFade](./x-components.crossfade.md) | Renders a transition wrapping the element passed in the default slot. The transition fades between the two toggled elements at the same time. |
|
|
60
60
|
| [DefaultFacetsService](./x-components.defaultfacetsservice.md) | Default implementation for the [FacetsService](./x-components.facetsservice.md)<!-- -->. |
|
|
61
61
|
| [DefaultPDPAddToCartService](./x-components.defaultpdpaddtocartservice.md) | Default implementation for the [PDPAddToCartService](./x-components.pdpaddtocartservice.md)<!-- -->. |
|
|
62
62
|
| [DeviceDetector](./x-components.devicedetector.md) | This component helps detecting or setting a device, that can be used later to create different layouts optimized for different devices. This detected device is available under the [XComponentAliasAPI.device](./x-components.xcomponentaliasapi.device.md) property. |
|
|
@@ -68,6 +68,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
68
68
|
| [Facets](./x-components.facets.md) | This component renders the list of facets stored in the Facets module. Facets can be rendered differently based on their purpose and this can be achieved using the exposed slots: - A default and required slot. - A custom slot for each facet with the facetId as its name. This allows each facet to be rendered differently based on its needs. |
|
|
69
69
|
| [FacetsMixin](./x-components.facetsmixin.md) | Mixin to share Facets logic. |
|
|
70
70
|
| [FacetsProvider](./x-components.facetsprovider.md) | This component allows to provide facets by prop, to add them to the state of the <code>Facets X-Module</code>. These facets will be added to the <code>Facets X-Module</code> state together with the facets emitted by the <code>Search X-Module</code> through the [SearchXEvents.FacetsChanged](./x-components.searchxevents.facetschanged.md) event. |
|
|
71
|
+
| [Fade](./x-components.fade.md) | Renders a transition wrapping the element passed in the default slot. The animation just fades in/out the element by changing its opacity. |
|
|
71
72
|
| [FadeAndSlide](./x-components.fadeandslide.md) | Renders a transition group wrapping the elements passed in the default slot and animating them with a fade and slide animation. |
|
|
72
73
|
| [FiltersInjectionMixin](./x-components.filtersinjectionmixin.md) | Mixin to share filters injection logic. |
|
|
73
74
|
| [FiltersList](./x-components.filterslist.md) | Renders a list with a list item per each [BooleanFilter](./x-types.booleanfilter.md) in the filters prop array. Each list item has a scoped slot, passing the filter as slot prop. |
|
|
@@ -6,7 +6,7 @@ title: CrossFade
|
|
|
6
6
|
|
|
7
7
|
# CrossFade
|
|
8
8
|
|
|
9
|
-
Renders a transition wrapping the element passed in the default
|
|
9
|
+
Renders a transition wrapping the element passed in the default slot. The transition
|
|
10
10
|
fades between the two toggled elements at the same time.
|
|
11
11
|
|
|
12
12
|
## Slots
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
title: Fade
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fade
|
|
8
|
+
|
|
9
|
+
Renders a transition wrapping the element passed in the default slot. The animation just fades
|
|
10
|
+
in/out the element by changing its opacity.
|
|
11
|
+
|
|
12
|
+
## Slots
|
|
13
|
+
|
|
14
|
+
| Name | Description | Bindings<br />(name - type - description) |
|
|
15
|
+
| -------------------- | ------------------------------------------- | ----------------------------------------- |
|
|
16
|
+
| <code>default</code> | (Required) to add content to the transition | None |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
The `Fade` component is intended to be used as animation to wrap an element with v-if or v-show and
|
|
21
|
+
animate it. The animation just fades in/out the element by changing its opacity.
|
|
22
|
+
|
|
23
|
+
Wrapping a component:
|
|
24
|
+
|
|
25
|
+
```vue live
|
|
26
|
+
<template>
|
|
27
|
+
<div>
|
|
28
|
+
<button @click="shouldRender = !shouldRender">Toggle</button>
|
|
29
|
+
<Fade>
|
|
30
|
+
<p v-if="shouldRender">León is southern Spain</p>
|
|
31
|
+
</Fade>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<script>
|
|
35
|
+
import { Fade } from "@empathyco/x-components";
|
|
36
|
+
export default {
|
|
37
|
+
name: "FadeAnimationDemo",
|
|
38
|
+
component: {
|
|
39
|
+
Fade
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
shouldRender: false
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
</script>
|
|
48
|
+
```
|
|
@@ -11,10 +11,11 @@ complex modals.
|
|
|
11
11
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
|
-
| Name
|
|
15
|
-
|
|
|
16
|
-
| <code>animation</code>
|
|
17
|
-
| <code>
|
|
14
|
+
| Name | Description | Type | Default |
|
|
15
|
+
| ----------------------------- | ---------------------------------------------------------------------------------------------------------- | -------------------- | ---------------------------- |
|
|
16
|
+
| <code>animation</code> | Animation to use for opening/closing the modal. This animation only affects the content. | <code>union</code> | <code>() => NoElement</code> |
|
|
17
|
+
| <code>overlayAnimation</code> | Animation to use for the overlay (backdrop) part of the modal. By default, it uses<br />a fade transition. | <code>union</code> | <code>() => Fade</code> |
|
|
18
|
+
| <code>open</code> | Determines if the modal is open or not. | <code>boolean</code> | <code></code> |
|
|
18
19
|
|
|
19
20
|
## Events
|
|
20
21
|
|
|
@@ -12,7 +12,15 @@ var __vue_render__ = function () {
|
|
|
12
12
|
var _c = _vm._self._c || _h;
|
|
13
13
|
return _c(
|
|
14
14
|
"transition",
|
|
15
|
-
_vm._g(
|
|
15
|
+
_vm._g(
|
|
16
|
+
_vm._b(
|
|
17
|
+
{ attrs: { name: "x-animate-width-" } },
|
|
18
|
+
"transition",
|
|
19
|
+
_vm.$attrs,
|
|
20
|
+
false
|
|
21
|
+
),
|
|
22
|
+
_vm.$listeners
|
|
23
|
+
),
|
|
16
24
|
[_vm._t("default")],
|
|
17
25
|
2
|
|
18
26
|
)
|
|
@@ -23,11 +31,11 @@ __vue_render__._withStripped = true;
|
|
|
23
31
|
/* style */
|
|
24
32
|
const __vue_inject_styles__ = function (inject) {
|
|
25
33
|
if (!inject) return
|
|
26
|
-
inject("data-v-
|
|
34
|
+
inject("data-v-d7caf02c_0", { source: ".x-animate-width--enter-active[data-v-d7caf02c], .x-animate-width--leave-active[data-v-d7caf02c] {\n transition: width 0.3s ease-out;\n overflow-x: hidden;\n}\n.x-animate-width--enter[data-v-d7caf02c], .x-animate-width--leave-to[data-v-d7caf02c] {\n width: 0 !important;\n}", map: undefined, media: undefined });
|
|
27
35
|
|
|
28
36
|
};
|
|
29
37
|
/* scoped */
|
|
30
|
-
const __vue_scope_id__ = "data-v-
|
|
38
|
+
const __vue_scope_id__ = "data-v-d7caf02c";
|
|
31
39
|
/* module identifier */
|
|
32
40
|
const __vue_module_identifier__ = undefined;
|
|
33
41
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate-width.vue.js","sources":["../../../../src/components/animations/animate-width.vue"],"sourcesContent":["<template>\n <transition v-on=\"$listeners\" name=\"x-animate-width-\">\n <!-- @slot (Required) Transition content -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n\n /**\n * Renders a transition wrapping an element passed in the default slot and animating its width.\n *\n * @public\n */\n @Component\n export default class AnimateWidth extends Vue {}\n</script>\n\n<style lang=\"scss\" scoped>\n .x-animate-width {\n &--enter-active,\n &--leave-active {\n transition: width 0.3s ease-out;\n overflow-x: hidden;\n }\n\n &--enter,\n &--leave-to {\n width: 0 !important;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe AnimateWidth component is intended to be used as a prop in animatable components but also works\nas a transition to animate the width of an element.\n\nUsed as a prop in an animatable component:\n\n```vue\n<template>\n <AnimatableComponent :animation=\"AnimateWidth\" />\n</template>\n\n<script>\n import AnimateWidth from '@empathyco/x-components/js/components/animations/animate-width.vue';\n\n export default {\n data() {\n return {\n AnimateWidth\n };\n }\n };\n</script>\n```\n\nUsed as a regular Transition:\n\n```vue\n<template>\n <div>\n <button @click=\"visible = !visible\">Toggle</button>\n <AnimateWidth>\n <div v-if=\"visible\" style=\"width: 300px\">Element to animate</div>\n </AnimateWidth>\n </div>\n</template>\n\n<script>\n import AnimateWidth from '@empathyco/x-components/js/components/animations/animate-width.vue';\n\n export default {\n data() {\n return {\n visible: true\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA
|
|
1
|
+
{"version":3,"file":"animate-width.vue.js","sources":["../../../../src/components/animations/animate-width.vue"],"sourcesContent":["<template>\n <transition v-on=\"$listeners\" name=\"x-animate-width-\" v-bind=\"$attrs\">\n <!-- @slot (Required) Transition content -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n\n /**\n * Renders a transition wrapping an element passed in the default slot and animating its width.\n *\n * @public\n */\n @Component({\n inheritAttrs: false\n })\n export default class AnimateWidth extends Vue {}\n</script>\n\n<style lang=\"scss\" scoped>\n .x-animate-width {\n &--enter-active,\n &--leave-active {\n transition: width 0.3s ease-out;\n overflow-x: hidden;\n }\n\n &--enter,\n &--leave-to {\n width: 0 !important;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe AnimateWidth component is intended to be used as a prop in animatable components but also works\nas a transition to animate the width of an element.\n\nUsed as a prop in an animatable component:\n\n```vue\n<template>\n <AnimatableComponent :animation=\"AnimateWidth\" />\n</template>\n\n<script>\n import AnimateWidth from '@empathyco/x-components/js/components/animations/animate-width.vue';\n\n export default {\n data() {\n return {\n AnimateWidth\n };\n }\n };\n</script>\n```\n\nUsed as a regular Transition:\n\n```vue\n<template>\n <div>\n <button @click=\"visible = !visible\">Toggle</button>\n <AnimateWidth>\n <div v-if=\"visible\" style=\"width: 300px\">Element to animate</div>\n </AnimateWidth>\n </div>\n</template>\n\n<script>\n import AnimateWidth from '@empathyco/x-components/js/components/animations/animate-width.vue';\n\n export default {\n data() {\n return {\n visible: true\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate-width.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/animations/animate-width.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\n\n/**\n * Renders a transition wrapping an element passed in the default slot and animating its width.\n *\n * @public\n */\n@Component\nexport default class AnimateWidth extends Vue {}\n"],"names":[],"mappings":";;;;AAWA;;;;;
|
|
1
|
+
{"version":3,"file":"animate-width.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/animations/animate-width.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\n\n/**\n * Renders a transition wrapping an element passed in the default slot and animating its width.\n *\n * @public\n */\n@Component({\n inheritAttrs: false\n})\nexport default class AnimateWidth extends Vue {}\n"],"names":[],"mappings":";;;;AAWA;;;;;AAQA,IAAqB,YAAY,GAAjC,MAAqB,YAAa,SAAQ,GAAG;CAAG,CAAA;AAA3B,YAAY;IAHhC,SAAS,CAAC;QACT,YAAY,EAAE,KAAK;KACpB,CAAC;GACmB,YAAY,CAAe;aAA3B,YAAY;;;;"}
|
|
@@ -13,14 +13,19 @@ var __vue_render__ = function () {
|
|
|
13
13
|
return _c(
|
|
14
14
|
"transition",
|
|
15
15
|
_vm._g(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
_vm._b(
|
|
17
|
+
{
|
|
18
|
+
attrs: { appear: "", name: "x-collapse-height-" },
|
|
19
|
+
on: {
|
|
20
|
+
enter: _vm.expand,
|
|
21
|
+
"after-enter": _vm.cleanUpAnimationStyles,
|
|
22
|
+
leave: _vm.collapse,
|
|
23
|
+
},
|
|
22
24
|
},
|
|
23
|
-
|
|
25
|
+
"transition",
|
|
26
|
+
_vm.$attrs,
|
|
27
|
+
false
|
|
28
|
+
),
|
|
24
29
|
_vm.$listeners
|
|
25
30
|
),
|
|
26
31
|
[_vm._t("default")],
|
|
@@ -33,11 +38,11 @@ __vue_render__._withStripped = true;
|
|
|
33
38
|
/* style */
|
|
34
39
|
const __vue_inject_styles__ = function (inject) {
|
|
35
40
|
if (!inject) return
|
|
36
|
-
inject("data-v-
|
|
41
|
+
inject("data-v-7536b911_0", { source: ".x-collapse-height--enter-active[data-v-7536b911], .x-collapse-height--leave-active[data-v-7536b911] {\n transition: height 0.3s ease-out;\n overflow: hidden;\n}", map: undefined, media: undefined });
|
|
37
42
|
|
|
38
43
|
};
|
|
39
44
|
/* scoped */
|
|
40
|
-
const __vue_scope_id__ = "data-v-
|
|
45
|
+
const __vue_scope_id__ = "data-v-7536b911";
|
|
41
46
|
/* module identifier */
|
|
42
47
|
const __vue_module_identifier__ = undefined;
|
|
43
48
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-height.vue.js","sources":["../../../../src/components/animations/collapse-height.vue"],"sourcesContent":["<template>\n <transition\n v-on=\"$listeners\"\n @enter=\"expand\"\n @after-enter=\"cleanUpAnimationStyles\"\n @leave=\"collapse\"\n appear\n name=\"x-collapse-height-\"\n >\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { createCollapseAnimationMixin } from './animations.mixin';\n\n /**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a height animation.\n *\n * @public\n */\n @Component({\n mixins: [createCollapseAnimationMixin('height')]\n })\n export default class CollapseHeight extends Vue {}\n</script>\n\n<style lang=\"scss\" scoped>\n .x-collapse-height {\n &--enter-active,\n &--leave-active {\n transition: height 0.3s ease-out;\n overflow: hidden;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe CollapseHeight component is intended to be used as animation to wrap an element with v-if or\nv-show and animate it. The animation consists on scale its height size from 0 to auto. This\ntransition does not work with components that have vertical margin, padding or border.\n\nUsed wrapping a component:\n\n```vue\n<CollapseHeight>\n <ComponentOrElement v-if=\"open\"/>\n</CollapseHeight>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA
|
|
1
|
+
{"version":3,"file":"collapse-height.vue.js","sources":["../../../../src/components/animations/collapse-height.vue"],"sourcesContent":["<template>\n <transition\n v-on=\"$listeners\"\n @enter=\"expand\"\n @after-enter=\"cleanUpAnimationStyles\"\n @leave=\"collapse\"\n appear\n name=\"x-collapse-height-\"\n v-bind=\"$attrs\"\n >\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { createCollapseAnimationMixin } from './animations.mixin';\n\n /**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a height animation.\n *\n * @public\n */\n @Component({\n mixins: [createCollapseAnimationMixin('height')],\n inheritAttrs: false\n })\n export default class CollapseHeight extends Vue {\n // TODO Add support for extending enter, after-enter and leave transitions\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-collapse-height {\n &--enter-active,\n &--leave-active {\n transition: height 0.3s ease-out;\n overflow: hidden;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe CollapseHeight component is intended to be used as animation to wrap an element with v-if or\nv-show and animate it. The animation consists on scale its height size from 0 to auto. This\ntransition does not work with components that have vertical margin, padding or border.\n\nUsed wrapping a component:\n\n```vue\n<CollapseHeight>\n <ComponentOrElement v-if=\"open\"/>\n</CollapseHeight>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13,7 +13,8 @@ let CollapseHeight = class CollapseHeight extends Vue {
|
|
|
13
13
|
};
|
|
14
14
|
CollapseHeight = __decorate([
|
|
15
15
|
Component({
|
|
16
|
-
mixins: [createCollapseAnimationMixin('height')]
|
|
16
|
+
mixins: [createCollapseAnimationMixin('height')],
|
|
17
|
+
inheritAttrs: false
|
|
17
18
|
})
|
|
18
19
|
], CollapseHeight);
|
|
19
20
|
var script = CollapseHeight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-height.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/animations/collapse-height.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { createCollapseAnimationMixin } from './animations.mixin';\n\n/**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a height animation.\n *\n * @public\n */\n@Component({\n mixins: [createCollapseAnimationMixin('height')]\n})\nexport default class CollapseHeight extends Vue {}\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"collapse-height.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/animations/collapse-height.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { createCollapseAnimationMixin } from './animations.mixin';\n\n/**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a height animation.\n *\n * @public\n */\n@Component({\n mixins: [createCollapseAnimationMixin('height')],\n inheritAttrs: false\n})\nexport default class CollapseHeight extends Vue {\n // TODO Add support for extending enter, after-enter and leave transitions\n}\n"],"names":[],"mappings":";;;;;AAoBA;;;;;;AAUA,IAAqB,cAAc,GAAnC,MAAqB,cAAe,SAAQ,GAAG;CAE9C,CAAA;AAFoB,cAAc;IAJlC,SAAS,CAAC;QACT,MAAM,EAAE,CAAC,4BAA4B,CAAC,QAAQ,CAAC,CAAC;QAChD,YAAY,EAAE,KAAK;KACpB,CAAC;GACmB,cAAc,CAElC;aAFoB,cAAc;;;;"}
|
|
@@ -13,14 +13,19 @@ var __vue_render__ = function () {
|
|
|
13
13
|
return _c(
|
|
14
14
|
"transition",
|
|
15
15
|
_vm._g(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
_vm._b(
|
|
17
|
+
{
|
|
18
|
+
attrs: { appear: "", name: "x-collapse-width-" },
|
|
19
|
+
on: {
|
|
20
|
+
enter: _vm.expand,
|
|
21
|
+
"after-enter": _vm.cleanUpAnimationStyles,
|
|
22
|
+
leave: _vm.collapse,
|
|
23
|
+
},
|
|
22
24
|
},
|
|
23
|
-
|
|
25
|
+
"transition",
|
|
26
|
+
_vm.$attrs,
|
|
27
|
+
false
|
|
28
|
+
),
|
|
24
29
|
_vm.$listeners
|
|
25
30
|
),
|
|
26
31
|
[_vm._t("default")],
|
|
@@ -33,11 +38,11 @@ __vue_render__._withStripped = true;
|
|
|
33
38
|
/* style */
|
|
34
39
|
const __vue_inject_styles__ = function (inject) {
|
|
35
40
|
if (!inject) return
|
|
36
|
-
inject("data-v-
|
|
41
|
+
inject("data-v-16c7537f_0", { source: ".x-collapse-width--enter-active[data-v-16c7537f], .x-collapse-width--leave-active[data-v-16c7537f] {\n transition: width 0.3s ease-out;\n overflow: hidden;\n}", map: undefined, media: undefined });
|
|
37
42
|
|
|
38
43
|
};
|
|
39
44
|
/* scoped */
|
|
40
|
-
const __vue_scope_id__ = "data-v-
|
|
45
|
+
const __vue_scope_id__ = "data-v-16c7537f";
|
|
41
46
|
/* module identifier */
|
|
42
47
|
const __vue_module_identifier__ = undefined;
|
|
43
48
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-width.vue.js","sources":["../../../../src/components/animations/collapse-width.vue"],"sourcesContent":["<template>\n <transition\n v-on=\"$listeners\"\n @enter=\"expand\"\n @after-enter=\"cleanUpAnimationStyles\"\n @leave=\"collapse\"\n appear\n name=\"x-collapse-width-\"\n >\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { createCollapseAnimationMixin } from './animations.mixin';\n\n /**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a width animation.\n *\n * @public\n */\n @Component({\n mixins: [createCollapseAnimationMixin('width')]\n })\n export default class CollapseWidth extends Vue {}\n</script>\n\n<style lang=\"scss\" scoped>\n .x-collapse-width {\n &--enter-active,\n &--leave-active {\n transition: width 0.3s ease-out;\n overflow: hidden;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe CollapseWidth component is intended to be used as animation to wrap an element with v-if or\nv-show and animate it. The animation consists on scale its width size from 0 to auto. This\ntransition does not work with components that have horizontal margin, padding or border. It also is\ndependant of the width of the child elements and not the root element.\n\nUsed wrapping a component:\n\n```vue\n<CollapseWidth>\n <ComponentOrElement v-if=\"open\"/>\n</CollapseWidth>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA
|
|
1
|
+
{"version":3,"file":"collapse-width.vue.js","sources":["../../../../src/components/animations/collapse-width.vue"],"sourcesContent":["<template>\n <transition\n v-on=\"$listeners\"\n @enter=\"expand\"\n @after-enter=\"cleanUpAnimationStyles\"\n @leave=\"collapse\"\n appear\n name=\"x-collapse-width-\"\n v-bind=\"$attrs\"\n >\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n import { createCollapseAnimationMixin } from './animations.mixin';\n\n /**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a width animation.\n *\n * @public\n */\n @Component({\n mixins: [createCollapseAnimationMixin('width')],\n inheritAttrs: false\n })\n export default class CollapseWidth extends Vue {\n // TODO Add support for extending enter, after-enter and leave transitions\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-collapse-width {\n &--enter-active,\n &--leave-active {\n transition: width 0.3s ease-out;\n overflow: hidden;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe CollapseWidth component is intended to be used as animation to wrap an element with v-if or\nv-show and animate it. The animation consists on scale its width size from 0 to auto. This\ntransition does not work with components that have horizontal margin, padding or border. It also is\ndependant of the width of the child elements and not the root element.\n\nUsed wrapping a component:\n\n```vue\n<CollapseWidth>\n <ComponentOrElement v-if=\"open\"/>\n</CollapseWidth>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -13,7 +13,8 @@ let CollapseWidth = class CollapseWidth extends Vue {
|
|
|
13
13
|
};
|
|
14
14
|
CollapseWidth = __decorate([
|
|
15
15
|
Component({
|
|
16
|
-
mixins: [createCollapseAnimationMixin('width')]
|
|
16
|
+
mixins: [createCollapseAnimationMixin('width')],
|
|
17
|
+
inheritAttrs: false
|
|
17
18
|
})
|
|
18
19
|
], CollapseWidth);
|
|
19
20
|
var script = CollapseWidth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse-width.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/animations/collapse-width.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { createCollapseAnimationMixin } from './animations.mixin';\n\n/**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a width animation.\n *\n * @public\n */\n@Component({\n mixins: [createCollapseAnimationMixin('width')]\n})\nexport default class CollapseWidth extends Vue {}\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"collapse-width.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/animations/collapse-width.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component } from 'vue-property-decorator';\nimport { createCollapseAnimationMixin } from './animations.mixin';\n\n/**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a width animation.\n *\n * @public\n */\n@Component({\n mixins: [createCollapseAnimationMixin('width')],\n inheritAttrs: false\n})\nexport default class CollapseWidth extends Vue {\n // TODO Add support for extending enter, after-enter and leave transitions\n}\n"],"names":[],"mappings":";;;;;AAoBA;;;;;;AAUA,IAAqB,aAAa,GAAlC,MAAqB,aAAc,SAAQ,GAAG;CAE7C,CAAA;AAFoB,aAAa;IAJjC,SAAS,CAAC;QACT,MAAM,EAAE,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAC/C,YAAY,EAAE,KAAK;KACpB,CAAC;GACmB,aAAa,CAEjC;aAFoB,aAAa;;;;"}
|
|
@@ -13,9 +13,14 @@ function createDirectionalAnimationFactory(animationName) {
|
|
|
13
13
|
return (animationOrigin = 'top') => {
|
|
14
14
|
return Vue.extend({
|
|
15
15
|
name: `transition-${animationName}-${animationOrigin}`,
|
|
16
|
+
inheritAttrs: false,
|
|
16
17
|
render(h) {
|
|
17
18
|
return h('transition', {
|
|
18
|
-
props: {
|
|
19
|
+
props: {
|
|
20
|
+
name: `x-${animationName}--${animationOrigin} x-${animationName}-`,
|
|
21
|
+
...this.$attrs
|
|
22
|
+
},
|
|
23
|
+
on: this.$listeners
|
|
19
24
|
}, this.$slots.default);
|
|
20
25
|
}
|
|
21
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-directional-animation-factory.js","sources":["../../../../src/components/animations/create-directional-animation-factory.ts"],"sourcesContent":["import Vue, { VueConstructor } from 'vue';\n\n/**\n * Abstract Factory to create animations Factory. The returned animation factory uses the\n * `animationName` parameter to create a Transition Component with that name.\n *\n * @param animationName - The name to use in the Transition Component of animation.\n * @returns The animation factory configured.\n *\n * @internal\n */\nexport function createDirectionalAnimationFactory(\n animationName: string\n): (animationOrigin?: AnimationOrigin) => VueConstructor {\n return (animationOrigin = 'top') => {\n return Vue.extend({\n name: `transition-${animationName}-${animationOrigin}`,\n render(h) {\n return h(\n 'transition',\n {\n props: {
|
|
1
|
+
{"version":3,"file":"create-directional-animation-factory.js","sources":["../../../../src/components/animations/create-directional-animation-factory.ts"],"sourcesContent":["import Vue, { VueConstructor } from 'vue';\n\n/**\n * Abstract Factory to create animations Factory. The returned animation factory uses the\n * `animationName` parameter to create a Transition Component with that name.\n *\n * @param animationName - The name to use in the Transition Component of animation.\n * @returns The animation factory configured.\n *\n * @internal\n */\nexport function createDirectionalAnimationFactory(\n animationName: string\n): (animationOrigin?: AnimationOrigin) => VueConstructor {\n return (animationOrigin = 'top') => {\n return Vue.extend({\n name: `transition-${animationName}-${animationOrigin}`,\n inheritAttrs: false,\n render(h) {\n return h(\n 'transition',\n {\n props: {\n name: `x-${animationName}--${animationOrigin} x-${animationName}-`,\n ...this.$attrs\n },\n on: this.$listeners\n },\n this.$slots.default\n );\n }\n });\n };\n}\n\nexport type AnimationOrigin = 'top' | 'bottom' | 'left' | 'right';\n"],"names":[],"mappings":";;AAEA;;;;;;;;;SASgB,iCAAiC,CAC/C,aAAqB;IAErB,OAAO,CAAC,eAAe,GAAG,KAAK;QAC7B,OAAO,GAAG,CAAC,MAAM,CAAC;YAChB,IAAI,EAAE,cAAc,aAAa,IAAI,eAAe,EAAE;YACtD,YAAY,EAAE,KAAK;YACnB,MAAM,CAAC,CAAC;gBACN,OAAO,CAAC,CACN,YAAY,EACZ;oBACE,KAAK,EAAE;wBACL,IAAI,EAAE,KAAK,aAAa,KAAK,eAAe,MAAM,aAAa,GAAG;wBAClE,GAAG,IAAI,CAAC,MAAM;qBACf;oBACD,EAAE,EAAE,IAAI,CAAC,UAAU;iBACpB,EACD,IAAI,CAAC,MAAM,CAAC,OAAO,CACpB,CAAC;aACH;SACF,CAAC,CAAC;KACJ,CAAC;AACJ;;;;"}
|
|
@@ -13,7 +13,12 @@ var __vue_render__ = function () {
|
|
|
13
13
|
return _c(
|
|
14
14
|
"transition",
|
|
15
15
|
_vm._g(
|
|
16
|
-
|
|
16
|
+
_vm._b(
|
|
17
|
+
{ attrs: { appear: "", name: "x-cross-fade-", mode: "in-out" } },
|
|
18
|
+
"transition",
|
|
19
|
+
_vm.$attrs,
|
|
20
|
+
false
|
|
21
|
+
),
|
|
17
22
|
_vm.$listeners
|
|
18
23
|
),
|
|
19
24
|
[_vm._t("default")],
|
|
@@ -26,11 +31,11 @@ __vue_render__._withStripped = true;
|
|
|
26
31
|
/* style */
|
|
27
32
|
const __vue_inject_styles__ = function (inject) {
|
|
28
33
|
if (!inject) return
|
|
29
|
-
inject("data-v-
|
|
34
|
+
inject("data-v-0367569a_0", { source: ".x-cross-fade--enter-active[data-v-0367569a], .x-cross-fade--leave-active[data-v-0367569a] {\n transition: opacity 0.25s ease-in-out;\n}\n.x-cross-fade--leave-active[data-v-0367569a] {\n position: absolute;\n}\n.x-cross-fade--leave-to[data-v-0367569a], .x-cross-fade--enter[data-v-0367569a] {\n opacity: 0;\n}", map: undefined, media: undefined });
|
|
30
35
|
|
|
31
36
|
};
|
|
32
37
|
/* scoped */
|
|
33
|
-
const __vue_scope_id__ = "data-v-
|
|
38
|
+
const __vue_scope_id__ = "data-v-0367569a";
|
|
34
39
|
/* module identifier */
|
|
35
40
|
const __vue_module_identifier__ = undefined;
|
|
36
41
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-fade.vue.js","sources":["../../../../src/components/animations/cross-fade.vue"],"sourcesContent":["<template>\n <transition v-on=\"$listeners\" appear name=\"x-cross-fade-\" mode=\"in-out\">\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n\n /**\n * Renders a transition wrapping the element passed in the default
|
|
1
|
+
{"version":3,"file":"cross-fade.vue.js","sources":["../../../../src/components/animations/cross-fade.vue"],"sourcesContent":["<template>\n <transition v-on=\"$listeners\" appear name=\"x-cross-fade-\" mode=\"in-out\" v-bind=\"$attrs\">\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component } from 'vue-property-decorator';\n\n /**\n * Renders a transition wrapping the element passed in the default slot. The transition\n * fades between the two toggled elements at the same time.\n *\n * @public\n */\n @Component({\n inheritAttrs: false\n })\n export default class CrossFade extends Vue {}\n</script>\n\n<style lang=\"scss\" scoped>\n .x-cross-fade {\n &--enter-active,\n &--leave-active {\n transition: opacity 0.25s ease-in-out;\n }\n\n &--leave-active {\n position: absolute;\n }\n\n &--leave-to,\n &--enter {\n opacity: 0;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Example\n\nThe `CrossFade` component is intended to be used as animation to wrap an element with v-if or v-show\nand animate it. The animation fades the new element into the previous one.\n\nWrapping a component:\n\n```vue\n<CrossFade>\n <ComponentOrElement v-if=\"open\"/>\n</CrossFade>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@ import Vue from 'vue';
|
|
|
3
3
|
import { Component } from 'vue-property-decorator';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Renders a transition wrapping the element passed in the default
|
|
6
|
+
* Renders a transition wrapping the element passed in the default slot. The transition
|
|
7
7
|
* fades between the two toggled elements at the same time.
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
@@ -11,7 +11,9 @@ import { Component } from 'vue-property-decorator';
|
|
|
11
11
|
let CrossFade = class CrossFade extends Vue {
|
|
12
12
|
};
|
|
13
13
|
CrossFade = __decorate([
|
|
14
|
-
Component
|
|
14
|
+
Component({
|
|
15
|
+
inheritAttrs: false
|
|
16
|
+
})
|
|
15
17
|
], CrossFade);
|
|
16
18
|
var script = CrossFade;
|
|
17
19
|
|