@dimailn/vuetify 2.7.2-alpha2 → 2.7.2-alpha4
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/dist/vuetify.css +45 -45
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +42 -30
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +1 -1
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +1 -1
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VRadioGroup/VRadioGroup.js +2 -2
- package/es5/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/es5/components/VSubheader/VSubheader.js +3 -3
- package/es5/components/VSubheader/VSubheader.js.map +1 -1
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +0 -1
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/transitions/createTransition.js +9 -4
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/components/transitions/expand-transition.js +7 -7
- package/es5/components/transitions/expand-transition.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/overlayable/index.js +1 -2
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js +0 -4
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/services/breakpoint/index.js +3 -1
- package/es5/services/breakpoint/index.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +1 -1
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +1 -1
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.js +2 -2
- package/lib/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/lib/components/VSubheader/VSubheader.js +2 -3
- package/lib/components/VSubheader/VSubheader.js.map +1 -1
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +0 -1
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/transitions/createTransition.js +1 -1
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/components/transitions/expand-transition.js +7 -7
- package/lib/components/transitions/expand-transition.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/overlayable/index.js +1 -2
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js +0 -4
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/services/breakpoint/index.js +3 -1
- package/lib/services/breakpoint/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VBottomSheet/VBottomSheet.sass +1 -1
- package/src/components/VDataTable/mixins/header.ts +2 -2
- package/src/components/VItemGroup/VItemGroup.ts +3 -3
- package/src/components/VMenu/VMenu.sass +2 -2
- package/src/components/VOverlay/VOverlay.ts +1 -1
- package/src/components/VRadioGroup/VRadioGroup.ts +2 -2
- package/src/components/VSnackbar/VSnackbar.sass +2 -2
- package/src/components/VSubheader/VSubheader.ts +2 -2
- package/src/components/VTabs/VTab.ts +1 -1
- package/src/components/VTabs/VTabs.ts +0 -1
- package/src/components/transitions/createTransition.ts +1 -2
- package/src/components/transitions/expand-transition.ts +7 -7
- package/src/mixins/overlayable/index.ts +1 -3
- package/src/mixins/proxyable/index.ts +0 -5
- package/src/services/breakpoint/index.ts +5 -0
- package/src/styles/generic/_transitions.scss +38 -38
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/mixins/proxyable/index.ts"],"names":[],"mappings":"AAAA,SAAS,eAAT,QAAqD,KAArD;AAQA,OAAM,SAAU,OAAV,CACJ,IAAI,GAAG,YADH,EAEJ,KAAK,GAAG,mBAFJ,EAEuB;AAE3B,SAAO,eAAe,CAAC;AACrB,IAAA,IAAI,EAAE,WADe;AAGrB,IAAA,KAAK,EAAE;AACL,
|
|
1
|
+
{"version":3,"sources":["../../../src/mixins/proxyable/index.ts"],"names":[],"mappings":"AAAA,SAAS,eAAT,QAAqD,KAArD;AAQA,OAAM,SAAU,OAAV,CACJ,IAAI,GAAG,YADH,EAEJ,KAAK,GAAG,mBAFJ,EAEuB;AAE3B,SAAO,eAAe,CAAC;AACrB,IAAA,IAAI,EAAE,WADe;AAGrB,IAAA,KAAK,EAAE;AACL,OAAC,IAAD,GAAQ;AACN,QAAA,QAAQ,EAAE;AADJ;AADH,KAHc;;AASrB,IAAA,IAAI,GAAA;AACF,aAAO;AACL,QAAA,iBAAiB,EAAE,KAAK,IAAL;AADd,OAAP;AAGD,KAboB;;AAerB,IAAA,QAAQ,EAAE;AACR,MAAA,aAAa,EAAE;AACb,QAAA,GAAG,GAAA;AACD,iBAAO,KAAK,iBAAZ;AACD,SAHY;;AAIb,QAAA,GAAG,CAAE,GAAF,EAAU;AACX,cAAI,GAAG,KAAK,KAAK,iBAAjB,EAAoC;AAEpC,eAAK,iBAAL,GAAyB,GAAzB;AAEA,eAAK,KAAL,CAAW,KAAX,EAAkB,GAAlB;AACD;;AAVY;AADP,KAfW;AA8BrB,IAAA,KAAK,EAAE;AACL,OAAC,IAAD,EAAQ,GAAR,EAAW;AACT,aAAK,iBAAL,GAAyB,GAAzB;AACD;;AAHI;AA9Bc,GAAD,CAAtB;AAoCD;AAED;;AACA,MAAM,SAAS,GAAG,OAAO,EAAzB;AAEA,eAAe,SAAf","sourcesContent":["import { defineComponent, VueConstructor, App } from 'vue'\n\nexport type Proxyable<T extends string = 'value'> = VueConstructor<App & {\n internalLazyValue: unknown\n internalValue: unknown\n} & Record<T, any>>\n\nexport function factory<T extends string = 'value'> (prop?: T, event?: string): Proxyable<T>\nexport function factory (\n prop = 'modelValue',\n event = 'update:modelValue'\n) {\n return defineComponent({\n name: 'proxyable',\n\n props: {\n [prop]: {\n required: false,\n },\n },\n\n data () {\n return {\n internalLazyValue: this[prop] as unknown,\n }\n },\n\n computed: {\n internalValue: {\n get (): unknown {\n return this.internalLazyValue\n },\n set (val: any) {\n if (val === this.internalLazyValue) return\n\n this.internalLazyValue = val\n\n this.$emit(event, val)\n },\n },\n },\n\n watch: {\n [prop] (val) {\n this.internalLazyValue = val\n },\n },\n })\n}\n\n/* eslint-disable-next-line @typescript-eslint/no-redeclare */\nconst Proxyable = factory()\n\nexport default Proxyable\n"],"sourceRoot":"","file":"index.js"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// Extensions
|
|
1
|
+
import { reactive } from 'vue'; // Extensions
|
|
2
|
+
|
|
2
3
|
import { Service } from '../service';
|
|
3
4
|
export class Breakpoint extends Service {
|
|
4
5
|
constructor(preset) {
|
|
@@ -36,6 +37,7 @@ export class Breakpoint extends Service {
|
|
|
36
37
|
this.mobileBreakpoint = mobileBreakpoint;
|
|
37
38
|
this.scrollBarWidth = scrollBarWidth;
|
|
38
39
|
this.thresholds = thresholds;
|
|
40
|
+
return reactive(this);
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
init() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/services/breakpoint/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"sources":["../../../src/services/breakpoint/index.ts"],"names":[],"mappings":"AAAA,SAAS,QAAT,QAAyB,KAAzB,C,CAGA;;AACA,SAAS,OAAT,QAAwB,YAAxB;AAMA,OAAM,MAAO,UAAP,SAA0B,OAA1B,CAAiC;AAuDrC,EAAA,WAAA,CAAa,MAAb,EAAkC;AAChC,YADgC,CApDlC;;AACO,SAAA,EAAA,GAAK,KAAL;AAEA,SAAA,EAAA,GAAK,KAAL;AAEA,SAAA,EAAA,GAAK,KAAL;AAEA,SAAA,EAAA,GAAK,KAAL;AAEA,SAAA,EAAA,GAAK,KAAL;AAEA,SAAA,MAAA,GAAS,KAAT;AAEA,SAAA,MA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L,CACL,QAAQ,CAAC,eAAT,CAA0B,WADrB,EAEL,MAAM,CAAC,UAAP,IAAqB,CAFhB,CAAP;AAID;;AAEO,EAAA,eAAe,GAAA;AACrB;AACA,QAAI,OAAO,QAAP,KAAoB,WAAxB,EAAqC,OAAO,CAAP,CAFhB,CAEyB;;AAC9C,WAAO,IAAI,CAAC,GAAL,CACL,QAAQ,CAAC,eAAT,CAA0B,YADrB,EAEL,MAAM,CAAC,WAAP,IAAsB,CAFjB,CAAP;AAID;;AAtLoC;AACvB,UAAA,CAAA,QAAA,GAAyB,YAAzB","sourcesContent":["import { reactive } from 'vue'\n\n\n// Extensions\nimport { Service } from '../service'\n\n// Types\nimport { VuetifyPreset } from 'vuetify/types/services/presets'\nimport { Breakpoint as IBreakpoint } from 'vuetify/types/services/breakpoint'\n\nexport class Breakpoint extends Service implements IBreakpoint {\n public static property: 'breakpoint' = 'breakpoint'\n\n // Public\n public xs = false\n\n public sm = false\n\n public md = false\n\n public lg = false\n\n public xl = false\n\n public xsOnly = false\n\n public smOnly = false\n\n public smAndDown = false\n\n public smAndUp = false\n\n public mdOnly = false\n\n public mdAndDown = false\n\n public mdAndUp = false\n\n public lgOnly = false\n\n public lgAndDown = false\n\n public lgAndUp = false\n\n public xlOnly = false\n\n // Value is xs to match v2.x functionality\n public name: IBreakpoint['name'] = 'xs'\n\n public height = 0\n\n public width = 0\n\n // TODO: Add functionality to detect this dynamically in v3\n // Value is true to match v2.x functionality\n public mobile = true\n\n public mobileBreakpoint: IBreakpoint['mobileBreakpoint']\n\n public thresholds: IBreakpoint['thresholds']\n\n public scrollBarWidth: IBreakpoint['scrollBarWidth']\n\n private resizeTimeout = 0\n\n constructor (preset: VuetifyPreset) {\n super()\n\n const {\n mobileBreakpoint,\n scrollBarWidth,\n thresholds,\n } = preset[Breakpoint.property]\n\n this.mobileBreakpoint = mobileBreakpoint\n this.scrollBarWidth = scrollBarWidth\n this.thresholds = thresholds\n\n return reactive(this)\n }\n\n public init () {\n this.update()\n\n /* istanbul ignore if */\n if (typeof window === 'undefined') return\n\n window.addEventListener(\n 'resize',\n this.onResize.bind(this),\n { passive: true }\n )\n }\n\n /* eslint-disable-next-line max-statements */\n public update (ssr = false) {\n const height = ssr ? 0 : this.getClientHeight()\n const width = ssr ? 0 : this.getClientWidth()\n\n const xs = width < this.thresholds.xs\n const sm = width < this.thresholds.sm && !xs\n const md = width < (this.thresholds.md - this.scrollBarWidth) && !(sm || xs)\n const lg = width < (this.thresholds.lg - this.scrollBarWidth) && !(md || sm || xs)\n const xl = width >= (this.thresholds.lg - this.scrollBarWidth)\n\n this.height = height\n this.width = width\n\n this.xs = xs\n this.sm = sm\n this.md = md\n this.lg = lg\n this.xl = xl\n\n this.xsOnly = xs\n this.smOnly = sm\n this.smAndDown = (xs || sm) && !(md || lg || xl)\n this.smAndUp = !xs && (sm || md || lg || xl)\n this.mdOnly = md\n this.mdAndDown = (xs || sm || md) && !(lg || xl)\n this.mdAndUp = !(xs || sm) && (md || lg || xl)\n this.lgOnly = lg\n this.lgAndDown = (xs || sm || md || lg) && !xl\n this.lgAndUp = !(xs || sm || md) && (lg || xl)\n this.xlOnly = xl\n\n switch (true) {\n case (xs):\n this.name = 'xs'\n break\n case (sm):\n this.name = 'sm'\n break\n case (md):\n this.name = 'md'\n break\n case (lg):\n this.name = 'lg'\n break\n default:\n this.name = 'xl'\n break\n }\n\n if (typeof this.mobileBreakpoint === 'number') {\n this.mobile = width < parseInt(this.mobileBreakpoint, 10)\n\n return\n }\n\n const breakpoints = {\n xs: 0,\n sm: 1,\n md: 2,\n lg: 3,\n xl: 4,\n } as const\n\n const current = breakpoints[this.name]\n const max = breakpoints[this.mobileBreakpoint]\n\n this.mobile = current <= max\n }\n\n private onResize () {\n clearTimeout(this.resizeTimeout)\n\n // Added debounce to match what\n // v-resize used to do but was\n // removed due to a memory leak\n // https://github.com/vuetifyjs/vuetify/pull/2997\n this.resizeTimeout = window.setTimeout(this.update.bind(this), 200)\n }\n\n // Cross-browser support as described in:\n // https://stackoverflow.com/questions/1248081\n private getClientWidth () {\n /* istanbul ignore if */\n if (typeof document === 'undefined') return 0 // SSR\n return Math.max(\n document.documentElement!.clientWidth,\n window.innerWidth || 0\n )\n }\n\n private getClientHeight () {\n /* istanbul ignore if */\n if (typeof document === 'undefined') return 0 // SSR\n return Math.max(\n document.documentElement!.clientHeight,\n window.innerHeight || 0\n )\n }\n}\n"],"sourceRoot":"","file":"index.js"}
|
package/package.json
CHANGED
|
@@ -55,8 +55,8 @@ export default mixins<options>().extend({
|
|
|
55
55
|
const data = {
|
|
56
56
|
value: this.everyItem,
|
|
57
57
|
indeterminate: !this.everyItem && this.someItems,
|
|
58
|
-
color: this.checkboxColor ?? ''
|
|
59
|
-
onInput: (v: boolean) => this.$emit('toggle-select-all', v)
|
|
58
|
+
color: this.checkboxColor ?? '',
|
|
59
|
+
onInput: (v: boolean) => this.$emit('toggle-select-all', v)
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (this.$slots['data-table-select']) {
|
|
@@ -52,8 +52,8 @@ export const BaseItemGroup = mixins(
|
|
|
52
52
|
// As long as a value is defined, show it
|
|
53
53
|
// Otherwise, check if multiple
|
|
54
54
|
// to determine which default to provide
|
|
55
|
-
internalLazyValue: this.
|
|
56
|
-
? this.
|
|
55
|
+
internalLazyValue: this.modelValue !== undefined
|
|
56
|
+
? this.modelValue
|
|
57
57
|
: this.multiple ? [] : undefined,
|
|
58
58
|
items: [] as GroupableInstance[],
|
|
59
59
|
}
|
|
@@ -102,7 +102,7 @@ export const BaseItemGroup = mixins(
|
|
|
102
102
|
|
|
103
103
|
watch: {
|
|
104
104
|
internalValue: 'updateItemsState',
|
|
105
|
-
items: 'updateItemsState'
|
|
105
|
+
items: 'updateItemsState'
|
|
106
106
|
},
|
|
107
107
|
|
|
108
108
|
created () {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
max-width: none
|
|
37
37
|
|
|
38
38
|
&-transition
|
|
39
|
-
&-enter
|
|
39
|
+
&-enter-from
|
|
40
40
|
.v-list-item
|
|
41
41
|
min-width: 0
|
|
42
42
|
pointer-events: none
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
&-leave-to
|
|
49
49
|
pointer-events: none
|
|
50
50
|
|
|
51
|
-
&-enter,
|
|
51
|
+
&-enter-from,
|
|
52
52
|
&-leave-to
|
|
53
53
|
opacity: 0
|
|
54
54
|
|
|
@@ -12,8 +12,8 @@ import { PropType } from 'vue'
|
|
|
12
12
|
import {h} from 'vue'
|
|
13
13
|
|
|
14
14
|
const baseMixins = mixins(
|
|
15
|
+
VInput,
|
|
15
16
|
BaseItemGroup,
|
|
16
|
-
VInput
|
|
17
17
|
)
|
|
18
18
|
|
|
19
19
|
/* @vue/component */
|
|
@@ -40,7 +40,7 @@ export default baseMixins.extend({
|
|
|
40
40
|
// If no value set on VRadio
|
|
41
41
|
// will match valueComparator
|
|
42
42
|
// force default to null
|
|
43
|
-
|
|
43
|
+
modelValue: null as unknown as PropType<any>,
|
|
44
44
|
},
|
|
45
45
|
|
|
46
46
|
computed: {
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
margin-bottom: $snackbar-vertical-action-margin-bottom
|
|
133
133
|
|
|
134
134
|
.v-snack-transition
|
|
135
|
-
&-enter
|
|
135
|
+
&-enter-from
|
|
136
136
|
&.v-snack__wrapper
|
|
137
137
|
transform: scale($snackbar-transition-wrapper-transform)
|
|
138
138
|
|
|
139
|
-
&-enter,
|
|
139
|
+
&-enter-from,
|
|
140
140
|
&-leave-to
|
|
141
141
|
&.v-snack__wrapper
|
|
142
142
|
opacity: 0
|
|
@@ -22,11 +22,11 @@ export default mixins(
|
|
|
22
22
|
|
|
23
23
|
render (): VNode {
|
|
24
24
|
return h('div', {
|
|
25
|
+
...this.$attrs,
|
|
25
26
|
class: ['v-subheader', {
|
|
26
27
|
'v-subheader--inset': this.inset,
|
|
27
28
|
...this.themeClasses,
|
|
28
|
-
}],
|
|
29
|
-
...this.$attrs,
|
|
29
|
+
}, this.$attrs.class],
|
|
30
30
|
...this.$listeners
|
|
31
31
|
}, getSlot(this))
|
|
32
32
|
},
|
|
@@ -88,7 +88,6 @@ export function createSimpleTransition (
|
|
|
88
88
|
el.style.setProperty('display', 'none', 'important')
|
|
89
89
|
})
|
|
90
90
|
}
|
|
91
|
-
|
|
92
91
|
return h(tag, mergeData(this.$attrs, data), this.$slots.default())
|
|
93
92
|
},
|
|
94
93
|
}
|
|
@@ -116,7 +115,7 @@ export function createJavascriptTransition (
|
|
|
116
115
|
Transition,
|
|
117
116
|
mergeData(this.$attrs, {
|
|
118
117
|
name,
|
|
119
|
-
functions,
|
|
118
|
+
...functions,
|
|
120
119
|
}),
|
|
121
120
|
this.$slots.default()
|
|
122
121
|
)
|
|
@@ -15,7 +15,7 @@ export default function (expandedParentClass = '', x = false) {
|
|
|
15
15
|
const offsetProperty = `offset${upperFirst(sizeProperty)}` as 'offsetHeight' | 'offsetWidth'
|
|
16
16
|
|
|
17
17
|
return {
|
|
18
|
-
|
|
18
|
+
onBeforeEnter (el: HTMLExpandElement) {
|
|
19
19
|
el._parent = el.parentNode as (Node & ParentNode & HTMLElement) | null
|
|
20
20
|
el._initialStyle = {
|
|
21
21
|
transition: el.style.transition,
|
|
@@ -24,7 +24,7 @@ export default function (expandedParentClass = '', x = false) {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
onEnter (el: HTMLExpandElement) {
|
|
28
28
|
const initialStyle = el._initialStyle!
|
|
29
29
|
|
|
30
30
|
el.style.setProperty('transition', 'none', 'important')
|
|
@@ -47,10 +47,10 @@ export default function (expandedParentClass = '', x = false) {
|
|
|
47
47
|
})
|
|
48
48
|
},
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
onAfterEnter: resetStyles,
|
|
51
|
+
onEnterCancelled: resetStyles,
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
onLeave (el: HTMLExpandElement) {
|
|
54
54
|
el._initialStyle = {
|
|
55
55
|
transition: '',
|
|
56
56
|
overflow: el.style.overflow,
|
|
@@ -64,8 +64,8 @@ export default function (expandedParentClass = '', x = false) {
|
|
|
64
64
|
requestAnimationFrame(() => (el.style[sizeProperty] = '0'))
|
|
65
65
|
},
|
|
66
66
|
|
|
67
|
-
afterLeave,
|
|
68
|
-
|
|
67
|
+
onAfterLeave: afterLeave,
|
|
68
|
+
onLeaveCancelled: afterLeave,
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
function afterLeave (el: HTMLExpandElement) {
|
|
@@ -75,7 +75,7 @@ export default defineComponent({
|
|
|
75
75
|
},
|
|
76
76
|
render() {
|
|
77
77
|
return h(VOverlay, {
|
|
78
|
-
|
|
78
|
+
modelValue: this.value,
|
|
79
79
|
...props
|
|
80
80
|
})
|
|
81
81
|
}
|
|
@@ -142,8 +142,6 @@ export default defineComponent({
|
|
|
142
142
|
this.overlayApp.unmount()
|
|
143
143
|
this.overlayApp = null
|
|
144
144
|
this.overlay = null
|
|
145
|
-
console.log('destroyed')
|
|
146
|
-
|
|
147
145
|
})
|
|
148
146
|
|
|
149
147
|
// Cancel animation frame in case
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { reactive } from 'vue'
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
// Extensions
|
|
2
5
|
import { Service } from '../service'
|
|
3
6
|
|
|
@@ -72,6 +75,8 @@ export class Breakpoint extends Service implements IBreakpoint {
|
|
|
72
75
|
this.mobileBreakpoint = mobileBreakpoint
|
|
73
76
|
this.scrollBarWidth = scrollBarWidth
|
|
74
77
|
this.thresholds = thresholds
|
|
78
|
+
|
|
79
|
+
return reactive(this)
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
public init () {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
// Component specific transitions
|
|
13
13
|
.carousel-transition {
|
|
14
|
-
&-enter {
|
|
14
|
+
&-enter-from {
|
|
15
15
|
transform: translate(100%, 0);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
&-leave, &-leave-to {
|
|
18
|
+
&-leave-from, &-leave-to {
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
21
21
|
transform: translate(-100%, 0);
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.carousel-reverse-transition {
|
|
26
|
-
&-enter {
|
|
26
|
+
&-enter-from {
|
|
27
27
|
transform: translate(-100%, 0);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
&-leave, &-leave-to {
|
|
30
|
+
&-leave-from, &-leave-to {
|
|
31
31
|
position: absolute;
|
|
32
32
|
top: 0;
|
|
33
33
|
transform: translate(100%, 0);
|
|
@@ -40,24 +40,24 @@
|
|
|
40
40
|
pointer-events: none !important;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
&-enter, &-leave-to {
|
|
43
|
+
&-enter-from, &-leave-to {
|
|
44
44
|
transform: scale(0.5);
|
|
45
45
|
opacity: 0;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
&-enter-to, &-leave {
|
|
48
|
+
&-enter-to, &-leave-from {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.dialog-bottom-transition {
|
|
54
|
-
&-enter, &-leave-to {
|
|
54
|
+
&-enter-from, &-leave-to {
|
|
55
55
|
transform: translateY(100%);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.dialog-top-transition {
|
|
60
|
-
&-enter, &-leave-to {
|
|
60
|
+
&-enter-from, &-leave-to {
|
|
61
61
|
transform: translateY(-100%);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
transition: .3s map-get($transition, 'linear-out-slow-in');
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
&-enter,
|
|
72
|
+
&-enter-from,
|
|
73
73
|
&-leave-to {
|
|
74
74
|
opacity: 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
&-leave,
|
|
77
|
+
&-leave-from,
|
|
78
78
|
&-leave-active,
|
|
79
79
|
&-leave-to {
|
|
80
80
|
position: absolute !important;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.picker-transition {
|
|
85
|
-
&-enter {
|
|
85
|
+
&-enter-from {
|
|
86
86
|
transform: translate(0, 100%);
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
.picker-reverse-transition {
|
|
95
|
-
&-enter {
|
|
95
|
+
&-enter-from {
|
|
96
96
|
transform: translate(0, -100%);
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -103,11 +103,11 @@
|
|
|
103
103
|
|
|
104
104
|
.picker-title-transition {
|
|
105
105
|
&-enter-to,
|
|
106
|
-
&-leave {
|
|
106
|
+
&-leave-from {
|
|
107
107
|
transform: translate(0, 0);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
&-enter {
|
|
110
|
+
&-enter-from {
|
|
111
111
|
transform: translate(-100%, 0);
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
transform: translate(100%, 0);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
&-leave,
|
|
119
|
+
&-leave-from,
|
|
120
120
|
&-leave-to,
|
|
121
121
|
&-leave-active {
|
|
122
122
|
position: absolute !important;
|
|
@@ -124,11 +124,11 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.tab-transition {
|
|
127
|
-
&-enter {
|
|
127
|
+
&-enter-from {
|
|
128
128
|
transform: translate(100%, 0);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
&-leave, &-leave-active {
|
|
131
|
+
&-leave-from, &-leave-active {
|
|
132
132
|
position: absolute;
|
|
133
133
|
top: 0;
|
|
134
134
|
}
|
|
@@ -140,11 +140,11 @@
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.tab-reverse-transition {
|
|
143
|
-
&-enter {
|
|
143
|
+
&-enter-from {
|
|
144
144
|
transform: translate(-100%, 0);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
&-leave, &-leave-to {
|
|
147
|
+
&-leave-from, &-leave-to {
|
|
148
148
|
top: 0;
|
|
149
149
|
position: absolute;
|
|
150
150
|
transform: translate(100%, 0);
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
.scale-transition {
|
|
164
164
|
@include transition-default();
|
|
165
165
|
|
|
166
|
-
&-enter, &-leave, &-leave-to {
|
|
166
|
+
&-enter-from, &-leave-from, &-leave-to {
|
|
167
167
|
opacity: 0;
|
|
168
168
|
transform: scale(0);
|
|
169
169
|
}
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
.scale-rotate-transition {
|
|
173
173
|
@include transition-default();
|
|
174
174
|
|
|
175
|
-
&-enter, &-leave, &-leave-to {
|
|
175
|
+
&-enter-from, &-leave-from, &-leave-to {
|
|
176
176
|
opacity: 0;
|
|
177
177
|
transform: scale(0) rotate(-45deg);
|
|
178
178
|
}
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
.scale-rotate-reverse-transition {
|
|
182
182
|
@include transition-default();
|
|
183
183
|
|
|
184
|
-
&-enter, &-leave, &-leave-to {
|
|
184
|
+
&-enter-from, &-leave-from, &-leave-to {
|
|
185
185
|
opacity: 0;
|
|
186
186
|
transform: scale(0) rotate(45deg);
|
|
187
187
|
}
|
|
@@ -190,12 +190,12 @@
|
|
|
190
190
|
.message-transition {
|
|
191
191
|
@include transition-default();
|
|
192
192
|
|
|
193
|
-
&-enter, &-leave-to {
|
|
193
|
+
&-enter-from, &-leave-to {
|
|
194
194
|
opacity: 0;
|
|
195
195
|
transform: translateY(-15px);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
&-leave, &-leave-active {
|
|
198
|
+
&-leave-from, &-leave-active {
|
|
199
199
|
position: absolute;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
.slide-y-transition {
|
|
204
204
|
@include transition-default();
|
|
205
205
|
|
|
206
|
-
&-enter, &-leave-to {
|
|
206
|
+
&-enter-from, &-leave-to {
|
|
207
207
|
opacity: 0;
|
|
208
208
|
transform: translateY(-15px);
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
.slide-y-reverse-transition {
|
|
213
213
|
@include transition-default();
|
|
214
214
|
|
|
215
|
-
&-enter, &-leave-to {
|
|
215
|
+
&-enter-from, &-leave-to {
|
|
216
216
|
opacity: 0;
|
|
217
217
|
transform: translateY(15px);
|
|
218
218
|
}
|
|
@@ -221,11 +221,11 @@
|
|
|
221
221
|
.scroll-y-transition {
|
|
222
222
|
@include transition-default();
|
|
223
223
|
|
|
224
|
-
&-enter, &-leave-to {
|
|
224
|
+
&-enter-from, &-leave-to {
|
|
225
225
|
opacity: 0;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
&-enter {
|
|
228
|
+
&-enter-from {
|
|
229
229
|
transform: translateY(-15px);
|
|
230
230
|
}
|
|
231
231
|
|
|
@@ -237,11 +237,11 @@
|
|
|
237
237
|
.scroll-y-reverse-transition {
|
|
238
238
|
@include transition-default();
|
|
239
239
|
|
|
240
|
-
&-enter, &-leave-to {
|
|
240
|
+
&-enter-from, &-leave-to {
|
|
241
241
|
opacity: 0;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
&-enter {
|
|
244
|
+
&-enter-from {
|
|
245
245
|
transform: translateY(15px);
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -253,11 +253,11 @@
|
|
|
253
253
|
.scroll-x-transition {
|
|
254
254
|
@include transition-default();
|
|
255
255
|
|
|
256
|
-
&-enter, &-leave-to {
|
|
256
|
+
&-enter-from, &-leave-to {
|
|
257
257
|
opacity: 0;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
&-enter {
|
|
260
|
+
&-enter-from {
|
|
261
261
|
transform: translateX(-15px);
|
|
262
262
|
}
|
|
263
263
|
|
|
@@ -269,11 +269,11 @@
|
|
|
269
269
|
.scroll-x-reverse-transition {
|
|
270
270
|
@include transition-default();
|
|
271
271
|
|
|
272
|
-
&-enter, &-leave-to {
|
|
272
|
+
&-enter-from, &-leave-to {
|
|
273
273
|
opacity: 0;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
&-enter {
|
|
276
|
+
&-enter-from {
|
|
277
277
|
transform: translateX(15px);
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
.slide-x-transition {
|
|
286
286
|
@include transition-default();
|
|
287
287
|
|
|
288
|
-
&-enter, &-leave-to {
|
|
288
|
+
&-enter-from, &-leave-to {
|
|
289
289
|
opacity: 0;
|
|
290
290
|
transform: translateX(-15px);
|
|
291
291
|
}
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
.slide-x-reverse-transition {
|
|
295
295
|
@include transition-default();
|
|
296
296
|
|
|
297
|
-
&-enter, &-leave-to {
|
|
297
|
+
&-enter-from, &-leave-to {
|
|
298
298
|
opacity: 0;
|
|
299
299
|
transform: translateX(15px);
|
|
300
300
|
}
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
.fade-transition {
|
|
304
304
|
@include transition-default();
|
|
305
305
|
|
|
306
|
-
&-enter, &-leave-to {
|
|
306
|
+
&-enter-from, &-leave-to {
|
|
307
307
|
opacity: 0 !important;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
.fab-transition {
|
|
312
312
|
@include transition-default();
|
|
313
313
|
|
|
314
|
-
&-enter, &-leave-to {
|
|
314
|
+
&-enter-from, &-leave-to {
|
|
315
315
|
transform: scale(0) rotate(-45deg);
|
|
316
316
|
}
|
|
317
317
|
}
|