@vuetify/nightly 3.7.1-master.2024-09-06 → 3.7.1-master.2024-09-10
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 +1 -1
- package/dist/json/importMap-labs.json +20 -20
- package/dist/json/importMap.json +148 -148
- package/dist/json/web-types.json +2 -2
- package/dist/vuetify-labs.css +3125 -3125
- package/dist/vuetify-labs.esm.js +8 -9
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +8 -9
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1383 -1383
- package/dist/vuetify.d.ts +53 -53
- package/dist/vuetify.esm.js +8 -9
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +8 -9
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +9 -9
- package/dist/vuetify.min.js.map +1 -1
- package/lib/composables/nested/nested.mjs +3 -3
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/openStrategies.mjs +2 -4
- package/lib/composables/nested/openStrategies.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +53 -53
- package/package.json +1 -1
@@ -41,7 +41,7 @@ export const useNested = props => {
|
|
41
41
|
let isUnmounted = false;
|
42
42
|
const children = ref(new Map());
|
43
43
|
const parents = ref(new Map());
|
44
|
-
const opened = useProxiedModel(props, 'opened', props.opened, v => new Set(
|
44
|
+
const opened = useProxiedModel(props, 'opened', props.opened, v => new Set(v), v => [...v.values()]);
|
45
45
|
const activeStrategy = computed(() => {
|
46
46
|
if (typeof props.activeStrategy === 'object') return props.activeStrategy;
|
47
47
|
if (typeof props.activeStrategy === 'function') return props.activeStrategy(props.mandatory);
|
@@ -225,9 +225,9 @@ export const useNestedItem = (id, isGroup) => {
|
|
225
225
|
const item = {
|
226
226
|
...parent,
|
227
227
|
id: computedId,
|
228
|
-
open: (open, e) => parent.root.open(
|
228
|
+
open: (open, e) => parent.root.open(computedId.value, open, e),
|
229
229
|
openOnSelect: (open, e) => parent.root.openOnSelect(computedId.value, open, e),
|
230
|
-
isOpen: computed(() => parent.root.opened.value.has(
|
230
|
+
isOpen: computed(() => parent.root.opened.value.has(computedId.value)),
|
231
231
|
parent: computed(() => parent.root.parents.value.get(computedId.value)),
|
232
232
|
activate: (activated, e) => parent.root.activate(computedId.value, activated, e),
|
233
233
|
isActivated: computed(() => parent.root.activated.value.has(toRaw(computedId.value))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nested.mjs","names":["useProxiedModel","computed","inject","onBeforeUnmount","provide","ref","shallowRef","toRaw","toRef","independentActiveStrategy","independentSingleActiveStrategy","leafActiveStrategy","leafSingleActiveStrategy","listOpenStrategy","multipleOpenStrategy","singleOpenStrategy","classicSelectStrategy","independentSelectStrategy","independentSingleSelectStrategy","leafSelectStrategy","leafSingleSelectStrategy","consoleError","getCurrentInstance","getUid","propsFactory","VNestedSymbol","Symbol","for","emptyNested","id","root","register","unregister","parents","Map","children","open","openOnSelect","activate","select","activatable","selectable","opened","Set","activated","selected","selectedValues","getPath","makeNestedProps","Boolean","activeStrategy","String","Function","Object","selectStrategy","openStrategy","mandatory","useNested","props","isUnmounted","v","values","value","in","out","path","parent","unshift","get","vm","nodeIds","nested","arr","key","entries","push","parentId","isGroup","has","join","newPath","concat","add","set","delete","list","filter","child","event","emit","newOpened","newSelected","newActivated","useNestedItem","uidSymbol","computedId","undefined","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 { computed, inject, onBeforeUnmount, provide, ref, shallowRef, toRaw, toRef } 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} from './selectStrategies'\nimport { consoleError, getCurrentInstance, getUid, propsFactory } from '@/util'\n\n// Types\nimport type { InjectionKey, 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 | 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 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, 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 parents: ref(new Map()),\n children: ref(new Map()),\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 = ref(new Map<unknown, unknown[]>())\n const parents = ref(new Map<unknown, unknown>())\n\n const opened = useProxiedModel(props, 'opened', props.opened, v => new Set(toRaw(v)), v => [...v.values()])\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 '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),\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 = 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, isGroup) => {\n if (nodeIds.has(id)) {\n const path = getPath(id).join(' -> ')\n const newPath = getPath(parentId).concat(id).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 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 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 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 newActivated && (activated.value = newActivated)\n },\n children,\n parents,\n getPath,\n },\n }\n\n provide(VNestedSymbol, nested)\n\n return nested.root\n}\n\nexport const useNestedItem = (id: Ref<unknown>, isGroup: boolean) => {\n const parent = inject(VNestedSymbol, emptyNested)\n\n const uidSymbol = Symbol(getUid())\n const computedId = computed(() => id.value !== undefined ? id.value : uidSymbol)\n\n const item = {\n ...parent,\n id: computedId,\n open: (open: boolean, e: Event) => parent.root.open(toRaw(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(toRaw(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(toRaw(computedId.value))),\n select: (selected: boolean, e?: Event) => parent.root.select(computedId.value, selected, e),\n isSelected: computed(() => parent.root.selected.value.get(toRaw(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 !parent.isGroupActivator && parent.root.register(computedId.value, parent.id.value, isGroup)\n\n onBeforeUnmount(() => {\n !parent.isGroupActivator && parent.root.unregister(computedId.value)\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,+BAExB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,eAAe,EAAEC,OAAO,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAE7FC,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;AAAA,SAEjBC,YAAY,EAAEC,kBAAkB,EAAEC,MAAM,EAAEC,YAAY,gCAE/D;AA6DA,OAAO,MAAMC,aAA0C,GAAGC,MAAM,CAACC,GAAG,CAAC,gBAAgB,CAAC;AAEtF,OAAO,MAAMC,WAA0B,GAAG;EACxCC,EAAE,EAAEvB,UAAU,CAAC,CAAC;EAChBwB,IAAI,EAAE;IACJC,QAAQ,EAAEA,CAAA,KAAM,IAAI;IACpBC,UAAU,EAAEA,CAAA,KAAM,IAAI;IACtBC,OAAO,EAAE5B,GAAG,CAAC,IAAI6B,GA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,CAACE,UAAU,CAAC+D,UAAU,CAACjC,KAAK,CAAC;EACtE,CAAC,CAAC;EAEFe,OAAO,IAAIzE,OAAO,CAACqB,aAAa,EAAEwE,IAAI,CAAC;EAEvC,OAAOA,IAAI;AACb,CAAC;AAED,OAAO,MAAMQ,uBAAuB,GAAGA,CAAA,KAAM;EAC3C,MAAMvC,MAAM,GAAGhE,MAAM,CAACuB,aAAa,EAAEG,WAAW,CAAC;EAEjDxB,OAAO,CAACqB,aAAa,EAAE;IAAE,GAAGyC,MAAM;IAAEsC,gBAAgB,EAAE;EAAK,CAAC,CAAC;AAC/D,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"nested.mjs","names":["useProxiedModel","computed","inject","onBeforeUnmount","provide","ref","shallowRef","toRaw","toRef","independentActiveStrategy","independentSingleActiveStrategy","leafActiveStrategy","leafSingleActiveStrategy","listOpenStrategy","multipleOpenStrategy","singleOpenStrategy","classicSelectStrategy","independentSelectStrategy","independentSingleSelectStrategy","leafSelectStrategy","leafSingleSelectStrategy","consoleError","getCurrentInstance","getUid","propsFactory","VNestedSymbol","Symbol","for","emptyNested","id","root","register","unregister","parents","Map","children","open","openOnSelect","activate","select","activatable","selectable","opened","Set","activated","selected","selectedValues","getPath","makeNestedProps","Boolean","activeStrategy","String","Function","Object","selectStrategy","openStrategy","mandatory","useNested","props","isUnmounted","v","values","value","in","out","path","parent","unshift","get","vm","nodeIds","nested","arr","key","entries","push","parentId","isGroup","has","join","newPath","concat","add","set","delete","list","filter","child","event","emit","newOpened","newSelected","newActivated","useNestedItem","uidSymbol","computedId","undefined","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 { computed, inject, onBeforeUnmount, provide, ref, shallowRef, toRaw, toRef } 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} from './selectStrategies'\nimport { consoleError, getCurrentInstance, getUid, propsFactory } from '@/util'\n\n// Types\nimport type { InjectionKey, 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 | 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 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, 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 parents: ref(new Map()),\n children: ref(new Map()),\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 = ref(new Map<unknown, unknown[]>())\n const parents = ref(new Map<unknown, unknown>())\n\n const opened = useProxiedModel(props, 'opened', props.opened, v => new Set(v), v => [...v.values()])\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 '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),\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 = 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, isGroup) => {\n if (nodeIds.has(id)) {\n const path = getPath(id).join(' -> ')\n const newPath = getPath(parentId).concat(id).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 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 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 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 newActivated && (activated.value = newActivated)\n },\n children,\n parents,\n getPath,\n },\n }\n\n provide(VNestedSymbol, nested)\n\n return nested.root\n}\n\nexport const useNestedItem = (id: Ref<unknown>, isGroup: boolean) => {\n const parent = inject(VNestedSymbol, emptyNested)\n\n const uidSymbol = Symbol(getUid())\n const computedId = computed(() => id.value !== undefined ? id.value : 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(toRaw(computedId.value))),\n select: (selected: boolean, e?: Event) => parent.root.select(computedId.value, selected, e),\n isSelected: computed(() => parent.root.selected.value.get(toRaw(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 !parent.isGroupActivator && parent.root.register(computedId.value, parent.id.value, isGroup)\n\n onBeforeUnmount(() => {\n !parent.isGroupActivator && parent.root.unregister(computedId.value)\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,+BAExB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,eAAe,EAAEC,OAAO,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAE7FC,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;AAAA,SAEjBC,YAAY,EAAEC,kBAAkB,EAAEC,MAAM,EAAEC,YAAY,gCAE/D;AA6DA,OAAO,MAAMC,aAA0C,GAAGC,MAAM,CAACC,GAAG,CAAC,gBAAgB,CAAC;AAEtF,OAAO,MAAMC,WAA0B,GAAG;EACxCC,EAAE,EAAEvB,UAAU,CAAC,CAAC;EAChBwB,IAAI,EAAE;IACJC,QAAQ,EAAEA,CAAA,KAAM,IAAI;IACpBC,UAAU,EAAEA,CAAA,KAAM,IAAI;IACtBC,OAAO,EAAE5B,GAAG,CAAC,IAAI6B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AAC,CAAC;EAEFe,OAAO,IAAIzE,OAAO,CAACqB,aAAa,EAAEwE,IAAI,CAAC;EAEvC,OAAOA,IAAI;AACb,CAAC;AAED,OAAO,MAAMQ,uBAAuB,GAAGA,CAAA,KAAM;EAC3C,MAAMvC,MAAM,GAAGhE,MAAM,CAACuB,aAAa,EAAEG,WAAW,CAAC;EAEjDxB,OAAO,CAACqB,aAAa,EAAE;IAAE,GAAGyC,MAAM;IAAEsC,gBAAgB,EAAE;EAAK,CAAC,CAAC;AAC/D,CAAC","ignoreList":[]}
|
@@ -1,5 +1,3 @@
|
|
1
|
-
// Utilities
|
2
|
-
import { toRaw } from 'vue';
|
3
1
|
export const singleOpenStrategy = {
|
4
2
|
open: _ref => {
|
5
3
|
let {
|
@@ -33,11 +31,11 @@ export const multipleOpenStrategy = {
|
|
33
31
|
parents
|
34
32
|
} = _ref2;
|
35
33
|
if (value) {
|
36
|
-
let parent =
|
34
|
+
let parent = parents.get(id);
|
37
35
|
opened.add(id);
|
38
36
|
while (parent != null && parent !== id) {
|
39
37
|
opened.add(parent);
|
40
|
-
parent =
|
38
|
+
parent = parents.get(parent);
|
41
39
|
}
|
42
40
|
return opened;
|
43
41
|
} else {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openStrategies.mjs","names":["
|
1
|
+
{"version":3,"file":"openStrategies.mjs","names":["singleOpenStrategy","open","_ref","id","value","opened","parents","newOpened","Set","add","parent","get","delete","select","multipleOpenStrategy","_ref2","listOpenStrategy","_ref3","path","push"],"sources":["../../../src/composables/nested/openStrategies.ts"],"sourcesContent":["export type OpenStrategyFn = (data: {\n id: unknown\n value: boolean\n opened: Set<unknown>\n children: Map<unknown, unknown[]>\n parents: Map<unknown, unknown>\n event?: Event\n}) => Set<unknown>\n\nexport type OpenSelectStrategyFn = (data: {\n id: unknown\n value: boolean\n opened: Set<unknown>\n selected: Map<unknown, 'on' | 'off' | 'indeterminate'>\n children: Map<unknown, unknown[]>\n parents: Map<unknown, unknown>\n event?: Event\n}) => Set<unknown> | null\n\nexport type OpenStrategy = {\n open: OpenStrategyFn\n select: OpenSelectStrategyFn\n}\n\nexport const singleOpenStrategy: OpenStrategy = {\n open: ({ id, value, opened, parents }) => {\n if (value) {\n const newOpened = new Set<unknown>()\n newOpened.add(id)\n\n let parent = parents.get(id)\n\n while (parent != null) {\n newOpened.add(parent)\n parent = parents.get(parent)\n }\n\n return newOpened\n } else {\n opened.delete(id)\n return opened\n }\n },\n select: () => null,\n}\n\nexport const multipleOpenStrategy: OpenStrategy = {\n open: ({ id, value, opened, parents }) => {\n if (value) {\n let parent = parents.get(id)\n opened.add(id)\n\n while (parent != null && parent !== id) {\n opened.add(parent)\n parent = parents.get(parent)\n }\n\n return opened\n } else {\n opened.delete(id)\n }\n return opened\n },\n select: () => null,\n}\n\nexport const listOpenStrategy: OpenStrategy = {\n open: multipleOpenStrategy.open,\n select: ({ id, value, opened, parents }) => {\n if (!value) return opened\n\n const path: unknown[] = []\n\n let parent = parents.get(id)\n\n while (parent != null) {\n path.push(parent)\n parent = parents.get(parent)\n }\n\n return new Set(path)\n },\n}\n"],"mappings":"AAwBA,OAAO,MAAMA,kBAAgC,GAAG;EAC9CC,IAAI,EAAEC,IAAA,IAAoC;IAAA,IAAnC;MAAEC,EAAE;MAAEC,KAAK;MAAEC,MAAM;MAAEC;IAAQ,CAAC,GAAAJ,IAAA;IACnC,IAAIE,KAAK,EAAE;MACT,MAAMG,SAAS,GAAG,IAAIC,GAAG,CAAU,CAAC;MACpCD,SAAS,CAACE,GAAG,CAACN,EAAE,CAAC;MAEjB,IAAIO,MAAM,GAAGJ,OAAO,CAACK,GAAG,CAACR,EAAE,CAAC;MAE5B,OAAOO,MAAM,IAAI,IAAI,EAAE;QACrBH,SAAS,CAACE,GAAG,CAACC,MAAM,CAAC;QACrBA,MAAM,GAAGJ,OAAO,CAACK,GAAG,CAACD,MAAM,CAAC;MAC9B;MAEA,OAAOH,SAAS;IAClB,CAAC,MAAM;MACLF,MAAM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GAAG,CAACU,IAAI,CAAC;EACtB;AACF,CAAC","ignoreList":[]}
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.7.1-master.2024-09-
|
19
|
+
export const version = "3.7.1-master.2024-09-10";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/index.d.mts
CHANGED
@@ -486,47 +486,42 @@ declare module 'vue' {
|
|
486
486
|
$children?: VNodeChild
|
487
487
|
}
|
488
488
|
export interface GlobalComponents {
|
489
|
-
VApp: typeof import('vuetify/components')['VApp']
|
490
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
491
489
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
492
490
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
493
491
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
492
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
494
493
|
VAlert: typeof import('vuetify/components')['VAlert']
|
495
494
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
496
|
-
|
495
|
+
VApp: typeof import('vuetify/components')['VApp']
|
497
496
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
497
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
498
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
498
499
|
VBanner: typeof import('vuetify/components')['VBanner']
|
499
500
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
500
501
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
501
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
502
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
503
502
|
VBtn: typeof import('vuetify/components')['VBtn']
|
504
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
505
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
506
503
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
507
504
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
508
505
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
509
|
-
|
506
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
510
507
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
511
508
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
512
|
-
|
509
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
510
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
511
|
+
VChip: typeof import('vuetify/components')['VChip']
|
512
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
513
513
|
VCard: typeof import('vuetify/components')['VCard']
|
514
514
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
515
515
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
516
516
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
517
517
|
VCardText: typeof import('vuetify/components')['VCardText']
|
518
518
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
519
|
+
VCode: typeof import('vuetify/components')['VCode']
|
519
520
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
520
521
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
521
|
-
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
522
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
523
522
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
524
|
-
|
525
|
-
|
526
|
-
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
527
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
528
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
529
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
523
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
524
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
530
525
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
531
526
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
532
527
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -534,30 +529,35 @@ declare module 'vue' {
|
|
534
529
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
535
530
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
536
531
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
537
|
-
|
532
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
533
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
534
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
535
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
536
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
537
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
538
538
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
539
539
|
VDivider: typeof import('vuetify/components')['VDivider']
|
540
|
+
VFab: typeof import('vuetify/components')['VFab']
|
541
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
540
542
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
541
543
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
542
544
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
543
545
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
544
|
-
|
545
|
-
VFab: typeof import('vuetify/components')['VFab']
|
546
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
546
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
547
547
|
VField: typeof import('vuetify/components')['VField']
|
548
548
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
549
|
-
|
550
|
-
|
549
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
550
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
551
551
|
VIcon: typeof import('vuetify/components')['VIcon']
|
552
552
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
553
553
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
554
554
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
555
555
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
556
|
-
|
556
|
+
VImg: typeof import('vuetify/components')['VImg']
|
557
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
557
558
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
558
559
|
VItem: typeof import('vuetify/components')['VItem']
|
559
560
|
VInput: typeof import('vuetify/components')['VInput']
|
560
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
561
561
|
VList: typeof import('vuetify/components')['VList']
|
562
562
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
563
563
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -567,69 +567,69 @@ declare module 'vue' {
|
|
567
567
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
568
568
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
569
569
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
570
|
-
|
570
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
571
571
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
572
|
-
|
572
|
+
VMain: typeof import('vuetify/components')['VMain']
|
573
573
|
VMessages: typeof import('vuetify/components')['VMessages']
|
574
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
575
|
+
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
574
576
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
575
577
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
576
|
-
VMain: typeof import('vuetify/components')['VMain']
|
577
578
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
578
|
-
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
579
579
|
VPagination: typeof import('vuetify/components')['VPagination']
|
580
|
-
|
580
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
581
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
581
582
|
VRating: typeof import('vuetify/components')['VRating']
|
583
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
582
584
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
583
585
|
VSelect: typeof import('vuetify/components')['VSelect']
|
584
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
585
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
586
586
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
587
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
587
588
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
588
589
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
589
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
590
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
591
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
592
590
|
VStepper: typeof import('vuetify/components')['VStepper']
|
593
591
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
594
592
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
595
593
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
596
594
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
597
595
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
596
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
598
597
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
598
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
599
599
|
VTab: typeof import('vuetify/components')['VTab']
|
600
600
|
VTabs: typeof import('vuetify/components')['VTabs']
|
601
601
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
602
602
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
603
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
604
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
605
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
607
606
|
VTextField: typeof import('vuetify/components')['VTextField']
|
608
607
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
608
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
609
|
+
VTable: typeof import('vuetify/components')['VTable']
|
610
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
611
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
609
612
|
VWindow: typeof import('vuetify/components')['VWindow']
|
610
613
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
611
|
-
VToolbar: typeof import('vuetify/components')['VToolbar']
|
612
|
-
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
613
|
-
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
614
|
-
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
615
614
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
615
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
616
616
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
617
|
-
VForm: typeof import('vuetify/components')['VForm']
|
618
617
|
VContainer: typeof import('vuetify/components')['VContainer']
|
619
618
|
VCol: typeof import('vuetify/components')['VCol']
|
620
619
|
VRow: typeof import('vuetify/components')['VRow']
|
621
620
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
622
|
-
|
621
|
+
VForm: typeof import('vuetify/components')['VForm']
|
623
622
|
VHover: typeof import('vuetify/components')['VHover']
|
624
623
|
VLayout: typeof import('vuetify/components')['VLayout']
|
625
624
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
626
|
-
|
625
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
627
626
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
627
|
+
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
628
628
|
VParallax: typeof import('vuetify/components')['VParallax']
|
629
629
|
VRadio: typeof import('vuetify/components')['VRadio']
|
630
|
-
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
631
630
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
632
631
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
632
|
+
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
633
633
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
634
634
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
635
635
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
@@ -650,21 +650,21 @@ declare module 'vue' {
|
|
650
650
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
651
651
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
652
652
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
653
|
-
|
654
|
-
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
655
|
-
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
653
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
656
654
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
657
655
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
658
656
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
659
657
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
660
658
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
661
659
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
662
|
-
|
660
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
661
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
662
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
663
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
664
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
663
665
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
664
666
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
665
667
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
666
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
667
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
668
668
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
669
669
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
670
670
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|