@dimailn/vuetify 2.7.2-alpha56 → 2.7.2-alpha57
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/json/attributes.json +3945 -417
- package/dist/json/tags.json +1120 -133
- package/dist/json/web-types.json +12516 -2651
- package/dist/vuetify.js +66 -76
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/directives/click-outside/index.js +19 -21
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/intersect/index.js +12 -17
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +9 -11
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +8 -10
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/scroll/index.js +11 -12
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/directives/touch/index.js +6 -5
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/services/theme/utils.js.map +1 -1
- package/lib/directives/click-outside/index.js +17 -19
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/intersect/index.js +12 -16
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +9 -11
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +8 -8
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/scroll/index.js +8 -8
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/directives/touch/index.js +6 -5
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/services/theme/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VMenu/__tests__/VMenuActivatorTest.spec.ts +25 -0
- package/src/components/VMenu/__tests__/test-with-directives.spec.ts +50 -0
- package/src/directives/click-outside/__tests__/click-outside-shadow-dom.spec.ts +2 -1
- package/src/directives/click-outside/__tests__/click-outside.spec.ts +2 -1
- package/src/directives/click-outside/index.ts +25 -18
- package/src/directives/intersect/__tests__/intersect.spec.ts +31 -13
- package/src/directives/intersect/index.ts +15 -19
- package/src/directives/mutate/__tests__/mutate.spec.ts +35 -27
- package/src/directives/mutate/index.ts +12 -6
- package/src/directives/resize/__tests__/resize.spec.ts +4 -4
- package/src/directives/resize/index.ts +11 -18
- package/src/directives/scroll/__tests__/scroll.spec.ts +5 -29
- package/src/directives/scroll/index.ts +14 -7
- package/src/directives/touch/index.ts +6 -5
- package/src/services/theme/utils.ts +1 -1
|
@@ -85,6 +85,8 @@ function createHandlers (value: TouchHandlers): TouchStoredHandlers {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
const touchState = new WeakMap<EventTarget, TouchStoredHandlers>()
|
|
89
|
+
|
|
88
90
|
function mounted (
|
|
89
91
|
el: HTMLElement,
|
|
90
92
|
binding: DirectiveBinding<TouchValue>,
|
|
@@ -98,8 +100,7 @@ function mounted (
|
|
|
98
100
|
if (!target) return
|
|
99
101
|
|
|
100
102
|
const handlers = createHandlers(binding.value)
|
|
101
|
-
|
|
102
|
-
target._touchHandlers![vnode.ctx!.uid] = handlers
|
|
103
|
+
touchState.set(target, handlers)
|
|
103
104
|
|
|
104
105
|
keys(handlers).forEach(eventName => {
|
|
105
106
|
target.addEventListener(
|
|
@@ -116,14 +117,14 @@ function unmounted (
|
|
|
116
117
|
vnode: VNode
|
|
117
118
|
) {
|
|
118
119
|
const target = binding.value.parent ? el.parentElement : el
|
|
119
|
-
if (!target
|
|
120
|
+
if (!target) return
|
|
120
121
|
|
|
121
|
-
const handlers = target
|
|
122
|
+
const handlers = touchState.get(target)
|
|
122
123
|
if (handlers) {
|
|
123
124
|
keys(handlers).forEach(eventName => {
|
|
124
125
|
target.removeEventListener(eventName, handlers[eventName])
|
|
125
126
|
})
|
|
126
|
-
delete
|
|
127
|
+
touchState.delete(target)
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
|
|
@@ -100,7 +100,7 @@ export function genStyles (theme: VuetifyParsedTheme, cssVar = false): string {
|
|
|
100
100
|
|
|
101
101
|
const variants = keys(value)
|
|
102
102
|
for (let i = 0; i < variants.length; ++i) {
|
|
103
|
-
const variant = variants[i]
|
|
103
|
+
const variant = variants[i] as string
|
|
104
104
|
const variantValue = value[variant]
|
|
105
105
|
if (variant === 'base') continue
|
|
106
106
|
|