@dimailn/vuetify 2.7.2-alpha18 → 2.7.2-alpha19

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.
Files changed (44) hide show
  1. package/dist/vuetify.js +32 -36
  2. package/dist/vuetify.js.map +1 -1
  3. package/dist/vuetify.min.js +1 -1
  4. package/es5/components/VForm/VForm.js +8 -8
  5. package/es5/components/VForm/VForm.js.map +1 -1
  6. package/es5/components/VList/VList.js +1 -1
  7. package/es5/components/VList/VList.js.map +1 -1
  8. package/es5/components/VList/VListGroup.js +11 -14
  9. package/es5/components/VList/VListGroup.js.map +1 -1
  10. package/es5/components/VRangeSlider/VRangeSlider.js +1 -1
  11. package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
  12. package/es5/components/VSelect/VSelectList.js +1 -1
  13. package/es5/components/VSelect/VSelectList.js.map +1 -1
  14. package/es5/components/VSparkline/VSparkline.js +6 -6
  15. package/es5/components/VSparkline/VSparkline.js.map +1 -1
  16. package/es5/components/transitions/expand-transition.js +1 -0
  17. package/es5/components/transitions/expand-transition.js.map +1 -1
  18. package/es5/mixins/applicationable/index.js +3 -3
  19. package/es5/mixins/applicationable/index.js.map +1 -1
  20. package/lib/components/VForm/VForm.js +8 -8
  21. package/lib/components/VForm/VForm.js.map +1 -1
  22. package/lib/components/VList/VList.js +1 -1
  23. package/lib/components/VList/VList.js.map +1 -1
  24. package/lib/components/VList/VListGroup.js +10 -14
  25. package/lib/components/VList/VListGroup.js.map +1 -1
  26. package/lib/components/VRangeSlider/VRangeSlider.js +1 -1
  27. package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
  28. package/lib/components/VSelect/VSelectList.js +1 -1
  29. package/lib/components/VSelect/VSelectList.js.map +1 -1
  30. package/lib/components/VSparkline/VSparkline.js +6 -6
  31. package/lib/components/VSparkline/VSparkline.js.map +1 -1
  32. package/lib/components/transitions/expand-transition.js +1 -0
  33. package/lib/components/transitions/expand-transition.js.map +1 -1
  34. package/lib/mixins/applicationable/index.js +3 -3
  35. package/lib/mixins/applicationable/index.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/VForm/VForm.ts +8 -8
  38. package/src/components/VList/VList.ts +1 -1
  39. package/src/components/VList/VListGroup.ts +13 -13
  40. package/src/components/VRangeSlider/VRangeSlider.ts +1 -1
  41. package/src/components/VSelect/VSelectList.ts +1 -1
  42. package/src/components/VSparkline/VSparkline.ts +6 -6
  43. package/src/components/transitions/expand-transition.ts +2 -0
  44. package/src/mixins/applicationable/index.ts +3 -3
@@ -13,6 +13,7 @@ export default function (expandedParentClass = '', x = false) {
13
13
  },
14
14
 
