This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/es5/components/transitions/expand-transition.js.map
2019-08-11 20:48:02 +02:00

1 line
No EOL
4.8 KiB
Text

{"version":3,"sources":["../../../src/components/transitions/expand-transition.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;AAac,oBAA8C;AAAA,MAAnC,mBAAmC,uEAAb,EAAa;AAAA,MAAT,CAAS,uEAAL,KAAK;AAC1D,MAAM,YAAY,GAAG,CAAC,GAAG,OAAH,GAAa,QAAnC;AACA,MAAM,cAAc,mBAAY,yBAAW,YAAX,CAAZ,CAApB;AAEA,SAAO;AACL,IAAA,WADK,uBACQ,EADR,EAC6B;AAChC,MAAA,EAAE,CAAC,OAAH,GAAa,EAAE,CAAC,UAAhB;AACA,MAAA,EAAE,CAAC,aAAH;AACE,QAAA,UAAU,EAAE,EAAE,CAAC,KAAH,CAAS,UADvB;AAEE,QAAA,UAAU,EAAE,EAAE,CAAC,KAAH,CAAS,UAFvB;AAGE,QAAA,QAAQ,EAAE,EAAE,CAAC,KAAH,CAAS;AAHrB,SAIG,YAJH,EAIkB,EAAE,CAAC,KAAH,CAAS,YAAT,CAJlB;AAMD,KATI;AAWL,IAAA,KAXK,iBAWE,EAXF,EAWuB;AAC1B,UAAM,YAAY,GAAG,EAAE,CAAC,aAAxB;AACA,UAAM,MAAM,aAAM,EAAE,CAAC,cAAD,CAAR,OAAZ;AAEA,MAAA,EAAE,CAAC,KAAH,CAAS,WAAT,CAAqB,YAArB,EAAmC,MAAnC,EAA2C,WAA3C;AACA,MAAA,EAAE,CAAC,KAAH,CAAS,UAAT,GAAsB,QAAtB;AACA,MAAA,EAAE,CAAC,KAAH,CAAS,UAAT,GAAsB,YAAY,CAAC,UAAnC;AACA,MAAA,EAAE,CAAC,KAAH,CAAS,QAAT,GAAoB,QAApB;AACA,MAAA,EAAE,CAAC,KAAH,CAAS,YAAT,IAAyB,GAAzB;AAEA,WAAK,EA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S,WAAT,CAAsB,EAAtB,EAA2C;AACzC,QAAM,IAAI,GAAG,EAAE,CAAC,aAAH,CAAiB,YAAjB,CAAb;AACA,IAAA,EAAE,CAAC,KAAH,CAAS,QAAT,GAAoB,EAAE,CAAC,aAAH,CAAiB,QAArC;AACA,QAAI,IAAI,IAAI,IAAZ,EAAkB,EAAE,CAAC,KAAH,CAAS,YAAT,IAAyB,IAAzB;AAClB,WAAO,EAAE,CAAC,aAAV;AACD;AACF","sourcesContent":["import { upperFirst } from '../../util/helpers'\n\ninterface HTMLExpandElement extends HTMLElement {\n _parent?: (Node & ParentNode & HTMLElement) | null\n _initialStyle: {\n transition: string\n visibility: string | null\n overflow: string | null\n height?: string | null\n width?: string | null\n }\n}\n\nexport default function (expandedParentClass = '', x = false) {\n const sizeProperty = x ? 'width' : 'height' as 'width' | 'height'\n const offsetProperty = `offset${upperFirst(sizeProperty)}` as 'offsetHeight' | 'offsetWidth'\n\n return {\n beforeEnter (el: HTMLExpandElement) {\n el._parent = el.parentNode as (Node & ParentNode & HTMLElement) | null\n el._initialStyle = {\n transition: el.style.transition,\n visibility: el.style.visibility,\n overflow: el.style.overflow,\n [sizeProperty]: el.style[sizeProperty],\n }\n },\n\n enter (el: HTMLExpandElement) {\n const initialStyle = el._initialStyle\n const offset = `${el[offsetProperty]}px`\n\n el.style.setProperty('transition', 'none', 'important')\n el.style.visibility = 'hidden'\n el.style.visibility = initialStyle.visibility\n el.style.overflow = 'hidden'\n el.style[sizeProperty] = '0'\n\n void el.offsetHeight // force reflow\n\n el.style.transition = initialStyle.transition\n\n if (expandedParentClass && el._parent) {\n el._parent.classList.add(expandedParentClass)\n }\n\n requestAnimationFrame(() => {\n el.style[sizeProperty] = offset\n })\n },\n\n afterEnter: resetStyles,\n enterCancelled: resetStyles,\n\n leave (el: HTMLExpandElement) {\n el._initialStyle = {\n transition: '',\n visibility: '',\n overflow: el.style.overflow,\n [sizeProperty]: el.style[sizeProperty],\n }\n\n el.style.overflow = 'hidden'\n el.style[sizeProperty] = `${el[offsetProperty]}px`\n void el.offsetHeight // force reflow\n\n requestAnimationFrame(() => (el.style[sizeProperty] = '0'))\n },\n\n afterLeave,\n leaveCancelled: afterLeave,\n }\n\n function afterLeave (el: HTMLExpandElement) {\n if (expandedParentClass && el._parent) {\n el._parent.classList.remove(expandedParentClass)\n }\n resetStyles(el)\n }\n\n function resetStyles (el: HTMLExpandElement) {\n const size = el._initialStyle[sizeProperty]\n el.style.overflow = el._initialStyle.overflow\n if (size != null) el.style[sizeProperty] = size\n delete el._initialStyle\n }\n}\n"],"sourceRoot":"","file":"expand-transition.js"}