vuetify 3.9.5 → 3.9.7
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 +3244 -3236
- package/dist/json/importMap-labs.json +28 -28
- package/dist/json/importMap.json +162 -162
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +6419 -6311
- package/dist/vuetify-labs.cjs +183 -127
- package/dist/vuetify-labs.css +3841 -3706
- package/dist/vuetify-labs.d.ts +173 -75
- package/dist/vuetify-labs.esm.js +183 -127
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +183 -127
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +78 -44
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +2171 -2039
- package/dist/vuetify.d.ts +70 -70
- package/dist/vuetify.esm.js +78 -44
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +78 -44
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +67 -60
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +12 -0
- package/lib/components/VAlert/VAlert.sass +13 -0
- package/lib/components/VAutocomplete/VAutocomplete.css +2 -1
- package/lib/components/VAutocomplete/VAutocomplete.sass +3 -2
- package/lib/components/VBtn/VBtn.css +10 -0
- package/lib/components/VBtn/VBtn.sass +9 -0
- package/lib/components/VCard/VCard.css +11 -0
- package/lib/components/VCard/VCard.sass +9 -0
- package/lib/components/VChip/VChip.css +6 -0
- package/lib/components/VChip/VChip.sass +5 -0
- package/lib/components/VChipGroup/VChipGroup.css +25 -0
- package/lib/components/VChipGroup/VChipGroup.sass +23 -0
- package/lib/components/VCombobox/VCombobox.css +2 -1
- package/lib/components/VCombobox/VCombobox.sass +3 -2
- package/lib/components/VDatePicker/VDatePicker.js +10 -4
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +18 -8
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +4 -2
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VList/VListItem.css +30 -0
- package/lib/components/VList/VListItem.d.ts +3 -3
- package/lib/components/VList/VListItem.sass +29 -0
- package/lib/components/VNumberInput/VNumberInput.js +6 -6
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +9 -2
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.css +3 -3
- package/lib/components/VProgressLinear/VProgressLinear.js +5 -6
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +3 -3
- package/lib/components/VSelect/VSelect.css +5 -1
- package/lib/components/VSelect/VSelect.sass +6 -2
- package/lib/components/VSlideGroup/VSlideGroup.js +5 -4
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.css +5 -0
- package/lib/components/VSnackbar/VSnackbar.sass +3 -0
- package/lib/components/VSparkline/VBarline.js +2 -2
- package/lib/components/VSparkline/VBarline.js.map +1 -1
- package/lib/components/VSparkline/VTrendline.js +3 -0
- package/lib/components/VSparkline/VTrendline.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +2 -2
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTextarea/VTextarea.js +4 -2
- package/lib/components/VTextarea/VTextarea.js.map +1 -1
- package/lib/components/VTimeline/VTimeline.css +22 -0
- package/lib/components/VTimeline/VTimeline.sass +12 -0
- package/lib/components/VTreeview/VTreeviewItem.css +13 -8
- package/lib/components/VTreeview/VTreeviewItem.d.ts +9 -9
- package/lib/components/VTreeview/VTreeviewItem.sass +12 -8
- package/lib/composables/filter.js +3 -1
- package/lib/composables/filter.js.map +1 -1
- package/lib/composables/nested/nested.d.ts +1 -1
- package/lib/composables/nested/nested.js +5 -2
- package/lib/composables/nested/nested.js.map +1 -1
- package/lib/composables/rounded.js +3 -3
- package/lib/composables/rounded.js.map +1 -1
- package/lib/directives/touch/index.js +2 -2
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +58 -58
- package/lib/framework.js +1 -1
- package/lib/labs/VDateInput/VDateInput.d.ts +78 -3
- package/lib/labs/VDateInput/VDateInput.js +3 -1
- package/lib/labs/VDateInput/VDateInput.js.map +1 -1
- package/lib/labs/VIconBtn/VIconBtn.js +1 -1
- package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
- package/lib/labs/VPie/VPie.css +3 -0
- package/lib/labs/VPie/VPie.js +71 -29
- package/lib/labs/VPie/VPie.js.map +1 -1
- package/lib/labs/VPie/VPie.sass +3 -0
- package/lib/labs/VPie/VPieSegment.d.ts +25 -2
- package/lib/labs/VPie/VPieSegment.js +11 -6
- package/lib/labs/VPie/VPieSegment.js.map +1 -1
- package/lib/labs/VPie/VPieTooltip.d.ts +10 -0
- package/lib/labs/VPie/VPieTooltip.js +4 -22
- package/lib/labs/VPie/VPieTooltip.js.map +1 -1
- package/lib/labs/VPie/types.d.ts +1 -0
- package/lib/labs/VPie/types.js.map +1 -1
- package/lib/labs/VVideo/VVideo.css +4 -4
- package/lib/labs/VVideo/VVideo.js +24 -33
- package/lib/labs/VVideo/VVideo.js.map +1 -1
- package/lib/labs/VVideo/VVideo.sass +4 -4
- package/package.json +2 -2
|
@@ -111,7 +111,7 @@ export declare const useNested: (props: NestedProps) => {
|
|
|
111
111
|
getPath: (id: unknown) => unknown[];
|
|
112
112
|
};
|
|
113
113
|
export declare const useNestedItem: (id: MaybeRefOrGetter<unknown>, isDisabled: MaybeRefOrGetter<boolean>, isGroup: boolean) => {
|
|
114
|
-
id: import("vue").ComputedRef<{}>;
|
|
114
|
+
id: import("vue").ComputedRef<{} | null>;
|
|
115
115
|
open: (open: boolean, e: Event) => void;
|
|
116
116
|
openOnSelect: (open: boolean, e?: Event) => void;
|
|
117
117
|
isOpen: import("vue").ComputedRef<boolean>;
|
|
@@ -98,7 +98,7 @@ export const useNested = props => {
|
|
|
98
98
|
function getPath(id) {
|
|
99
99
|
const path = [];
|
|
100
100
|
let parent = toRaw(id);
|
|
101
|
-
while (parent
|
|
101
|
+
while (parent !== undefined) {
|
|
102
102
|
path.unshift(parent);
|
|
103
103
|
parent = parents.value.get(parent);
|
|
104
104
|
}
|
|
@@ -244,7 +244,10 @@ export const useNested = props => {
|
|
|
244
244
|
export const useNestedItem = (id, isDisabled, isGroup) => {
|
|
245
245
|
const parent = inject(VNestedSymbol, emptyNested);
|
|
246
246
|
const uidSymbol = Symbol('nested item');
|
|
247
|
-
const computedId = computed(() =>
|
|
247
|
+
const computedId = computed(() => {
|
|
248
|
+
const idValue = toRaw(toValue(id));
|
|
249
|
+
return idValue !== undefined ? idValue : uidSymbol;
|
|
250
|
+
});
|
|
248
251
|
const item = {
|
|
249
252
|
...parent,
|
|
250
253
|
id: computedId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nested.js","names":["useProxiedModel","computed","inject","onBeforeMount","onBeforeUnmount","provide","ref","shallowRef","toRaw","toRef","toValue","independentActiveStrategy","independentSingleActiveStrategy","leafActiveStrategy","leafSingleActiveStrategy","listOpenStrategy","multipleOpenStrategy","singleOpenStrategy","classicSelectStrategy","independentSelectStrategy","independentSingleSelectStrategy","leafSelectStrategy","leafSingleSelectStrategy","trunkSelectStrategy","consoleError","getCurrentInstance","propsFactory","VNestedSymbol","Symbol","for","emptyNested","id","root","register","unregister","children","Map","parents","disabled","Set","open","openOnSelect","activate","select","activatable","selectable","opened","activated","selected","selectedValues","getPath","makeNestedProps","Boolean","activeStrategy","String","Function","Object","selectStrategy","openStrategy","mandatory","useNested","props","isUnmounted","v","Array","isArray","map","i","values","value","in","out","path","parent","unshift","get","vm","nodeIds","nested","arr","key","entries","push","parentId","isDisabled","isGroup","has","join","newPath","concat","add","set","delete","list","filter","child","event","emit","newOpened","newSelected","newActivated","size","useNestedItem","uidSymbol","computedId","item","e","isOpen","isActivated","isSelected","isIndeterminate","isLeaf","isGroupActivator","useNestedGroupActivator"],"sources":["../../../src/composables/nested/nested.ts"],"sourcesContent":["// Composables\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport {\n computed,\n inject,\n onBeforeMount,\n onBeforeUnmount,\n provide,\n ref,\n shallowRef,\n toRaw,\n toRef,\n toValue,\n} from 'vue'\nimport {\n independentActiveStrategy,\n independentSingleActiveStrategy,\n leafActiveStrategy,\n leafSingleActiveStrategy,\n} from './activeStrategies'\nimport { listOpenStrategy, multipleOpenStrategy, singleOpenStrategy } from './openStrategies'\nimport {\n classicSelectStrategy,\n independentSelectStrategy,\n independentSingleSelectStrategy,\n leafSelectStrategy,\n leafSingleSelectStrategy,\n trunkSelectStrategy,\n} from './selectStrategies'\nimport { consoleError, getCurrentInstance, propsFactory } from '@/util'\n\n// Types\nimport type { InjectionKey, MaybeRefOrGetter, PropType, Ref } from 'vue'\nimport type { ActiveStrategy } from './activeStrategies'\nimport type { OpenStrategy } from './openStrategies'\nimport type { SelectStrategy } from './selectStrategies'\nimport type { EventProp } from '@/util'\n\nexport type ActiveStrategyProp =\n | 'single-leaf'\n | 'leaf'\n | 'independent'\n | 'single-independent'\n | ActiveStrategy\n | ((mandatory: boolean) => ActiveStrategy)\nexport type SelectStrategyProp =\n | 'single-leaf'\n | 'leaf'\n | 'independent'\n | 'single-independent'\n | 'classic'\n | 'trunk'\n | SelectStrategy\n | ((mandatory: boolean) => SelectStrategy)\nexport type OpenStrategyProp = 'single' | 'multiple' | 'list' | OpenStrategy\n\nexport interface NestedProps {\n activatable: boolean\n selectable: boolean\n activeStrategy: ActiveStrategyProp | undefined\n selectStrategy: SelectStrategyProp | undefined\n openStrategy: OpenStrategyProp | undefined\n activated: any\n selected: any\n opened: any\n mandatory: boolean\n 'onUpdate:activated': EventProp<[any]> | undefined\n 'onUpdate:selected': EventProp<[any]> | undefined\n 'onUpdate:opened': EventProp<[any]> | undefined\n}\n\ntype NestedProvide = {\n id: Ref<unknown>\n isGroupActivator?: boolean\n root: {\n children: Ref<Map<unknown, unknown[]>>\n parents: Ref<Map<unknown, unknown>>\n disabled: Ref<Set<unknown>>\n activatable: Ref<boolean>\n selectable: Ref<boolean>\n opened: Ref<Set<unknown>>\n activated: Ref<Set<unknown>>\n selected: Ref<Map<unknown, 'on' | 'off' | 'indeterminate'>>\n selectedValues: Ref<unknown[]>\n register: (id: unknown, parentId: unknown, isDisabled: boolean, isGroup?: boolean) => void\n unregister: (id: unknown) => void\n open: (id: unknown, value: boolean, event?: Event) => void\n activate: (id: unknown, value: boolean, event?: Event) => void\n select: (id: unknown, value: boolean, event?: Event) => void\n openOnSelect: (id: unknown, value: boolean, event?: Event) => void\n getPath: (id: unknown) => unknown[]\n }\n}\n\nexport const VNestedSymbol: InjectionKey<NestedProvide> = Symbol.for('vuetify:nested')\n\nexport const emptyNested: NestedProvide = {\n id: shallowRef(),\n root: {\n register: () => null,\n unregister: () => null,\n children: ref(new Map()),\n parents: ref(new Map()),\n disabled: ref(new Set()),\n open: () => null,\n openOnSelect: () => null,\n activate: () => null,\n select: () => null,\n activatable: ref(false),\n selectable: ref(false),\n opened: ref(new Set()),\n activated: ref(new Set()),\n selected: ref(new Map()),\n selectedValues: ref([]),\n getPath: () => [],\n },\n}\n\nexport const makeNestedProps = propsFactory({\n activatable: Boolean,\n selectable: Boolean,\n activeStrategy: [String, Function, Object] as PropType<ActiveStrategyProp>,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n openStrategy: [String, Object] as PropType<OpenStrategyProp>,\n opened: null,\n activated: null,\n selected: null,\n mandatory: Boolean,\n}, 'nested')\n\nexport const useNested = (props: NestedProps) => {\n let isUnmounted = false\n const children = shallowRef(new Map<unknown, unknown[]>())\n const parents = shallowRef(new Map<unknown, unknown>())\n const disabled = shallowRef(new Set<unknown>())\n\n const opened = useProxiedModel(\n props,\n 'opened',\n props.opened,\n v => new Set(Array.isArray(v) ? v.map(i => toRaw(i)) : v),\n v => [...v.values()],\n )\n\n const activeStrategy = computed(() => {\n if (typeof props.activeStrategy === 'object') return props.activeStrategy\n if (typeof props.activeStrategy === 'function') return props.activeStrategy(props.mandatory)\n\n switch (props.activeStrategy) {\n case 'leaf': return leafActiveStrategy(props.mandatory)\n case 'single-leaf': return leafSingleActiveStrategy(props.mandatory)\n case 'independent': return independentActiveStrategy(props.mandatory)\n case 'single-independent':\n default: return independentSingleActiveStrategy(props.mandatory)\n }\n })\n\n const selectStrategy = computed(() => {\n if (typeof props.selectStrategy === 'object') return props.selectStrategy\n if (typeof props.selectStrategy === 'function') return props.selectStrategy(props.mandatory)\n\n switch (props.selectStrategy) {\n case 'single-leaf': return leafSingleSelectStrategy(props.mandatory)\n case 'leaf': return leafSelectStrategy(props.mandatory)\n case 'independent': return independentSelectStrategy(props.mandatory)\n case 'single-independent': return independentSingleSelectStrategy(props.mandatory)\n case 'trunk': return trunkSelectStrategy(props.mandatory)\n case 'classic':\n default: return classicSelectStrategy(props.mandatory)\n }\n })\n\n const openStrategy = computed(() => {\n if (typeof props.openStrategy === 'object') return props.openStrategy\n\n switch (props.openStrategy) {\n case 'list': return listOpenStrategy\n case 'single': return singleOpenStrategy\n case 'multiple':\n default: return multipleOpenStrategy\n }\n })\n\n const activated = useProxiedModel(\n props,\n 'activated',\n props.activated,\n v => activeStrategy.value.in(v, children.value, parents.value),\n v => activeStrategy.value.out(v, children.value, parents.value),\n )\n const selected = useProxiedModel(\n props,\n 'selected',\n props.selected,\n v => selectStrategy.value.in(v, children.value, parents.value, disabled.value),\n v => selectStrategy.value.out(v, children.value, parents.value),\n )\n\n onBeforeUnmount(() => {\n isUnmounted = true\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = toRaw(id)\n\n while (parent != null) {\n path.unshift(parent)\n parent = parents.value.get(parent)\n }\n\n return path\n }\n\n const vm = getCurrentInstance('nested')\n\n const nodeIds = new Set<unknown>()\n\n const nested: NestedProvide = {\n id: shallowRef(),\n root: {\n opened,\n activatable: toRef(() => props.activatable),\n selectable: toRef(() => props.selectable),\n activated,\n selected,\n selectedValues: computed(() => {\n const arr = []\n\n for (const [key, value] of selected.value.entries()) {\n if (value === 'on') arr.push(key)\n }\n\n return arr\n }),\n register: (id, parentId, isDisabled, isGroup) => {\n if (nodeIds.has(id)) {\n const path = getPath(id).map(String).join(' -> ')\n const newPath = getPath(parentId).concat(id).map(String).join(' -> ')\n consoleError(`Multiple nodes with the same ID\\n\\t${path}\\n\\t${newPath}`)\n return\n } else {\n nodeIds.add(id)\n }\n\n parentId && id !== parentId && parents.value.set(id, parentId)\n\n isDisabled && disabled.value.add(id)\n isGroup && children.value.set(id, [])\n\n if (parentId != null) {\n children.value.set(parentId, [...children.value.get(parentId) || [], id])\n }\n },\n unregister: id => {\n if (isUnmounted) return\n\n nodeIds.delete(id)\n children.value.delete(id)\n disabled.value.delete(id)\n const parent = parents.value.get(id)\n if (parent) {\n const list = children.value.get(parent) ?? []\n children.value.set(parent, list.filter(child => child !== id))\n }\n parents.value.delete(id)\n },\n open: (id, value, event) => {\n vm.emit('click:open', { id, value, path: getPath(id), event })\n\n const newOpened = openStrategy.value.open({\n id,\n value,\n opened: new Set(opened.value),\n children: children.value,\n parents: parents.value,\n event,\n })\n\n newOpened && (opened.value = newOpened)\n },\n openOnSelect: (id, value, event) => {\n const newOpened = openStrategy.value.select({\n id,\n value,\n selected: new Map(selected.value),\n opened: new Set(opened.value),\n children: children.value,\n parents: parents.value,\n event,\n })\n newOpened && (opened.value = newOpened)\n },\n select: (id, value, event) => {\n vm.emit('click:select', { id, value, path: getPath(id), event })\n\n const newSelected = selectStrategy.value.select({\n id,\n value,\n selected: new Map(selected.value),\n children: children.value,\n parents: parents.value,\n disabled: disabled.value,\n event,\n })\n newSelected && (selected.value = newSelected)\n\n nested.root.openOnSelect(id, value, event)\n },\n activate: (id, value, event) => {\n if (!props.activatable) {\n return nested.root.select(id, true, event)\n }\n\n vm.emit('click:activate', { id, value, path: getPath(id), event })\n\n const newActivated = activeStrategy.value.activate({\n id,\n value,\n activated: new Set(activated.value),\n children: children.value,\n parents: parents.value,\n event,\n })\n\n if (newActivated.size !== activated.value.size) {\n activated.value = newActivated\n } else {\n for (const value of newActivated) {\n if (!activated.value.has(value)) {\n activated.value = newActivated\n return\n }\n }\n for (const value of activated.value) {\n if (!newActivated.has(value)) {\n activated.value = newActivated\n return\n }\n }\n }\n },\n children,\n parents,\n disabled,\n getPath,\n },\n }\n\n provide(VNestedSymbol, nested)\n\n return nested.root\n}\n\nexport const useNestedItem = (id: MaybeRefOrGetter<unknown>, isDisabled: MaybeRefOrGetter<boolean>, isGroup: boolean) => {\n const parent = inject(VNestedSymbol, emptyNested)\n\n const uidSymbol = Symbol('nested item')\n const computedId = computed(() => toRaw(toValue(id)) ?? uidSymbol)\n\n const item = {\n ...parent,\n id: computedId,\n open: (open: boolean, e: Event) => parent.root.open(computedId.value, open, e),\n openOnSelect: (open: boolean, e?: Event) => parent.root.openOnSelect(computedId.value, open, e),\n isOpen: computed(() => parent.root.opened.value.has(computedId.value)),\n parent: computed(() => parent.root.parents.value.get(computedId.value)),\n activate: (activated: boolean, e?: Event) => parent.root.activate(computedId.value, activated, e),\n isActivated: computed(() => parent.root.activated.value.has(computedId.value)),\n select: (selected: boolean, e?: Event) => parent.root.select(computedId.value, selected, e),\n isSelected: computed(() => parent.root.selected.value.get(computedId.value) === 'on'),\n isIndeterminate: computed(() => parent.root.selected.value.get(computedId.value) === 'indeterminate'),\n isLeaf: computed(() => !parent.root.children.value.get(computedId.value)),\n isGroupActivator: parent.isGroupActivator,\n }\n\n onBeforeMount(() => {\n if (!parent.isGroupActivator) {\n parent.root.register(computedId.value, parent.id.value, toValue(isDisabled), isGroup)\n }\n })\n\n onBeforeUnmount(() => {\n if (!parent.isGroupActivator) {\n parent.root.unregister(computedId.value)\n }\n })\n\n isGroup && provide(VNestedSymbol, item)\n\n return item\n}\n\nexport const useNestedGroupActivator = () => {\n const parent = inject(VNestedSymbol, emptyNested)\n\n provide(VNestedSymbol, { ...parent, isGroupActivator: true })\n}\n"],"mappings":"AAAA;AAAA,SACSA,eAAe,8BAExB;AACA,SACEC,QAAQ,EACRC,MAAM,EACNC,aAAa,EACbC,eAAe,EACfC,OAAO,EACPC,GAAG,EACHC,UAAU,EACVC,KAAK,EACLC,KAAK,EACLC,OAAO,QACF,KAAK;AAAA,SAEVC,yBAAyB,EACzBC,+BAA+B,EAC/BC,kBAAkB,EAClBC,wBAAwB;AAAA,SAEjBC,gBAAgB,EAAEC,oBAAoB,EAAEC,kBAAkB;AAAA,SAEjEC,qBAAqB,EACrBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,kBAAkB,EAClBC,wBAAwB,EACxBC,mBAAmB;AAAA,SAEZC,YAAY,EAAEC,kBAAkB,EAAEC,YAAY,+BAEvD;AA+DA,OAAO,MAAMC,aAA0C,GAAGC,MAAM,CAACC,GAAG,CAAC,gBAAgB,CAAC;AAEtF,OAAO,MAAMC,WAA0B,GAAG;EACxCC,EAAE,EAAExB,UAAU,CAAC,CAAC;EAChByB,IAAI,EAAE;IACJC,QAAQ,EAAEA,CAAA,KAAM,IAAI;IACpBC,UAAU,EAAEA,CAAA,KAAM,IAAI;IACtBC,QAAQ,EAAE7B,GAAG,CAAC,IAAI8B,GAAG,CAAC,CAAC,CAAC;IACxBC,OAAO,EAAE/B,GAAG,CAAC,IAAI8B,GAAG,CAAC,CAAC,CAAC;IACvBE,QAAQ,EAAEhC,GAAG,CAAC,IAAIiC,GAAG,CAAC,CAAC,CAAC;IACxBC,IAAI,EAAEA,CAAA,KAAM,IAAI;IAChBC,YAAY,EAAEA,CAAA,KAAM,IAAI;IACxBC,QAAQ,EAAEA,CAAA,KAAM,IAAI;IACpBC,MAAM,EAAEA,CAAA,KAAM,IAAI;IAClBC,WAAW,EAAEt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eforeMount","onBeforeUnmount","provide","ref","shallowRef","toRaw","toRef","toValue","independentActiveStrategy","independentSingleActiveStrategy","leafActiveStrategy","leafSingleActiveStrategy","listOpenStrategy","multipleOpenStrategy","singleOpenStrategy","classicSelectStrategy","independentSelectStrategy","independentSingleSelectStrategy","leafSelectStrategy","leafSingleSelectStrategy","trunkSelectStrategy","consoleError","getCurrentInstance","propsFactory","VNestedSymbol","Symbol","for","emptyNested","id","root","register","unregister","children","Map","parents","disabled","Set","open","openOnSelect","activate","select","activatable","selectable","opened","activated","selected","selectedValues","getPath","makeNestedProps","Boolean","activeStrategy","String","Function","Object","selectStrategy","openStrategy","mandatory","useNested","props","isUnmounted","v","Array","isArray","map","i","values","value","in","out","path","parent","undefined","unshift","get","vm","nodeIds","nested","arr","key","entries","push","parentId","isDisabled","isGroup","has","join","newPath","concat","add","set","delete","list","filter","child","event","emit","newOpened","newSelected","newActivated","size","useNestedItem","uidSymbol","computedId","idValue","item","e","isOpen","isActivated","isSelected","isIndeterminate","isLeaf","isGroupActivator","useNestedGroupActivator"],"sources":["../../../src/composables/nested/nested.ts"],"sourcesContent":["// Composables\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport {\n computed,\n inject,\n onBeforeMount,\n onBeforeUnmount,\n provide,\n ref,\n shallowRef,\n toRaw,\n toRef,\n toValue,\n} from 'vue'\nimport {\n independentActiveStrategy,\n independentSingleActiveStrategy,\n leafActiveStrategy,\n leafSingleActiveStrategy,\n} from './activeStrategies'\nimport { listOpenStrategy, multipleOpenStrategy, singleOpenStrategy } from './openStrategies'\nimport {\n classicSelectStrategy,\n independentSelectStrategy,\n independentSingleSelectStrategy,\n leafSelectStrategy,\n leafSingleSelectStrategy,\n trunkSelectStrategy,\n} from './selectStrategies'\nimport { consoleError, getCurrentInstance, propsFactory } from '@/util'\n\n// Types\nimport type { InjectionKey, MaybeRefOrGetter, PropType, Ref } from 'vue'\nimport type { ActiveStrategy } from './activeStrategies'\nimport type { OpenStrategy } from './openStrategies'\nimport type { SelectStrategy } from './selectStrategies'\nimport type { EventProp } from '@/util'\n\nexport type ActiveStrategyProp =\n | 'single-leaf'\n | 'leaf'\n | 'independent'\n | 'single-independent'\n | ActiveStrategy\n | ((mandatory: boolean) => ActiveStrategy)\nexport type SelectStrategyProp =\n | 'single-leaf'\n | 'leaf'\n | 'independent'\n | 'single-independent'\n | 'classic'\n | 'trunk'\n | SelectStrategy\n | ((mandatory: boolean) => SelectStrategy)\nexport type OpenStrategyProp = 'single' | 'multiple' | 'list' | OpenStrategy\n\nexport interface NestedProps {\n activatable: boolean\n selectable: boolean\n activeStrategy: ActiveStrategyProp | undefined\n selectStrategy: SelectStrategyProp | undefined\n openStrategy: OpenStrategyProp | undefined\n activated: any\n selected: any\n opened: any\n mandatory: boolean\n 'onUpdate:activated': EventProp<[any]> | undefined\n 'onUpdate:selected': EventProp<[any]> | undefined\n 'onUpdate:opened': EventProp<[any]> | undefined\n}\n\ntype NestedProvide = {\n id: Ref<unknown>\n isGroupActivator?: boolean\n root: {\n children: Ref<Map<unknown, unknown[]>>\n parents: Ref<Map<unknown, unknown>>\n disabled: Ref<Set<unknown>>\n activatable: Ref<boolean>\n selectable: Ref<boolean>\n opened: Ref<Set<unknown>>\n activated: Ref<Set<unknown>>\n selected: Ref<Map<unknown, 'on' | 'off' | 'indeterminate'>>\n selectedValues: Ref<unknown[]>\n register: (id: unknown, parentId: unknown, isDisabled: boolean, isGroup?: boolean) => void\n unregister: (id: unknown) => void\n open: (id: unknown, value: boolean, event?: Event) => void\n activate: (id: unknown, value: boolean, event?: Event) => void\n select: (id: unknown, value: boolean, event?: Event) => void\n openOnSelect: (id: unknown, value: boolean, event?: Event) => void\n getPath: (id: unknown) => unknown[]\n }\n}\n\nexport const VNestedSymbol: InjectionKey<NestedProvide> = Symbol.for('vuetify:nested')\n\nexport const emptyNested: NestedProvide = {\n id: shallowRef(),\n root: {\n register: () => null,\n unregister: () => null,\n children: ref(new Map()),\n parents: ref(new Map()),\n disabled: ref(new Set()),\n open: () => null,\n openOnSelect: () => null,\n activate: () => null,\n select: () => null,\n activatable: ref(false),\n selectable: ref(false),\n opened: ref(new Set()),\n activated: ref(new Set()),\n selected: ref(new Map()),\n selectedValues: ref([]),\n getPath: () => [],\n },\n}\n\nexport const makeNestedProps = propsFactory({\n activatable: Boolean,\n selectable: Boolean,\n activeStrategy: [String, Function, Object] as PropType<ActiveStrategyProp>,\n selectStrategy: [String, Function, Object] as PropType<SelectStrategyProp>,\n openStrategy: [String, Object] as PropType<OpenStrategyProp>,\n opened: null,\n activated: null,\n selected: null,\n mandatory: Boolean,\n}, 'nested')\n\nexport const useNested = (props: NestedProps) => {\n let isUnmounted = false\n const children = shallowRef(new Map<unknown, unknown[]>())\n const parents = shallowRef(new Map<unknown, unknown>())\n const disabled = shallowRef(new Set<unknown>())\n\n const opened = useProxiedModel(\n props,\n 'opened',\n props.opened,\n v => new Set(Array.isArray(v) ? v.map(i => toRaw(i)) : v),\n v => [...v.values()],\n )\n\n const activeStrategy = computed(() => {\n if (typeof props.activeStrategy === 'object') return props.activeStrategy\n if (typeof props.activeStrategy === 'function') return props.activeStrategy(props.mandatory)\n\n switch (props.activeStrategy) {\n case 'leaf': return leafActiveStrategy(props.mandatory)\n case 'single-leaf': return leafSingleActiveStrategy(props.mandatory)\n case 'independent': return independentActiveStrategy(props.mandatory)\n case 'single-independent':\n default: return independentSingleActiveStrategy(props.mandatory)\n }\n })\n\n const selectStrategy = computed(() => {\n if (typeof props.selectStrategy === 'object') return props.selectStrategy\n if (typeof props.selectStrategy === 'function') return props.selectStrategy(props.mandatory)\n\n switch (props.selectStrategy) {\n case 'single-leaf': return leafSingleSelectStrategy(props.mandatory)\n case 'leaf': return leafSelectStrategy(props.mandatory)\n case 'independent': return independentSelectStrategy(props.mandatory)\n case 'single-independent': return independentSingleSelectStrategy(props.mandatory)\n case 'trunk': return trunkSelectStrategy(props.mandatory)\n case 'classic':\n default: return classicSelectStrategy(props.mandatory)\n }\n })\n\n const openStrategy = computed(() => {\n if (typeof props.openStrategy === 'object') return props.openStrategy\n\n switch (props.openStrategy) {\n case 'list': return listOpenStrategy\n case 'single': return singleOpenStrategy\n case 'multiple':\n default: return multipleOpenStrategy\n }\n })\n\n const activated = useProxiedModel(\n props,\n 'activated',\n props.activated,\n v => activeStrategy.value.in(v, children.value, parents.value),\n v => activeStrategy.value.out(v, children.value, parents.value),\n )\n const selected = useProxiedModel(\n props,\n 'selected',\n props.selected,\n v => selectStrategy.value.in(v, children.value, parents.value, disabled.value),\n v => selectStrategy.value.out(v, children.value, parents.value),\n )\n\n onBeforeUnmount(() => {\n isUnmounted = true\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = toRaw(id)\n\n while (parent !== undefined) {\n path.unshift(parent)\n parent = parents.value.get(parent)\n }\n\n return path\n }\n\n const vm = getCurrentInstance('nested')\n\n const nodeIds = new Set<unknown>()\n\n const nested: NestedProvide = {\n id: shallowRef(),\n root: {\n opened,\n activatable: toRef(() => props.activatable),\n selectable: toRef(() => props.selectable),\n activated,\n selected,\n selectedValues: computed(() => {\n const arr = []\n\n for (const [key, value] of selected.value.entries()) {\n if (value === 'on') arr.push(key)\n }\n\n return arr\n }),\n register: (id, parentId, isDisabled, isGroup) => {\n if (nodeIds.has(id)) {\n const path = getPath(id).map(String).join(' -> ')\n const newPath = getPath(parentId).concat(id).map(String).join(' -> ')\n consoleError(`Multiple nodes with the same ID\\n\\t${path}\\n\\t${newPath}`)\n return\n } else {\n nodeIds.add(id)\n }\n\n parentId && id !== parentId && parents.value.set(id, parentId)\n\n isDisabled && disabled.value.add(id)\n isGroup && children.value.set(id, [])\n\n if (parentId != null) {\n children.value.set(parentId, [...children.value.get(parentId) || [], id])\n }\n },\n unregister: id => {\n if (isUnmounted) return\n\n nodeIds.delete(id)\n children.value.delete(id)\n disabled.value.delete(id)\n const parent = parents.value.get(id)\n if (parent) {\n const list = children.value.get(parent) ?? []\n children.value.set(parent, list.filter(child => child !== id))\n }\n parents.value.delete(id)\n },\n open: (id, value, event) => {\n vm.emit('click:open', { id, value, path: getPath(id), event })\n\n const newOpened = openStrategy.value.open({\n id,\n value,\n opened: new Set(opened.value),\n children: children.value,\n parents: parents.value,\n event,\n })\n\n newOpened && (opened.value = newOpened)\n },\n openOnSelect: (id, value, event) => {\n const newOpened = openStrategy.value.select({\n id,\n value,\n selected: new Map(selected.value),\n opened: new Set(opened.value),\n children: children.value,\n parents: parents.value,\n event,\n })\n newOpened && (opened.value = newOpened)\n },\n select: (id, value, event) => {\n vm.emit('click:select', { id, value, path: getPath(id), event })\n\n const newSelected = selectStrategy.value.select({\n id,\n value,\n selected: new Map(selected.value),\n children: children.value,\n parents: parents.value,\n disabled: disabled.value,\n event,\n })\n newSelected && (selected.value = newSelected)\n\n nested.root.openOnSelect(id, value, event)\n },\n activate: (id, value, event) => {\n if (!props.activatable) {\n return nested.root.select(id, true, event)\n }\n\n vm.emit('click:activate', { id, value, path: getPath(id), event })\n\n const newActivated = activeStrategy.value.activate({\n id,\n value,\n activated: new Set(activated.value),\n children: children.value,\n parents: parents.value,\n event,\n })\n\n if (newActivated.size !== activated.value.size) {\n activated.value = newActivated\n } else {\n for (const value of newActivated) {\n if (!activated.value.has(value)) {\n activated.value = newActivated\n return\n }\n }\n for (const value of activated.value) {\n if (!newActivated.has(value)) {\n activated.value = newActivated\n return\n }\n }\n }\n },\n children,\n parents,\n disabled,\n getPath,\n },\n }\n\n provide(VNestedSymbol, nested)\n\n return nested.root\n}\n\nexport const useNestedItem = (id: MaybeRefOrGetter<unknown>, isDisabled: MaybeRefOrGetter<boolean>, isGroup: boolean) => {\n const parent = inject(VNestedSymbol, emptyNested)\n\n const uidSymbol = Symbol('nested item')\n const computedId = computed(() => {\n const idValue = toRaw(toValue(id))\n return idValue !== undefined ? idValue : uidSymbol\n })\n\n const item = {\n ...parent,\n id: computedId,\n open: (open: boolean, e: Event) => parent.root.open(computedId.value, open, e),\n openOnSelect: (open: boolean, e?: Event) => parent.root.openOnSelect(computedId.value, open, e),\n isOpen: computed(() => parent.root.opened.value.has(computedId.value)),\n parent: computed(() => parent.root.parents.value.get(computedId.value)),\n activate: (activated: boolean, e?: Event) => parent.root.activate(computedId.value, activated, e),\n isActivated: computed(() => parent.root.activated.value.has(computedId.value)),\n select: (selected: boolean, e?: Event) => parent.root.select(computedId.value, selected, e),\n isSelected: computed(() => parent.root.selected.value.get(computedId.value) === 'on'),\n isIndeterminate: computed(() => parent.root.selected.value.get(computedId.value) === 'indeterminate'),\n isLeaf: computed(() => !parent.root.children.value.get(computedId.value)),\n isGroupActivator: parent.isGroupActivator,\n }\n\n onBeforeMount(() => {\n if (!parent.isGroupActivator) {\n parent.root.register(computedId.value, parent.id.value, toValue(isDisabled), isGroup)\n }\n })\n\n onBeforeUnmount(() => {\n if (!parent.isGroupActivator) {\n parent.root.unregister(computedId.value)\n }\n })\n\n isGroup && provide(VNestedSymbol, item)\n\n return item\n}\n\nexport const useNestedGroupActivator = () => {\n const parent = inject(VNestedSymbol, emptyNested)\n\n provide(VNestedSymbol, { ...parent, isGroupActivator: true })\n}\n"],"mappings":"AAAA;AAAA,SACSA,eAAe,8BAExB;AACA,SACEC,QAAQ,EACRC,MAAM,EACNC,aAAa,EACbC,eAAe,EACfC,OAAO,EACPC,GAAG,EACHC,UAAU,EACVC,KAAK,EACLC,KAAK,EACLC,OAAO,QACF,KAAK;AAAA,SAEVC,yBAAyB,EACzBC,+BAA+B,EAC/BC,kBAAkB,EAClBC,wBAAwB;AAAA,SAEjBC,gBAAgB,EAAEC,oBAAoB,EAAEC,kBAAkB;AAAA,SAEjEC,qBAAqB,EACrBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,kBAAkB,EAClBC,wBAAwB,EACxBC,mBAAmB;AAAA,SAEZC,YAAY,EAAEC,kBAAkB,EAAEC,YAAY,+BAEvD;AA+DA,OAAO,MAAMC,aAA0C,GAAGC,MAAM,CAACC,GAAG,CAAC,gBAAgB,CAAC;AAEtF,OA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D,OAAO,CAAC2E,UAAU,CAAC,EAAEC,OAAO,CAAC;IACvF;EACF,CAAC,CAAC;EAEFlF,eAAe,CAAC,MAAM;IACpB,IAAI,CAACqE,MAAM,CAACyC,gBAAgB,EAAE;MAC5BzC,MAAM,CAACzC,IAAI,CAACE,UAAU,CAACuE,UAAU,CAACpC,KAAK,CAAC;IAC1C;EACF,CAAC,CAAC;EAEFiB,OAAO,IAAIjF,OAAO,CAACsB,aAAa,EAAEgF,IAAI,CAAC;EAEvC,OAAOA,IAAI;AACb,CAAC;AAED,OAAO,MAAMQ,uBAAuB,GAAGA,CAAA,KAAM;EAC3C,MAAM1C,MAAM,GAAGvE,MAAM,CAACyB,aAAa,EAAEG,WAAW,CAAC;EAEjDzB,OAAO,CAACsB,aAAa,EAAE;IAAE,GAAG8C,MAAM;IAAEyC,gBAAgB,EAAE;EAAK,CAAC,CAAC;AAC/D,CAAC","ignoreList":[]}
|
|
@@ -15,14 +15,14 @@ export function useRounded(props) {
|
|
|
15
15
|
const rounded = isRef(props) ? props.value : props.rounded;
|
|
16
16
|
const tile = isRef(props) ? props.value : props.tile;
|
|
17
17
|
const classes = [];
|
|
18
|
-
if (
|
|
18
|
+
if (tile || rounded === false) {
|
|
19
|
+
classes.push('rounded-0');
|
|
20
|
+
} else if (rounded === true || rounded === '') {
|
|
19
21
|
classes.push(`${name}--rounded`);
|
|
20
22
|
} else if (typeof rounded === 'string' || rounded === 0) {
|
|
21
23
|
for (const value of String(rounded).split(' ')) {
|
|
22
24
|
classes.push(`rounded-${value}`);
|
|
23
25
|
}
|
|
24
|
-
} else if (tile || rounded === false) {
|
|
25
|
-
classes.push('rounded-0');
|
|
26
26
|
}
|
|
27
27
|
return classes;
|
|
28
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounded.js","names":["computed","isRef","getCurrentInstanceName","propsFactory","makeRoundedProps","rounded","type","Boolean","Number","String","default","undefined","tile","useRounded","props","name","arguments","length","roundedClasses","value","classes","push","split"],"sources":["../../src/composables/rounded.ts"],"sourcesContent":["// Utilities\nimport { computed, isRef } from 'vue'\nimport { getCurrentInstanceName, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\ntype RoundedValue = boolean | string | number | null | undefined\n\nexport interface RoundedProps {\n rounded?: RoundedValue\n tile?: boolean\n}\n\ntype RoundedData = {\n roundedClasses: Ref<string[]>\n}\n\n// Composables\nexport const makeRoundedProps = propsFactory({\n rounded: {\n type: [Boolean, Number, String],\n default: undefined,\n },\n tile: Boolean,\n}, 'rounded')\n\nexport function useRounded (\n props: RoundedProps | Ref<RoundedValue>,\n name = getCurrentInstanceName(),\n): RoundedData {\n const roundedClasses = computed(() => {\n const rounded = isRef(props) ? props.value : props.rounded\n const tile = isRef(props) ? props.value : props.tile\n const classes: string[] = []\n\n if (rounded === true || rounded === '') {\n classes.push(`${name}--rounded`)\n } else if (
|
|
1
|
+
{"version":3,"file":"rounded.js","names":["computed","isRef","getCurrentInstanceName","propsFactory","makeRoundedProps","rounded","type","Boolean","Number","String","default","undefined","tile","useRounded","props","name","arguments","length","roundedClasses","value","classes","push","split"],"sources":["../../src/composables/rounded.ts"],"sourcesContent":["// Utilities\nimport { computed, isRef } from 'vue'\nimport { getCurrentInstanceName, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\ntype RoundedValue = boolean | string | number | null | undefined\n\nexport interface RoundedProps {\n rounded?: RoundedValue\n tile?: boolean\n}\n\ntype RoundedData = {\n roundedClasses: Ref<string[]>\n}\n\n// Composables\nexport const makeRoundedProps = propsFactory({\n rounded: {\n type: [Boolean, Number, String],\n default: undefined,\n },\n tile: Boolean,\n}, 'rounded')\n\nexport function useRounded (\n props: RoundedProps | Ref<RoundedValue>,\n name = getCurrentInstanceName(),\n): RoundedData {\n const roundedClasses = computed(() => {\n const rounded = isRef(props) ? props.value : props.rounded\n const tile = isRef(props) ? props.value : props.tile\n const classes: string[] = []\n\n if (tile || rounded === false) {\n classes.push('rounded-0')\n } else if (rounded === true || rounded === '') {\n classes.push(`${name}--rounded`)\n } else if (typeof rounded === 'string' || rounded === 0) {\n for (const value of String(rounded).split(' ')) {\n classes.push(`rounded-${value}`)\n }\n }\n\n return classes\n })\n\n return { roundedClasses }\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC5BC,sBAAsB,EAAEC,YAAY,4BAE7C;AAcA;AACA,OAAO,MAAMC,gBAAgB,GAAGD,YAAY,CAAC;EAC3CE,OAAO,EAAE;IACPC,IAAI,EAAE,CAACC,OAAO,EAAEC,MAAM,EAAEC,MAAM,CAAC;IAC/BC,OAAO,EAAEC;EACX,CAAC;EACDC,IAAI,EAAEL;AACR,CAAC,EAAE,SAAS,CAAC;AAEb,OAAO,SAASM,UAAUA,CACxBC,KAAuC,EAE1B;EAAA,IADbC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAL,SAAA,GAAAK,SAAA,MAAGd,sBAAsB,CAAC,CAAC;EAE/B,MAAMgB,cAAc,GAAGlB,QAAQ,CAAC,MAAM;IACpC,MAAMK,OAAO,GAAGJ,KAAK,CAACa,KAAK,CAAC,GAAGA,KAAK,CAACK,KAAK,GAAGL,KAAK,CAACT,OAAO;IAC1D,MAAMO,IAAI,GAAGX,KAAK,CAACa,KAAK,CAAC,GAAGA,KAAK,CAACK,KAAK,GAAGL,KAAK,CAACF,IAAI;IACpD,MAAMQ,OAAiB,GAAG,EAAE;IAE5B,IAAIR,IAAI,IAAIP,OAAO,KAAK,KAAK,EAAE;MAC7Be,OAAO,CAACC,IAAI,CAAC,WAAW,CAAC;IAC3B,CAAC,MAAM,IAAIhB,OAAO,KAAK,IAAI,IAAIA,OAAO,KAAK,EAAE,EAAE;MAC7Ce,OAAO,CAACC,IAAI,CAAC,GAAGN,IAAI,WAAW,CAAC;IAClC,CAAC,MAAM,IAAI,OAAOV,OAAO,KAAK,QAAQ,IAAIA,OAAO,KAAK,CAAC,EAAE;MACvD,KAAK,MAAMc,KAAK,IAAIV,MAAM,CAACJ,OAAO,CAAC,CAACiB,KAAK,CAAC,GAAG,CAAC,EAAE;QAC9CF,OAAO,CAACC,IAAI,CAAC,WAAWF,KAAK,EAAE,CAAC;MAClC;IACF;IAEA,OAAOC,OAAO;EAChB,CAAC,CAAC;EAEF,OAAO;IAAEF;EAAe,CAAC;AAC3B","ignoreList":[]}
|
|
@@ -81,7 +81,7 @@ function mounted(el, binding) {
|
|
|
81
81
|
};
|
|
82
82
|
const uid = binding.instance?.$.uid; // TODO: use custom uid generator
|
|
83
83
|
|
|
84
|
-
if (!target ||
|
|
84
|
+
if (!target || uid === undefined) return;
|
|
85
85
|
const handlers = createHandlers(binding.value);
|
|
86
86
|
target._touchHandlers = target._touchHandlers ?? Object.create(null);
|
|
87
87
|
target._touchHandlers[uid] = handlers;
|
|
@@ -92,7 +92,7 @@ function mounted(el, binding) {
|
|
|
92
92
|
function unmounted(el, binding) {
|
|
93
93
|
const target = binding.value?.parent ? el.parentElement : el;
|
|
94
94
|
const uid = binding.instance?.$.uid;
|
|
95
|
-
if (!target?._touchHandlers ||
|
|
95
|
+
if (!target?._touchHandlers || uid === undefined) return;
|
|
96
96
|
const handlers = target._touchHandlers[uid];
|
|
97
97
|
keys(handlers).forEach(eventName => {
|
|
98
98
|
target.removeEventListener(eventName, handlers[eventName]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["keys","handleGesture","wrapper","touchstartX","touchendX","touchstartY","touchendY","dirRatio","minDistance","offsetX","offsetY","Math","abs","left","right","up","down","touchstart","event","touch","changedTouches","clientX","clientY","start","originalEvent","touchend","end","touchmove","touchmoveX","touchmoveY","move","createHandlers","value","arguments","length","undefined","e","mounted","el","binding","target","parent","parentElement","options","passive","uid","instance","$","handlers","_touchHandlers","Object","create","forEach","eventName","addEventListener","unmounted","removeEventListener","Touch"],"sources":["../../../src/directives/touch/index.ts"],"sourcesContent":["// Utilities\nimport { keys } from '@/util'\n\n// Types\nimport type {\n DirectiveBinding,\n} from 'vue'\n\nexport interface TouchHandlers {\n start?: (wrapperEvent: { originalEvent: TouchEvent } & TouchData) => void\n end?: (wrapperEvent: { originalEvent: TouchEvent } & TouchData) => void\n move?: (wrapperEvent: { originalEvent: TouchEvent } & TouchData) => void\n left?: (wrapper: TouchData) => void\n right?: (wrapper: TouchData) => void\n up?: (wrapper: TouchData) => void\n down?: (wrapper: TouchData) => void\n}\n\nexport interface TouchData {\n touchstartX: number\n touchstartY: number\n touchmoveX: number\n touchmoveY: number\n touchendX: number\n touchendY: number\n offsetX: number\n offsetY: number\n}\n\nexport type TouchWrapper = TouchHandlers & TouchData\n\nexport interface TouchValue extends TouchHandlers {\n parent?: boolean\n options?: AddEventListenerOptions\n}\n\nexport interface TouchStoredHandlers {\n touchstart: (e: TouchEvent) => void\n touchend: (e: TouchEvent) => void\n touchmove: (e: TouchEvent) => void\n}\n\nexport interface TouchDirectiveBinding extends Omit<DirectiveBinding, 'value'> {\n value?: TouchValue\n}\n\nconst handleGesture = (wrapper: TouchWrapper) => {\n const { touchstartX, touchendX, touchstartY, touchendY } = wrapper\n const dirRatio = 0.5\n const minDistance = 16\n wrapper.offsetX = touchendX - touchstartX\n wrapper.offsetY = touchendY - touchstartY\n\n if (Math.abs(wrapper.offsetY) < dirRatio * Math.abs(wrapper.offsetX)) {\n wrapper.left && (touchendX < touchstartX - minDistance) && wrapper.left(wrapper)\n wrapper.right && (touchendX > touchstartX + minDistance) && wrapper.right(wrapper)\n }\n\n if (Math.abs(wrapper.offsetX) < dirRatio * Math.abs(wrapper.offsetY)) {\n wrapper.up && (touchendY < touchstartY - minDistance) && wrapper.up(wrapper)\n wrapper.down && (touchendY > touchstartY + minDistance) && wrapper.down(wrapper)\n }\n}\n\nfunction touchstart (event: TouchEvent, wrapper: TouchWrapper) {\n const touch = event.changedTouches[0]\n wrapper.touchstartX = touch.clientX\n wrapper.touchstartY = touch.clientY\n\n wrapper.start?.({ originalEvent: event, ...wrapper })\n}\n\nfunction touchend (event: TouchEvent, wrapper: TouchWrapper) {\n const touch = event.changedTouches[0]\n wrapper.touchendX = touch.clientX\n wrapper.touchendY = touch.clientY\n\n wrapper.end?.({ originalEvent: event, ...wrapper })\n\n handleGesture(wrapper)\n}\n\nfunction touchmove (event: TouchEvent, wrapper: TouchWrapper) {\n const touch = event.changedTouches[0]\n wrapper.touchmoveX = touch.clientX\n wrapper.touchmoveY = touch.clientY\n\n wrapper.move?.({ originalEvent: event, ...wrapper })\n}\n\nfunction createHandlers (value: TouchHandlers = {}): TouchStoredHandlers {\n const wrapper = {\n touchstartX: 0,\n touchstartY: 0,\n touchendX: 0,\n touchendY: 0,\n touchmoveX: 0,\n touchmoveY: 0,\n offsetX: 0,\n offsetY: 0,\n left: value.left,\n right: value.right,\n up: value.up,\n down: value.down,\n start: value.start,\n move: value.move,\n end: value.end,\n }\n\n return {\n touchstart: (e: TouchEvent) => touchstart(e, wrapper),\n touchend: (e: TouchEvent) => touchend(e, wrapper),\n touchmove: (e: TouchEvent) => touchmove(e, wrapper),\n }\n}\n\nfunction mounted (el: HTMLElement, binding: TouchDirectiveBinding) {\n const value = binding.value\n const target = value?.parent ? el.parentElement : el\n const options = value?.options ?? { passive: true }\n const uid = binding.instance?.$.uid // TODO: use custom uid generator\n\n if (!target ||
|
|
1
|
+
{"version":3,"file":"index.js","names":["keys","handleGesture","wrapper","touchstartX","touchendX","touchstartY","touchendY","dirRatio","minDistance","offsetX","offsetY","Math","abs","left","right","up","down","touchstart","event","touch","changedTouches","clientX","clientY","start","originalEvent","touchend","end","touchmove","touchmoveX","touchmoveY","move","createHandlers","value","arguments","length","undefined","e","mounted","el","binding","target","parent","parentElement","options","passive","uid","instance","$","handlers","_touchHandlers","Object","create","forEach","eventName","addEventListener","unmounted","removeEventListener","Touch"],"sources":["../../../src/directives/touch/index.ts"],"sourcesContent":["// Utilities\nimport { keys } from '@/util'\n\n// Types\nimport type {\n DirectiveBinding,\n} from 'vue'\n\nexport interface TouchHandlers {\n start?: (wrapperEvent: { originalEvent: TouchEvent } & TouchData) => void\n end?: (wrapperEvent: { originalEvent: TouchEvent } & TouchData) => void\n move?: (wrapperEvent: { originalEvent: TouchEvent } & TouchData) => void\n left?: (wrapper: TouchData) => void\n right?: (wrapper: TouchData) => void\n up?: (wrapper: TouchData) => void\n down?: (wrapper: TouchData) => void\n}\n\nexport interface TouchData {\n touchstartX: number\n touchstartY: number\n touchmoveX: number\n touchmoveY: number\n touchendX: number\n touchendY: number\n offsetX: number\n offsetY: number\n}\n\nexport type TouchWrapper = TouchHandlers & TouchData\n\nexport interface TouchValue extends TouchHandlers {\n parent?: boolean\n options?: AddEventListenerOptions\n}\n\nexport interface TouchStoredHandlers {\n touchstart: (e: TouchEvent) => void\n touchend: (e: TouchEvent) => void\n touchmove: (e: TouchEvent) => void\n}\n\nexport interface TouchDirectiveBinding extends Omit<DirectiveBinding, 'value'> {\n value?: TouchValue\n}\n\nconst handleGesture = (wrapper: TouchWrapper) => {\n const { touchstartX, touchendX, touchstartY, touchendY } = wrapper\n const dirRatio = 0.5\n const minDistance = 16\n wrapper.offsetX = touchendX - touchstartX\n wrapper.offsetY = touchendY - touchstartY\n\n if (Math.abs(wrapper.offsetY) < dirRatio * Math.abs(wrapper.offsetX)) {\n wrapper.left && (touchendX < touchstartX - minDistance) && wrapper.left(wrapper)\n wrapper.right && (touchendX > touchstartX + minDistance) && wrapper.right(wrapper)\n }\n\n if (Math.abs(wrapper.offsetX) < dirRatio * Math.abs(wrapper.offsetY)) {\n wrapper.up && (touchendY < touchstartY - minDistance) && wrapper.up(wrapper)\n wrapper.down && (touchendY > touchstartY + minDistance) && wrapper.down(wrapper)\n }\n}\n\nfunction touchstart (event: TouchEvent, wrapper: TouchWrapper) {\n const touch = event.changedTouches[0]\n wrapper.touchstartX = touch.clientX\n wrapper.touchstartY = touch.clientY\n\n wrapper.start?.({ originalEvent: event, ...wrapper })\n}\n\nfunction touchend (event: TouchEvent, wrapper: TouchWrapper) {\n const touch = event.changedTouches[0]\n wrapper.touchendX = touch.clientX\n wrapper.touchendY = touch.clientY\n\n wrapper.end?.({ originalEvent: event, ...wrapper })\n\n handleGesture(wrapper)\n}\n\nfunction touchmove (event: TouchEvent, wrapper: TouchWrapper) {\n const touch = event.changedTouches[0]\n wrapper.touchmoveX = touch.clientX\n wrapper.touchmoveY = touch.clientY\n\n wrapper.move?.({ originalEvent: event, ...wrapper })\n}\n\nfunction createHandlers (value: TouchHandlers = {}): TouchStoredHandlers {\n const wrapper = {\n touchstartX: 0,\n touchstartY: 0,\n touchendX: 0,\n touchendY: 0,\n touchmoveX: 0,\n touchmoveY: 0,\n offsetX: 0,\n offsetY: 0,\n left: value.left,\n right: value.right,\n up: value.up,\n down: value.down,\n start: value.start,\n move: value.move,\n end: value.end,\n }\n\n return {\n touchstart: (e: TouchEvent) => touchstart(e, wrapper),\n touchend: (e: TouchEvent) => touchend(e, wrapper),\n touchmove: (e: TouchEvent) => touchmove(e, wrapper),\n }\n}\n\nfunction mounted (el: HTMLElement, binding: TouchDirectiveBinding) {\n const value = binding.value\n const target = value?.parent ? el.parentElement : el\n const options = value?.options ?? { passive: true }\n const uid = binding.instance?.$.uid // TODO: use custom uid generator\n\n if (!target || uid === undefined) return\n\n const handlers = createHandlers(binding.value)\n\n target._touchHandlers = target._touchHandlers ?? Object.create(null)\n target._touchHandlers![uid] = handlers\n\n keys(handlers).forEach(eventName => {\n target.addEventListener(eventName, handlers[eventName], options)\n })\n}\n\nfunction unmounted (el: HTMLElement, binding: TouchDirectiveBinding) {\n const target = binding.value?.parent ? el.parentElement : el\n const uid = binding.instance?.$.uid\n\n if (!target?._touchHandlers || uid === undefined) return\n\n const handlers = target._touchHandlers[uid]\n\n keys(handlers).forEach(eventName => {\n target.removeEventListener(eventName, handlers[eventName])\n })\n\n delete target._touchHandlers[uid]\n}\n\nexport const Touch = {\n mounted,\n unmounted,\n}\n\nexport default Touch\n"],"mappings":"AAAA;AAA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ACK,SAAS,CAAC,EAAEV,OAAO,CAAC;EAClE,CAAC,CAAC;AACJ;AAEA,SAASY,SAASA,CAAEjB,EAAe,EAAEC,OAA8B,EAAE;EACnE,MAAMC,MAAM,GAAGD,OAAO,CAACP,KAAK,EAAES,MAAM,GAAGH,EAAE,CAACI,aAAa,GAAGJ,EAAE;EAC5D,MAAMO,GAAG,GAAGN,OAAO,CAACO,QAAQ,EAAEC,CAAC,CAACF,GAAG;EAEnC,IAAI,CAACL,MAAM,EAAES,cAAc,IAAIJ,GAAG,KAAKV,SAAS,EAAE;EAElD,MAAMa,QAAQ,GAAGR,MAAM,CAACS,cAAc,CAACJ,GAAG,CAAC;EAE3C7C,IAAI,CAACgD,QAAQ,CAAC,CAACI,OAAO,CAACC,SAAS,IAAI;IAClCb,MAAM,CAACgB,mBAAmB,CAACH,SAAS,EAAEL,QAAQ,CAACK,SAAS,CAAC,CAAC;EAC5D,CAAC,CAAC;EAEF,OAAOb,MAAM,CAACS,cAAc,CAACJ,GAAG,CAAC;AACnC;AAEA,OAAO,MAAMY,KAAK,GAAG;EACnBpB,OAAO;EACPkB;AACF,CAAC;AAED,eAAeE,KAAK","ignoreList":[]}
|
package/lib/entry-bundler.js
CHANGED
|
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
|
16
16
|
...options
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
export const version = "3.9.
|
|
19
|
+
export const version = "3.9.7";
|
|
20
20
|
createVuetify.version = version;
|
|
21
21
|
export { blueprints, components, directives };
|
|
22
22
|
export * from "./composables/index.js";
|
package/lib/framework.d.ts
CHANGED
|
@@ -2605,78 +2605,73 @@ declare module 'vue' {
|
|
|
2605
2605
|
$children?: VNodeChild
|
|
2606
2606
|
}
|
|
2607
2607
|
export interface GlobalComponents {
|
|
2608
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
|
2609
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
2608
2610
|
VApp: typeof import('vuetify/components')['VApp']
|
|
2611
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
2609
2612
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
2610
2613
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
2611
2614
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
2612
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
|
2613
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
2614
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
2615
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
2616
2615
|
VBadge: typeof import('vuetify/components')['VBadge']
|
|
2617
|
-
|
|
2618
|
-
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
2619
|
-
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
2616
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
|
2620
2617
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
2621
|
-
|
|
2618
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
2619
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
2622
2620
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
2623
2621
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
2624
2622
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
2625
|
-
|
|
2626
|
-
|
|
2623
|
+
VBanner: typeof import('vuetify/components')['VBanner']
|
|
2624
|
+
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
2625
|
+
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
2627
2626
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
2627
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
2628
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
2628
2629
|
VCard: typeof import('vuetify/components')['VCard']
|
|
2629
2630
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
|
2630
2631
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
|
2631
2632
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
2632
2633
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
2633
2634
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
2634
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
2635
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
2636
|
-
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
2637
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
2638
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
2639
2635
|
VChip: typeof import('vuetify/components')['VChip']
|
|
2636
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
2640
2637
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
2641
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
|
2642
2638
|
VCode: typeof import('vuetify/components')['VCode']
|
|
2643
|
-
|
|
2639
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
2640
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
2641
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
2644
2642
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
2645
2643
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
2646
2644
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
2647
2645
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
2648
2646
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
2649
2647
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
2650
|
-
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
2651
|
-
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
2652
|
-
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
2653
|
-
VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
|
|
2654
|
-
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
2655
|
-
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
2656
|
-
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
2657
2648
|
VDivider: typeof import('vuetify/components')['VDivider']
|
|
2658
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
2659
2649
|
VDialog: typeof import('vuetify/components')['VDialog']
|
|
2650
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
|
2651
|
+
VFab: typeof import('vuetify/components')['VFab']
|
|
2652
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
2653
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
2660
2654
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
2661
2655
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
2662
2656
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
2663
2657
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
2664
|
-
VFab: typeof import('vuetify/components')['VFab']
|
|
2665
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
|
2666
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
2667
2658
|
VField: typeof import('vuetify/components')['VField']
|
|
2668
2659
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
2660
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
|
2669
2661
|
VImg: typeof import('vuetify/components')['VImg']
|
|
2662
|
+
VInput: typeof import('vuetify/components')['VInput']
|
|
2663
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
2664
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
|
2670
2665
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
2671
2666
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
2672
2667
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
2673
2668
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
2674
2669
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
2675
|
-
|
|
2670
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
2676
2671
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
2677
2672
|
VItem: typeof import('vuetify/components')['VItem']
|
|
2678
|
-
|
|
2679
|
-
|
|
2673
|
+
VMain: typeof import('vuetify/components')['VMain']
|
|
2674
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
|
2680
2675
|
VList: typeof import('vuetify/components')['VList']
|
|
2681
2676
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
2682
2677
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -2686,28 +2681,25 @@ declare module 'vue' {
|
|
|
2686
2681
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
2687
2682
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
2688
2683
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
2689
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
|
2690
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
|
2691
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
|
2692
2684
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
2693
|
-
|
|
2685
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
|
2694
2686
|
VNumberInput: typeof import('vuetify/components')['VNumberInput']
|
|
2695
|
-
VPagination: typeof import('vuetify/components')['VPagination']
|
|
2696
2687
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
2697
2688
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
2698
|
-
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
2699
2689
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
2700
|
-
|
|
2690
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
|
2691
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
2701
2692
|
VRating: typeof import('vuetify/components')['VRating']
|
|
2702
2693
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
2703
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
2704
2694
|
VSelect: typeof import('vuetify/components')['VSelect']
|
|
2705
2695
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
2706
2696
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
2697
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
|
2698
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
2699
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
2700
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
2707
2701
|
VSheet: typeof import('vuetify/components')['VSheet']
|
|
2708
2702
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
2709
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
2710
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
|
2711
2703
|
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
2712
2704
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
2713
2705
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
@@ -2715,28 +2707,31 @@ declare module 'vue' {
|
|
|
2715
2707
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
|
2716
2708
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
2717
2709
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
2718
|
-
|
|
2719
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
|
2720
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
2710
|
+
VTable: typeof import('vuetify/components')['VTable']
|
|
2721
2711
|
VTab: typeof import('vuetify/components')['VTab']
|
|
2722
2712
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
2723
2713
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
2724
2714
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
2725
|
-
|
|
2715
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
2716
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
2717
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
2718
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
|
2726
2719
|
VTimePicker: typeof import('vuetify/components')['VTimePicker']
|
|
2727
2720
|
VTimePickerClock: typeof import('vuetify/components')['VTimePickerClock']
|
|
2728
2721
|
VTimePickerControls: typeof import('vuetify/components')['VTimePickerControls']
|
|
2729
2722
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
2730
2723
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
2731
2724
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
2732
|
-
|
|
2725
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
2733
2726
|
VTreeview: typeof import('vuetify/components')['VTreeview']
|
|
2734
2727
|
VTreeviewItem: typeof import('vuetify/components')['VTreeviewItem']
|
|
2735
2728
|
VTreeviewGroup: typeof import('vuetify/components')['VTreeviewGroup']
|
|
2729
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
2736
2730
|
VWindow: typeof import('vuetify/components')['VWindow']
|
|
2737
2731
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
2738
|
-
|
|
2732
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
2739
2733
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
|
2734
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
2740
2735
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
2741
2736
|
VForm: typeof import('vuetify/components')['VForm']
|
|
2742
2737
|
VContainer: typeof import('vuetify/components')['VContainer']
|
|
@@ -2749,10 +2744,9 @@ declare module 'vue' {
|
|
|
2749
2744
|
VLazy: typeof import('vuetify/components')['VLazy']
|
|
2750
2745
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
2751
2746
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
2752
|
-
VParallax: typeof import('vuetify/components')['VParallax']
|
|
2753
|
-
VRadio: typeof import('vuetify/components')['VRadio']
|
|
2754
2747
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
2755
2748
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
2749
|
+
VRadio: typeof import('vuetify/components')['VRadio']
|
|
2756
2750
|
VSnackbarQueue: typeof import('vuetify/components')['VSnackbarQueue']
|
|
2757
2751
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
2758
2752
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
|
@@ -2775,8 +2769,14 @@ declare module 'vue' {
|
|
|
2775
2769
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
|
2776
2770
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
|
2777
2771
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
|
2778
|
-
|
|
2779
|
-
|
|
2772
|
+
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
2773
|
+
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
2774
|
+
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
2775
|
+
VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
|
|
2776
|
+
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
2777
|
+
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
2778
|
+
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
2779
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
|
2780
2780
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
2781
2781
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
|
2782
2782
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
|
@@ -2784,24 +2784,24 @@ declare module 'vue' {
|
|
|
2784
2784
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
|
2785
2785
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
|
2786
2786
|
VColorInput: typeof import('vuetify/labs/components')['VColorInput']
|
|
2787
|
-
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
|
2788
|
-
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
2789
|
-
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
2790
2787
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
2791
2788
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
2789
|
+
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
|
2790
|
+
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
|
2792
2791
|
VPie: typeof import('vuetify/labs/components')['VPie']
|
|
2793
2792
|
VPieSegment: typeof import('vuetify/labs/components')['VPieSegment']
|
|
2794
2793
|
VPieTooltip: typeof import('vuetify/labs/components')['VPieTooltip']
|
|
2794
|
+
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
|
2795
|
+
VMaskInput: typeof import('vuetify/labs/components')['VMaskInput']
|
|
2796
|
+
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
2797
|
+
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
2798
|
+
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
|
2795
2799
|
VVideo: typeof import('vuetify/labs/components')['VVideo']
|
|
2796
2800
|
VVideoControls: typeof import('vuetify/labs/components')['VVideoControls']
|
|
2797
2801
|
VVideoVolume: typeof import('vuetify/labs/components')['VVideoVolume']
|
|
2798
|
-
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
|
2799
2802
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
2800
2803
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
2801
2804
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
2802
|
-
VMaskInput: typeof import('vuetify/labs/components')['VMaskInput']
|
|
2803
|
-
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
|
2804
|
-
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
|
2805
2805
|
}
|
|
2806
2806
|
export interface GlobalDirectives {
|
|
2807
2807
|
vClickOutside: typeof import('vuetify/directives')['ClickOutside']
|