15
15
  onEnter(el) {
16
+ if (el.style.display === 'none') return;
16
17
  const initialStyle = el._initialStyle;
17
18
  el.style.setProperty('transition', 'none', 'important'); // Hide overflow to account for collapsed margins in the calculated height
18
19
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/transitions/expand-transition.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,QAA2B,oBAA3B;AAYA,eAAc,UAAW,mBAAmB,GAAG,EAAjC,EAAqC,CAAC,GAAG,KAAzC,EAA8C;AAC1D,QAAM,YAAY,GAAG,CAAC,GAAG,OAAH,GAAa,QAAnC;AACA,QAAM,cAAc,GAAG,SAAS,UAAU,CAAC,YAAD,CAAc,EAAxD;AAEA,SAAO;AACL,IAAA,aAAa,CAAE,EAAF,EAAuB;AAClC,MAAA,EAAE,CAAC,OAAH,GAAa,EAAE,CAAC,UAAhB;AACA,MAAA,EAAE,CAAC,aAAH,GAAmB;AACjB,QAAA,UAAU,EAAE,EAAE,CAAC,KAAH,CAAS,UADJ;AAEjB,QAAA,QAAQ,EAAE,EAAE,CAAC,KAAH,CAAS,QAFF;AAGjB,SAAC,YAAD,GAAgB,EAAE,CAAC,KAAH,CAAS,YAAT;AAHC,OAAnB;AAKD,KARI;;AAUL,IAAA,OAAO,CAAE,EAAF,EAAuB;AAC5B,YAAM,YAAY,GAAG,EAAE,CAA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,IAAA,YAAY,EAAE,UAlDT;AAmDL,IAAA,gBAAgB,EAAE;AAnDb,GAAP;;AAsDA,WAAS,UAAT,CAAqB,EAArB,EAA0C;AACxC,QAAI,mBAAmB,IAAI,EAAE,CAAC,OAA9B,EAAuC;AACrC,MAAA,EAAE,CAAC,OAAH,CAAW,SAAX,CAAqB,MAArB,CAA4B,mBAA5B;AACD;;AACD,IAAA,WAAW,CAAC,EAAD,CAAX;AACD;;AAED,WAAS,WAAT,CAAsB,EAAtB,EAA2C;AACzC,UAAM,IAAI,GAAG,EAAE,CAAC,aAAH,CAAkB,YAAlB,CAAb;AACA,IAAA,EAAE,CAAC,KAAH,CAAS,QAAT,GAAoB,EAAE,CAAC,aAAH,CAAkB,QAAtC;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 overflow: string\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 onBeforeEnter (el: HTMLExpandElement) {\n el._parent = el.parentNode as (Node & ParentNode & HTMLElement) | null\n el._initialStyle = {\n transition: el.style.transition,\n overflow: el.style.overflow,\n [sizeProperty]: el.style[sizeProperty],\n }\n },\n\n onEnter (el: HTMLExpandElement) {\n const initialStyle = el._initialStyle!\n\n el.style.setProperty('transition', 'none', 'important')\n // Hide overflow to account for collapsed margins in the calculated height\n el.style.overflow = 'hidden'\n const offset = `${el[offsetProperty]}px`\n\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 onAfterEnter: resetStyles,\n onEnterCancelled: resetStyles,\n\n onLeave (el: HTMLExpandElement) {\n el._initialStyle = {\n transition: '',\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 onAfterLeave: afterLeave,\n onLeaveCancelled: 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"}
1
+ {"version":3,"sources":["../../../src/components/transitions/expand-transition.ts"],"names":[],"mappings":"AAAA,SAAS,UAAT,QAA2B,oBAA3B;AAYA,eAAc,UAAW,mBAAmB,GAAG,EAAjC,EAAqC,CAAC,GAAG,KAAzC,EAA8C;AAC1D,QAAM,YAAY,GAAG,CAAC,GAAG,OAAH,GAAa,QAAnC;AACA,QAAM,cAAc,GAAG,SAAS,UAAU,CAAC,YAAD,CAAc,EAAxD;AAEA,SAAO;AACL,IAAA,aAAa,CAAE,EAAF,EAAuB;AAClC,MAAA,EAAE,CAAC,OAAH,GAAa,EAAE,CAAC,UAAhB;AACA,MAAA,EAAE,CAAC,aAAH,GAAmB;AACjB,QAAA,UAAU,EAAE,EAAE,CAAC,KAAH,CAAS,UADJ;AAEjB,QAAA,QAAQ,EAAE,EAAE,CAAC,KAAH,CAAS,QAFF;AAGjB,SAAC,YAAD,GAAgB,EAAE,CAAC,KAAH,CAAS,YAA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cAAD,CAAgB,IAA9C;AACA,WAAK,EAAE,CAAC,YAAR,CAT4B,CASP;;AAErB,MAAA,qBAAqB,CAAC,MAAO,EAAE,CAAC,KAAH,CAAS,YAAT,IAAyB,GAAjC,CAArB;AACD,KAlDI;;AAoDL,IAAA,YAAY,EAAE,UApDT;AAqDL,IAAA,gBAAgB,EAAE;AArDb,GAAP;;AAwDA,WAAS,UAAT,CAAqB,EAArB,EAA0C;AACxC,QAAI,mBAAmB,IAAI,EAAE,CAAC,OAA9B,EAAuC;AACrC,MAAA,EAAE,CAAC,OAAH,CAAW,SAAX,CAAqB,MAArB,CAA4B,mBAA5B;AACD;;AACD,IAAA,WAAW,CAAC,EAAD,CAAX;AACD;;AAED,WAAS,WAAT,CAAsB,EAAtB,EAA2C;AACzC,UAAM,IAAI,GAAG,EAAE,CAAC,aAAH,CAAkB,YAAlB,CAAb;AACA,IAAA,EAAE,CAAC,KAAH,CAAS,QAAT,GAAoB,EAAE,CAAC,aAAH,CAAkB,QAAtC;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 overflow: string\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 onBeforeEnter (el: HTMLExpandElement) {\n el._parent = el.parentNode as (Node & ParentNode & HTMLElement) | null\n el._initialStyle = {\n transition: el.style.transition,\n overflow: el.style.overflow,\n [sizeProperty]: el.style[sizeProperty],\n }\n },\n\n onEnter (el: HTMLExpandElement) {\n if(el.style.display === 'none') return\n\n const initialStyle = el._initialStyle!\n\n el.style.setProperty('transition', 'none', 'important')\n // Hide overflow to account for collapsed margins in the calculated height\n el.style.overflow = 'hidden'\n const offset = `${el[offsetProperty]}px`\n\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 onAfterEnter: resetStyles,\n onEnterCancelled: resetStyles,\n\n onLeave (el: HTMLExpandElement) {\n el._initialStyle = {\n transition: '',\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 onAfterLeave: afterLeave,\n onLeaveCancelled: 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"}
@@ -22,7 +22,7 @@ export default function applicationable(value, events = []) {
22
22
  },
23
23
 
24
24
  applicationProperty(newVal, oldVal) {
25
- this.$vuetify.application.unregister(this._uid, oldVal);
25
+ this.$vuetify.application.unregister(this.$.uid, oldVal);
26
26
  }
27
27
 
28
28
  },
@@ -54,12 +54,12 @@ export default function applicationable(value, events = []) {
54
54
  methods: {
55
55
  callUpdate() {
56
56
  if (!this.app) return;
57
- this.$vuetify.application.register(this._uid, this.applicationProperty, this.updateApplication());
57
+ this.$vuetify.application.register(this.$.uid, this.applicationProperty, this.updateApplication());
58
58
  },
59
59
 
60
60
  removeApplication(force = false) {
61
61
  if (!force && !this.app) return;
62
- this.$vuetify.application.unregister(this._uid, this.applicationProperty);
62
+ this.$vuetify.application.unregister(this.$.uid, this.applicationProperty);
63
63
  },
64
64
 
65
65
  updateApplication: () => 0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/mixins/applicationable/index.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,IAAI,mBAApB,QAA+C,iBAA/C,C,CAGA;;AACA,OAAO,MAAP,MAAmB,mBAAnB;AAEA,eAAc,SAAU,eAAV,CAA2B,KAA3B,EAA8C,MAAA,GAAmB,EAAjE,EAAmE;AAC/E;AACA,SAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC,UAAD,EAAa,OAAb,CAAD,CAApB,CAAN,CAAmD,MAAnD,CAA0D;AAC/D,IAAA,IAAI,EAAE,iBADyD;AAG/D,IAAA,KAAK,EAAE;AACL,MAAA,GAAG,EAAE;AADA,KAHwD;AAO/D,IAAA,QAAQ,EAAE;AACR,MAAA,mBAAmB,GAAA;AACjB,eAAO,KAAP;AACD;;AAHO,KAPqD;AAa/D,IAAA,KAAK,EAAE;AACL;AACA;AACA,MAAA,GAAG,CAAE,CAAF,EAAc,IAAd,EAA2B;AAC5B,QAAA,IAAI,GACA,KAAK,iBAAL,CAAuB,IAAvB,CADA,GAEA,KAAK,UAAL,EAFJ;AAGD,OAPI;;AAQL,MAAA,mBAAmB,CAAE,MAAF,EAAU,MAAV,EAAgB;AACjC,aAAK,QAAL,CAAc,WAAd,CAA0B,UAA1B,CAAqC,KAAK,IAA1C,EAAgD,MAAhD;AACD;;AAVI,KAbwD;;AA0B/D,IAAA,SAAS,GAAA;AACP,WAAK,UAAL;AACD,KA5B8D;;AA8B/D,IAAA,OAAO,GAAA;AACL,WAAK,IAAI,CAAC,GAAG,CAAR,EAAW,MAAM,GAAG,MAAM,CAAC,MAAhC,EAAwC,CAAC,GAAG,MAA5C,EAAoD,CAAC,EAArD,EAAyD;AACvD,aAAK,MAAL,CAAY,MAAM,CAAC,CAAD,CAAlB,EAAuB,KAAK,UAA5B;AACD;;AACD,WAAK,UAAL;AACD,KAnC8D;;AAqC/D,IAAA,OAAO,GAAA;AACL,WAAK,UAAL;AACD,KAvC8D;;AAyC/D,IAAA,WAAW,GAAA;AACT,WAAK,iBAAL;AACD,KA3C8D;;AA6C/D,IAAA,SAAS,GAAA;AACP,WAAK,iBAAL;AACD,KA/C8D;;AAiD/D,IAAA,OAAO,EAAE;AACP,MAAA,UAAU,GAAA;AACR,YAAI,CAAC,KAAK,GAAV,EAAe;AAEf,aAAK,QAAL,CAAc,WAAd,CAA0B,QAA1B,CACE,KAAK,IADP,EAEE,KAAK,mBAFP,EAGE,KAAK,iBAAL,EAHF;AAKD,OATM;;AAUP,MAAA,iBAAiB,CAAE,KAAK,GAAG,KAAV,EAAe;AAC9B,YAAI,CAAC,KAAD,IAAU,CAAC,KAAK,GAApB,EAAyB;AAEzB,aAAK,QAAL,CAAc,WAAd,CAA0B,UAA1B,CACE,KAAK,IADP,EAEE,KAAK,mBAFP;AAID,OAjBM;;AAkBP,MAAA,iBAAiB,EAAE,MAAM;AAlBlB;AAjDsD,GAA1D,CAAP;AAsED","sourcesContent":["import { factory as PositionableFactory } from '../positionable'\nimport { TargetProp } from 'vuetify/types/services/application'\n\n// Util\nimport mixins from '../../util/mixins'\n\nexport default function applicationable (value: TargetProp, events: string[] = []) {\n /* @vue/component */\n return mixins(PositionableFactory(['absolute', 'fixed'])).extend({\n name: 'applicationable',\n\n props: {\n app: Boolean,\n },\n\n computed: {\n applicationProperty (): TargetProp {\n return value\n },\n },\n\n watch: {\n // If previous value was app\n // reset the provided prop\n app (x: boolean, prev: boolean) {\n prev\n ? this.removeApplication(true)\n : this.callUpdate()\n },\n applicationProperty (newVal, oldVal) {\n this.$vuetify.application.unregister(this._uid, oldVal)\n },\n },\n\n activated () {\n this.callUpdate()\n },\n\n created () {\n for (let i = 0, length = events.length; i < length; i++) {\n this.$watch(events[i], this.callUpdate)\n }\n this.callUpdate()\n },\n\n mounted () {\n this.callUpdate()\n },\n\n deactivated () {\n this.removeApplication()\n },\n\n unmounted () {\n this.removeApplication()\n },\n\n methods: {\n callUpdate () {\n if (!this.app) return\n\n this.$vuetify.application.register(\n this._uid,\n this.applicationProperty,\n this.updateApplication()\n )\n },\n removeApplication (force = false) {\n if (!force && !this.app) return\n\n this.$vuetify.application.unregister(\n this._uid,\n this.applicationProperty\n )\n },\n updateApplication: () => 0,\n },\n })\n}\n"],"sourceRoot":"","file":"index.js"}
1
+ {"version":3,"sources":["../../../src/mixins/applicationable/index.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,IAAI,mBAApB,QAA+C,iBAA/C,C,CAGA;;AACA,OAAO,MAAP,MAAmB,mBAAnB;AAEA,eAAc,SAAU,eAAV,CAA2B,KAA3B,EAA8C,MAAA,GAAmB,EAAjE,EAAmE;AAC/E;AACA,SAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC,UAAD,EAAa,OAAb,CAAD,CAApB,CAAN,CAAmD,MAAnD,CAA0D;AAC/D,IAAA,IAAI,EAAE,iBADyD;AAG/D,IAAA,KAAK,EAAE;AACL,MAAA,GAAG,EAAE;AADA,KAHwD;AAO/D,IAAA,QAAQ,EAAE;AACR,MAAA,mBAAmB,GAAA;AACjB,eAAO,KAAP;AACD;;AAHO,KAPqD;AAa/D,IAAA,KAAK,EAAE;AACL;AACA;AACA,MAAA,GAAG,CAAE,CAAF,EAAc,IAAd,EAA2B;AAC5B,QAAA,IAAI,GACA,KAAK,iBAAL,CAAuB,IAAvB,CADA,GAEA,KAAK,UAAL,EAFJ;AAGD,OAPI;;AAQL,MAAA,mBAAmB,CAAE,MAAF,EAAU,MAAV,EAAgB;AACjC,aAAK,QAAL,CAAc,WAAd,CAA0B,UAA1B,CAAqC,KAAK,CAAL,CAAO,GAA5C,EAAiD,MAAjD;AACD;;AAVI,KAbwD;;AA0B/D,IAAA,SAAS,GAAA;AACP,WAAK,UAAL;AACD,KA5B8D;;AA8B/D,IAAA,OAAO,GAAA;AACL,WAAK,IAAI,CAAC,GAAG,CAAR,EAAW,MAAM,GAAG,MAAM,CAAC,MAAhC,EAAwC,CAAC,GAAG,MAA5C,EAAoD,CAAC,EAArD,EAAyD;AACvD,aAAK,MAAL,CAAY,MAAM,CAAC,CAAD,CAAlB,EAAuB,KAAK,UAA5B;AACD;;AACD,WAAK,UAAL;AACD,KAnC8D;;AAqC/D,IAAA,OAAO,GAAA;AACL,WAAK,UAAL;AACD,KAvC8D;;AAyC/D,IAAA,WAAW,GAAA;AACT,WAAK,iBAAL;AACD,KA3C8D;;AA6C/D,IAAA,SAAS,GAAA;AACP,WAAK,iBAAL;AACD,KA/C8D;;AAiD/D,IAAA,OAAO,EAAE;AACP,MAAA,UAAU,GAAA;AACR,YAAI,CAAC,KAAK,GAAV,EAAe;AAEf,aAAK,QAAL,CAAc,WAAd,CAA0B,QAA1B,CACE,KAAK,CAAL,CAAO,GADT,EAEE,KAAK,mBAFP,EAGE,KAAK,iBAAL,EAHF;AAKD,OATM;;AAUP,MAAA,iBAAiB,CAAE,KAAK,GAAG,KAAV,EAAe;AAC9B,YAAI,CAAC,KAAD,IAAU,CAAC,KAAK,GAApB,EAAyB;AAEzB,aAAK,QAAL,CAAc,WAAd,CAA0B,UAA1B,CACE,KAAK,CAAL,CAAO,GADT,EAEE,KAAK,mBAFP;AAID,OAjBM;;AAkBP,MAAA,iBAAiB,EAAE,MAAM;AAlBlB;AAjDsD,GAA1D,CAAP;AAsED","sourcesContent":["import { factory as PositionableFactory } from '../positionable'\nimport { TargetProp } from 'vuetify/types/services/application'\n\n// Util\nimport mixins from '../../util/mixins'\n\nexport default function applicationable (value: TargetProp, events: string[] = []) {\n /* @vue/component */\n return mixins(PositionableFactory(['absolute', 'fixed'])).extend({\n name: 'applicationable',\n\n props: {\n app: Boolean,\n },\n\n computed: {\n applicationProperty (): TargetProp {\n return value\n },\n },\n\n watch: {\n // If previous value was app\n // reset the provided prop\n app (x: boolean, prev: boolean) {\n prev\n ? this.removeApplication(true)\n : this.callUpdate()\n },\n applicationProperty (newVal, oldVal) {\n this.$vuetify.application.unregister(this.$.uid, oldVal)\n },\n },\n\n activated () {\n this.callUpdate()\n },\n\n created () {\n for (let i = 0, length = events.length; i < length; i++) {\n this.$watch(events[i], this.callUpdate)\n }\n this.callUpdate()\n },\n\n mounted () {\n this.callUpdate()\n },\n\n deactivated () {\n this.removeApplication()\n },\n\n unmounted () {\n this.removeApplication()\n },\n\n methods: {\n callUpdate () {\n if (!this.app) return\n\n this.$vuetify.application.register(\n this.$.uid,\n this.applicationProperty,\n this.updateApplication()\n )\n },\n removeApplication (force = false) {\n if (!force && !this.app) return\n\n this.$vuetify.application.unregister(\n this.$.uid,\n this.applicationProperty\n )\n },\n updateApplication: () => 0,\n },\n })\n}\n"],"sourceRoot":"","file":"index.js"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dimailn/vuetify",
3
3
  "description": "Vue Material Component Framework",
4
- "version": "2.7.2-alpha18",
4
+ "version": "2.7.2-alpha19",
5
5
  "author": {
6
6
  "name": "John Leider",
7
7
  "email": "john@vuetifyjs.com"
@@ -62,12 +62,12 @@ export default mixins(
62
62
  watchInput (input: any): Watchers {
63
63
  const watcher = (input: any): (() => void) => {
64
64
  return input.$watch('hasError', (val: boolean) => {
65
- this.errorBag[input._uid] = val
65
+ this.errorBag[input.$.uid] = val
66
66
  }, { immediate: true })
67
67
  }
68
68
 
69
69
  const watchers: Watchers = {
70
- _uid: input._uid,
70
+ _uid: input.$.uid,
71
71
  valid: () => {},
72
72
  shouldValidate: () => {},
73
73
  }
@@ -78,7 +78,7 @@ export default mixins(
78
78
  if (!val) return
79
79
 
80
80
  // Only watch if we're not already doing it
81
- if (this.errorBag.hasOwnProperty(input._uid)) return
81
+ if (this.errorBag.hasOwnProperty(input.$.uid)) return
82
82
 
83
83
  watchers.valid = watcher(input)
84
84
  })
@@ -115,19 +115,19 @@ export default mixins(
115
115
  this.watchers.push(this.watchInput(input))
116
116
  },
117
117
  unregister (input: VInputInstance) {
118
- const found = this.inputs.find(i => i._uid === input._uid)
118
+ const found = this.inputs.find(i => i.$.uid === input.$.uid)
119
119
 
120
120
  if (!found) return
121
121
 
122
- const unwatch = this.watchers.find(i => i._uid === found._uid)
122
+ const unwatch = this.watchers.find(i => i.$.uid === found.$.uid)
123
123
  if (unwatch) {
124
124
  unwatch.valid()
125
125
  unwatch.shouldValidate()
126
126
  }
127
127
 
128
- this.watchers = this.watchers.filter(i => i._uid !== found._uid)
129
- this.inputs = this.inputs.filter(i => i._uid !== found._uid)
130
- delete this.errorBag[found._uid]
128
+ this.watchers = this.watchers.filter(i => i.$.uid !== found.$.uid)
129
+ this.inputs = this.inputs.filter(i => i.$.uid !== found.$.uid)
130
+ delete this.errorBag[found.$.uid]
131
131
  },
132
132
  },
133
133
 
@@ -75,7 +75,7 @@ export default defineComponent({
75
75
  this.groups.push(content)
76
76
  },
77
77
  unregister (content: VListGroupInstance) {
78
- const index = this.groups.findIndex(g => g._uid === content._uid)
78
+ const index = this.groups.findIndex(g => g.$.uid === content.$.uid)
79
79
 
80
80
  if (index > -1) this.groups.splice(index, 1)
81
81
  },
@@ -1,4 +1,4 @@
1
- import {h, withDirectives} from 'vue'
1
+ import {h, withDirectives, vShow} from 'vue'
2
2
  // Styles
3
3
  import './VListGroup.sass'
4
4
 
@@ -91,7 +91,7 @@ export default baseMixins.extend({
91
91
  isActive (val: boolean) {
92
92
  /* istanbul ignore else */
93
93
  if (!this.subGroup && val) {
94
- this.list && this.list.listClick(this._uid)
94
+ this.list && this.list.listClick(this.$.uid)
95
95
  }
96
96
  },
97
97
  $route: 'onRouteChange',
@@ -102,7 +102,7 @@ export default baseMixins.extend({
102
102
 
103
103
  if (this.group &&
104
104
  this.$route &&
105
- this.value == null
105
+ this.modelValue == null
106
106
  ) {
107
107
  this.isActive = this.matchRoute(this.$route.path)
108
108
  }
@@ -157,14 +157,15 @@ export default baseMixins.extend({
157
157
  ])
158
158
  },
159
159
  genItems (): VNode[] {
160
+ const directives = [[
161
+ vShow,
162
+ this.isActive
163
+ ]]
164
+
160
165
  return this.showLazyContent(() => [
161
- h('div', {
166
+ withDirectives(h('div', {
162
167
  class: 'v-list-group__items',
163
- directives: [{
164
- name: 'show',
165
- value: this.isActive,
166
- }],
167
- }, getSlot(this)),
168
+ }, getSlot(this)), directives)
168
169
  ])
169
170
  },
170
171
  genPrependIcon (): VNode | null {
@@ -189,13 +190,13 @@ export default baseMixins.extend({
189
190
 
190
191
  /* istanbul ignore else */
191
192
  if (isActive && this.isActive !== isActive) {
192
- this.list && this.list.listClick(this._uid)
193
+ this.list && this.list.listClick(this.$.uid)
193
194
  }
194
195
 
195
196
  this.isActive = isActive
196
197
  },
197
198
  toggle (uid: number) {
198
- const isActive = this._uid === uid
199
+ const isActive = this.$.uid === uid
199
200
 
200
201
  if (isActive) this.isBooted = true
201
202
  this.$nextTick(() => (this.isActive = isActive))
@@ -207,8 +208,7 @@ export default baseMixins.extend({
207
208
 
208
209
  render (): VNode {
209
210
  return h('div', this.setTextColor(this.isActive && this.color, {
210
- class: 'v-list-group',
211
- class: this.classes,
211
+ class: ['v-list-group', this.classes]
212
212
  }), [
213
213
  this.genHeader(),
214
214
  h(VExpandTransition, this.genItems()),
@@ -100,7 +100,7 @@ export default defineComponent({
100
100
  input.data = input.data || {}
101
101
  input.data.attrs = input.data.attrs || {}
102
102
  input.data.attrs.value = this.internalValue[i]
103
- input.data.attrs.id = `input-${i ? 'max' : 'min'}-${this._uid}`
103
+ input.data.attrs.id = `input-${i ? 'max' : 'min'}-${this.$.uid}`
104
104
 
105
105
  return input
106
106
  })
@@ -147,7 +147,7 @@ export default mixins(Colorable, Themeable).extend({
147
147
  // Default behavior in list does not
148
148
  // contain aria-selected by default
149
149
  'aria-selected': String(value),
150
- id: `list-item-${this._uid}-${index}`,
150
+ id: `list-item-${this.$.uid}-${index}`,
151
151
  role: 'option',
152
152
  onMousedown: (e: Event) => {
153
153
  // Prevent onBlur from being called
@@ -284,7 +284,7 @@ export default mixins<options &
284
284
  return h('defs', [
285
285
  h('linearGradient', {
286
286
  attrs: {
287
- id: this._uid,
287
+ id: this.$.uid,
288
288
  gradientUnits: 'userSpaceOnUse',
289
289
  x1: gradientDirection === 'left' ? '100%' : '0',
290
290
  y1: gradientDirection === 'top' ? '100%' : '0',
@@ -310,8 +310,8 @@ export default mixins<options &
310
310
  return h('path', {
311
311
  attrs: {
312
312
  d: genPath(points, this._radius, this.fill, this.parsedHeight),
313
- fill: this.fill ? `url(#${this._uid})` : 'none',
314
- stroke: this.fill ? 'none' : `url(#${this._uid})`,
313
+ fill: this.fill ? `url(#${this.$.uid})` : 'none',
314
+ stroke: this.fill ? 'none' : `url(#${this.$.uid})`,
315
315
  },
316
316
  ref: 'path',
317
317
  })
@@ -347,12 +347,12 @@ export default mixins<options &
347
347
  },
348
348
  }, [
349
349
  this.genGradient(),
350
- this.genClipPath(bars, offsetX, this._lineWidth, 'sparkline-bar-' + this._uid),
350
+ this.genClipPath(bars, offsetX, this._lineWidth, 'sparkline-bar-' + this.$.uid),
351
351
  this.hasLabels ? this.genLabels(offsetX) : undefined as never,
352
352
  h('g', {
353
353
  attrs: {
354
- 'clip-path': `url(#sparkline-bar-${this._uid}-clip)`,
355
- fill: `url(#${this._uid})`,
354
+ 'clip-path': `url(#sparkline-bar-${this.$.uid}-clip)`,
355
+ fill: `url(#${this.$.uid})`,
356
356
  },
357
357
  }, [
358
358
  h('rect', {
@@ -25,6 +25,8 @@ export default function (expandedParentClass = '', x = false) {
25
25
  },
26
26
 
27
27
  onEnter (el: HTMLExpandElement) {
28
+ if(el.style.display === 'none') return
29
+
28
30
  const initialStyle = el._initialStyle!
29
31
 
30
32
  el.style.setProperty('transition', 'none', 'important')
@@ -28,7 +28,7 @@ export default function applicationable (value: TargetProp, events: string[] = [
28
28
  : this.callUpdate()
29
29
  },
30
30
  applicationProperty (newVal, oldVal) {
31
- this.$vuetify.application.unregister(this._uid, oldVal)
31
+ this.$vuetify.application.unregister(this.$.uid, oldVal)
32
32
  },
33
33
  },
34
34
 
@@ -60,7 +60,7 @@ export default function applicationable (value: TargetProp, events: string[] = [
60
60
  if (!this.app) return
61
61
 
62
62
  this.$vuetify.application.register(
63
- this._uid,
63
+ this.$.uid,
64
64
  this.applicationProperty,
65
65
  this.updateApplication()
66
66
  )
@@ -69,7 +69,7 @@ export default function applicationable (value: TargetProp, events: string[] = [
69
69
  if (!force && !this.app) return
70
70
 
71
71
  this.$vuetify.application.unregister(
72
- this._uid,
72
+ this.$.uid,
73
73
  this.applicationProperty
74
74
  )
75
75
  },