@vuetify/nightly 3.6.7-master.2024-05-28 → 3.6.8-master.2024-05-30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +2 -10
  2. package/dist/json/attributes.json +44 -12
  3. package/dist/json/importMap-labs.json +26 -26
  4. package/dist/json/importMap.json +118 -118
  5. package/dist/json/tags.json +8 -0
  6. package/dist/json/web-types.json +117 -45
  7. package/dist/vuetify-labs.css +1826 -1823
  8. package/dist/vuetify-labs.d.ts +528 -1392
  9. package/dist/vuetify-labs.esm.js +145 -43
  10. package/dist/vuetify-labs.esm.js.map +1 -1
  11. package/dist/vuetify-labs.js +145 -43
  12. package/dist/vuetify-labs.min.css +2 -2
  13. package/dist/vuetify.css +849 -846
  14. package/dist/vuetify.d.ts +423 -1127
  15. package/dist/vuetify.esm.js +41 -12
  16. package/dist/vuetify.esm.js.map +1 -1
  17. package/dist/vuetify.js +41 -12
  18. package/dist/vuetify.js.map +1 -1
  19. package/dist/vuetify.min.css +2 -2
  20. package/dist/vuetify.min.js +16 -16
  21. package/dist/vuetify.min.js.map +1 -1
  22. package/lib/components/VAutocomplete/index.d.mts +102 -336
  23. package/lib/components/VCombobox/index.d.mts +102 -336
  24. package/lib/components/VDatePicker/VDatePickerMonth.mjs +3 -0
  25. package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
  26. package/lib/components/VDivider/VDivider.mjs +1 -1
  27. package/lib/components/VDivider/VDivider.mjs.map +1 -1
  28. package/lib/components/VList/VList.mjs +3 -1
  29. package/lib/components/VList/VList.mjs.map +1 -1
  30. package/lib/components/VList/VListGroup.mjs +1 -0
  31. package/lib/components/VList/VListGroup.mjs.map +1 -1
  32. package/lib/components/VList/VListItem.css +2 -2
  33. package/lib/components/VList/VListItem.mjs +2 -0
  34. package/lib/components/VList/VListItem.mjs.map +1 -1
  35. package/lib/components/VList/VListItem.sass +1 -1
  36. package/lib/components/VList/index.d.mts +52 -66
  37. package/lib/components/VSelect/index.d.mts +102 -336
  38. package/lib/components/VSelectionControl/VSelectionControl.mjs +9 -1
  39. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  40. package/lib/components/VSnackbar/VSnackbar.css +1 -1
  41. package/lib/components/VSnackbar/VSnackbar.sass +1 -1
  42. package/lib/components/VStepper/VStepper.mjs +18 -4
  43. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  44. package/lib/components/VStepper/VStepperItem.css +3 -0
  45. package/lib/components/VStepper/VStepperItem.sass +3 -0
  46. package/lib/components/VStepper/index.d.mts +43 -9
  47. package/lib/components/VTabs/VTabs.mjs +2 -2
  48. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  49. package/lib/components/index.d.mts +379 -1083
  50. package/lib/composables/filter.mjs +1 -1
  51. package/lib/composables/filter.mjs.map +1 -1
  52. package/lib/entry-bundler.mjs +1 -1
  53. package/lib/framework.mjs +1 -1
  54. package/lib/index.d.mts +44 -44
  55. package/lib/labs/VStepperVertical/index.d.mts +43 -9
  56. package/lib/labs/VTreeview/VTreeview.mjs +1 -1
  57. package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
  58. package/lib/labs/VTreeview/VTreeviewChildren.mjs +30 -25
  59. package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
  60. package/lib/labs/VTreeview/VTreeviewItem.mjs +81 -10
  61. package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
  62. package/lib/labs/VTreeview/index.d.mts +110 -300
  63. package/lib/labs/components.d.mts +3402 -3558
  64. package/package.json +1 -1
@@ -37,7 +37,7 @@ export function filterItems(items, query, options) {
37
37
  const customMatches = {};
38
38
  const defaultMatches = {};
39
39
  let match = -1;
40
- if (query && !options?.noFilter) {
40
+ if ((query || customFiltersLength > 0) && !options?.noFilter) {
41
41
  if (typeof item === 'object') {
42
42
  const filterKeys = keys || Object.keys(transformed);
43
43
  for (const key of filterKeys) {
@@ -1 +1 @@
1
- {"version":3,"file":"filter.mjs","names":["computed","ref","unref","watchEffect","getPropertyFromItem","propsFactory","wrapInArray","defaultFilter","value","query","item","toString","toLocaleLowerCase","indexOf","makeFilterProps","customFilter","Function","customKeyFilter","Object","filterKeys","Array","String","filterMode","type","default","noFilter","Boolean","filterItems","items","options","array","filter","keys","customFiltersLength","length","loop","i","transformed","customMatches","defaultMatches","match","key","keyFilter","title","defaultMatchesLength","customMatchesLength","push","index","matches","useFilter","props","filteredItems","filteredMatches","Map","transformedItems","transform","map","_query","strQuery","results","originalItems","_filteredItems","_filteredMatches","forEach","_ref","set","getMatches","get"],"sources":["../../src/composables/filter.ts"],"sourcesContent":["/* eslint-disable max-statements */\n/* eslint-disable no-labels */\n\n// Utilities\nimport { computed, ref, unref, watchEffect } from 'vue'\nimport { getPropertyFromItem, propsFactory, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { MaybeRef } from '@/util'\n\n/**\n * - match without highlight\n * - single match (index), length already known\n * - single match (start, end)\n * - multiple matches (start, end), probably shouldn't overlap\n */\nexport type FilterMatch = boolean | number | [number, number] | [number, number][]\nexport type FilterFunction = (value: string, query: string, item?: InternalItem) => FilterMatch\nexport type FilterKeyFunctions = Record<string, FilterFunction>\nexport type FilterKeys = string | string[]\nexport type FilterMode = 'some' | 'every' | 'union' | 'intersection'\n\nexport interface FilterProps {\n customFilter?: FilterFunction\n customKeyFilter?: FilterKeyFunctions\n filterKeys?: FilterKeys\n filterMode?: FilterMode\n noFilter?: boolean\n}\n\nexport interface InternalItem<T = any> {\n value: any\n raw: T\n}\n\n// Composables\nexport const defaultFilter: FilterFunction = (value, query, item) => {\n if (value == null || query == null) return -1\n\n return value.toString().toLocaleLowerCase().indexOf(query.toString().toLocaleLowerCase())\n}\n\nexport const makeFilterProps = propsFactory({\n customFilter: Function as PropType<FilterFunction>,\n customKeyFilter: Object as PropType<FilterKeyFunctions>,\n filterKeys: [Array, String] as PropType<FilterKeys>,\n filterMode: {\n type: String as PropType<FilterMode>,\n default: 'intersection',\n },\n noFilter: Boolean,\n}, 'filter')\n\nexport function filterItems (\n items: readonly (readonly [item: InternalItem, transformed: {}])[] | readonly InternalItem[],\n query: string,\n options?: {\n customKeyFilter?: FilterKeyFunctions\n default?: FilterFunction\n filterKeys?: FilterKeys\n filterMode?: FilterMode\n noFilter?: boolean\n },\n) {\n const array: { index: number, matches: Record<string, FilterMatch> }[] = []\n // always ensure we fall back to a functioning filter\n const filter = options?.default ?? defaultFilter\n const keys = options?.filterKeys ? wrapInArray(options.filterKeys) : false\n const customFiltersLength = Object.keys(options?.customKeyFilter ?? {}).length\n\n if (!items?.length) return array\n\n loop:\n for (let i = 0; i < items.length; i++) {\n const [item, transformed = item] = wrapInArray(items[i]) as readonly [InternalItem, {}]\n const customMatches: Record<string, FilterMatch> = {}\n const defaultMatches: Record<string, FilterMatch> = {}\n let match: FilterMatch = -1\n\n if (query && !options?.noFilter) {\n if (typeof item === 'object') {\n const filterKeys = keys || Object.keys(transformed)\n\n for (const key of filterKeys) {\n const value = getPropertyFromItem(transformed, key)\n const keyFilter = options?.customKeyFilter?.[key]\n\n match = keyFilter\n ? keyFilter(value, query, item)\n : filter(value, query, item)\n\n if (match !== -1 && match !== false) {\n if (keyFilter) customMatches[key] = match\n else defaultMatches[key] = match\n } else if (options?.filterMode === 'every') {\n continue loop\n }\n }\n } else {\n match = filter(item, query, item)\n if (match !== -1 && match !== false) {\n defaultMatches.title = match\n }\n }\n\n const defaultMatchesLength = Object.keys(defaultMatches).length\n const customMatchesLength = Object.keys(customMatches).length\n\n if (!defaultMatchesLength && !customMatchesLength) continue\n\n if (\n options?.filterMode === 'union' &&\n customMatchesLength !== customFiltersLength &&\n !defaultMatchesLength\n ) continue\n\n if (\n options?.filterMode === 'intersection' &&\n (\n customMatchesLength !== customFiltersLength ||\n !defaultMatchesLength\n )\n ) continue\n }\n\n array.push({ index: i, matches: { ...defaultMatches, ...customMatches } })\n }\n\n return array\n}\n\nexport function useFilter <T extends InternalItem> (\n props: FilterProps,\n items: MaybeRef<T[]>,\n query: Ref<string | undefined> | (() => string | undefined),\n options?: {\n transform?: (item: T) => {}\n customKeyFilter?: MaybeRef<FilterKeyFunctions | undefined>\n }\n) {\n const filteredItems: Ref<T[]> = ref([])\n const filteredMatches: Ref<Map<unknown, Record<string, FilterMatch>>> = ref(new Map())\n const transformedItems = computed(() => (\n options?.transform\n ? unref(items).map(item => ([item, options.transform!(item)] as const))\n : unref(items)\n ))\n\n watchEffect(() => {\n const _query = typeof query === 'function' ? query() : unref(query)\n const strQuery = (\n typeof _query !== 'string' &&\n typeof _query !== 'number'\n ) ? '' : String(_query)\n\n const results = filterItems(\n transformedItems.value,\n strQuery,\n {\n customKeyFilter: {\n ...props.customKeyFilter,\n ...unref(options?.customKeyFilter),\n },\n default: props.customFilter,\n filterKeys: props.filterKeys,\n filterMode: props.filterMode,\n noFilter: props.noFilter,\n },\n )\n\n const originalItems = unref(items)\n\n const _filteredItems: typeof filteredItems['value'] = []\n const _filteredMatches: typeof filteredMatches['value'] = new Map()\n results.forEach(({ index, matches }) => {\n const item = originalItems[index]\n _filteredItems.push(item)\n _filteredMatches.set(item.value, matches)\n })\n filteredItems.value = _filteredItems\n filteredMatches.value = _filteredMatches\n })\n\n function getMatches (item: T) {\n return filteredMatches.value.get(item.value)\n }\n\n return { filteredItems, filteredMatches, getMatches }\n}\n"],"mappings":"AAAA;AACA;;AAEA;AACA,SAASA,QAAQ,EAAEC,GAAG,EAAEC,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAAA,SAC9CC,mBAAmB,EAAEC,YAAY,EAAEC,WAAW,6BAEvD;AAIA;AACA;AACA;AACA;AACA;AACA;AAoBA;AACA,OAAO,MAAMC,aAA6B,GAAGA,CAACC,KAAK,EAAEC,KAAK,EAAEC,IAAI,KAAK;EACnE,IAAIF,KAAK,IAAI,IAAI,IAAIC,KAAK,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC;EAE7C,OAAOD,K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QACxB,GAAGf,KAAK,CAAC2B,OAAO,EAAEZ,eAAe;MACnC,CAAC;MACDO,OAAO,EAAE0B,KAAK,CAACnC,YAAY;MAC3BI,UAAU,EAAE+B,KAAK,CAAC/B,UAAU;MAC5BG,UAAU,EAAE4B,KAAK,CAAC5B,UAAU;MAC5BG,QAAQ,EAAEyB,KAAK,CAACzB;IAClB,CACF,CAAC;IAED,MAAMmC,aAAa,GAAG1D,KAAK,CAAC0B,KAAK,CAAC;IAElC,MAAMiC,cAA6C,GAAG,EAAE;IACxD,MAAMC,gBAAiD,GAAG,IAAIT,GAAG,CAAC,CAAC;IACnEM,OAAO,CAACI,OAAO,CAACC,IAAA,IAAwB;MAAA,IAAvB;QAAEjB,KAAK;QAAEC;MAAQ,CAAC,GAAAgB,IAAA;MACjC,MAAMtD,IAAI,GAAGkD,aAAa,CAACb,KAAK,CAAC;MACjCc,cAAc,CAACf,IAAI,CAACpC,IAAI,CAAC;MACzBoD,gBAAgB,CAACG,GAAG,CAACvD,IAAI,CAACF,KAAK,EAAEwC,OAAO,CAAC;IAC3C,CAAC,CAAC;IACFG,aAAa,CAAC3C,KAAK,GAAGqD,cAAc;IACpCT,eAAe,CAAC5C,KAAK,GAAGsD,gBAAgB;EAC1C,CAAC,CAAC;EAEF,SAASI,UAAUA,CAAExD,IAAO,EAAE;IAC5B,OAAO0C,eAAe,CAAC5C,KAAK,CAAC2D,GAAG,CAACzD,IAAI,CAACF,KAAK,CAAC;EAC9C;EAEA,OAAO;IAAE2C,aAAa;IAAEC,eAAe;IAAEc;EAAW,CAAC;AACvD","ignoreList":[]}
1
+ {"version":3,"file":"filter.mjs","names":["computed","ref","unref","watchEffect","getPropertyFromItem","propsFactory","wrapInArray","defaultFilter","value","query","item","toString","toLocaleLowerCase","indexOf","makeFilterProps","customFilter","Function","customKeyFilter","Object","filterKeys","Array","String","filterMode","type","default","noFilter","Boolean","filterItems","items","options","array","filter","keys","customFiltersLength","length","loop","i","transformed","customMatches","defaultMatches","match","key","keyFilter","title","defaultMatchesLength","customMatchesLength","push","index","matches","useFilter","props","filteredItems","filteredMatches","Map","transformedItems","transform","map","_query","strQuery","results","originalItems","_filteredItems","_filteredMatches","forEach","_ref","set","getMatches","get"],"sources":["../../src/composables/filter.ts"],"sourcesContent":["/* eslint-disable max-statements */\n/* eslint-disable no-labels */\n\n// Utilities\nimport { computed, ref, unref, watchEffect } from 'vue'\nimport { getPropertyFromItem, propsFactory, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { MaybeRef } from '@/util'\n\n/**\n * - match without highlight\n * - single match (index), length already known\n * - single match (start, end)\n * - multiple matches (start, end), probably shouldn't overlap\n */\nexport type FilterMatch = boolean | number | [number, number] | [number, number][]\nexport type FilterFunction = (value: string, query: string, item?: InternalItem) => FilterMatch\nexport type FilterKeyFunctions = Record<string, FilterFunction>\nexport type FilterKeys = string | string[]\nexport type FilterMode = 'some' | 'every' | 'union' | 'intersection'\n\nexport interface FilterProps {\n customFilter?: FilterFunction\n customKeyFilter?: FilterKeyFunctions\n filterKeys?: FilterKeys\n filterMode?: FilterMode\n noFilter?: boolean\n}\n\nexport interface InternalItem<T = any> {\n value: any\n raw: T\n}\n\n// Composables\nexport const defaultFilter: FilterFunction = (value, query, item) => {\n if (value == null || query == null) return -1\n\n return value.toString().toLocaleLowerCase().indexOf(query.toString().toLocaleLowerCase())\n}\n\nexport const makeFilterProps = propsFactory({\n customFilter: Function as PropType<FilterFunction>,\n customKeyFilter: Object as PropType<FilterKeyFunctions>,\n filterKeys: [Array, String] as PropType<FilterKeys>,\n filterMode: {\n type: String as PropType<FilterMode>,\n default: 'intersection',\n },\n noFilter: Boolean,\n}, 'filter')\n\nexport function filterItems (\n items: readonly (readonly [item: InternalItem, transformed: {}])[] | readonly InternalItem[],\n query: string,\n options?: {\n customKeyFilter?: FilterKeyFunctions\n default?: FilterFunction\n filterKeys?: FilterKeys\n filterMode?: FilterMode\n noFilter?: boolean\n },\n) {\n const array: { index: number, matches: Record<string, FilterMatch> }[] = []\n // always ensure we fall back to a functioning filter\n const filter = options?.default ?? defaultFilter\n const keys = options?.filterKeys ? wrapInArray(options.filterKeys) : false\n const customFiltersLength = Object.keys(options?.customKeyFilter ?? {}).length\n\n if (!items?.length) return array\n\n loop:\n for (let i = 0; i < items.length; i++) {\n const [item, transformed = item] = wrapInArray(items[i]) as readonly [InternalItem, {}]\n const customMatches: Record<string, FilterMatch> = {}\n const defaultMatches: Record<string, FilterMatch> = {}\n let match: FilterMatch = -1\n\n if ((query || customFiltersLength > 0) && !options?.noFilter) {\n if (typeof item === 'object') {\n const filterKeys = keys || Object.keys(transformed)\n\n for (const key of filterKeys) {\n const value = getPropertyFromItem(transformed, key)\n const keyFilter = options?.customKeyFilter?.[key]\n\n match = keyFilter\n ? keyFilter(value, query, item)\n : filter(value, query, item)\n\n if (match !== -1 && match !== false) {\n if (keyFilter) customMatches[key] = match\n else defaultMatches[key] = match\n } else if (options?.filterMode === 'every') {\n continue loop\n }\n }\n } else {\n match = filter(item, query, item)\n if (match !== -1 && match !== false) {\n defaultMatches.title = match\n }\n }\n\n const defaultMatchesLength = Object.keys(defaultMatches).length\n const customMatchesLength = Object.keys(customMatches).length\n\n if (!defaultMatchesLength && !customMatchesLength) continue\n\n if (\n options?.filterMode === 'union' &&\n customMatchesLength !== customFiltersLength &&\n !defaultMatchesLength\n ) continue\n\n if (\n options?.filterMode === 'intersection' &&\n (\n customMatchesLength !== customFiltersLength ||\n !defaultMatchesLength\n )\n ) continue\n }\n\n array.push({ index: i, matches: { ...defaultMatches, ...customMatches } })\n }\n\n return array\n}\n\nexport function useFilter <T extends InternalItem> (\n props: FilterProps,\n items: MaybeRef<T[]>,\n query: Ref<string | undefined> | (() => string | undefined),\n options?: {\n transform?: (item: T) => {}\n customKeyFilter?: MaybeRef<FilterKeyFunctions | undefined>\n }\n) {\n const filteredItems: Ref<T[]> = ref([])\n const filteredMatches: Ref<Map<unknown, Record<string, FilterMatch>>> = ref(new Map())\n const transformedItems = computed(() => (\n options?.transform\n ? unref(items).map(item => ([item, options.transform!(item)] as const))\n : unref(items)\n ))\n\n watchEffect(() => {\n const _query = typeof query === 'function' ? query() : unref(query)\n const strQuery = (\n typeof _query !== 'string' &&\n typeof _query !== 'number'\n ) ? '' : String(_query)\n\n const results = filterItems(\n transformedItems.value,\n strQuery,\n {\n customKeyFilter: {\n ...props.customKeyFilter,\n ...unref(options?.customKeyFilter),\n },\n default: props.customFilter,\n filterKeys: props.filterKeys,\n filterMode: props.filterMode,\n noFilter: props.noFilter,\n },\n )\n\n const originalItems = unref(items)\n\n const _filteredItems: typeof filteredItems['value'] = []\n const _filteredMatches: typeof filteredMatches['value'] = new Map()\n results.forEach(({ index, matches }) => {\n const item = originalItems[index]\n _filteredItems.push(item)\n _filteredMatches.set(item.value, matches)\n })\n filteredItems.value = _filteredItems\n filteredMatches.value = _filteredMatches\n })\n\n function getMatches (item: T) {\n return filteredMatches.value.get(item.value)\n }\n\n return { filteredItems, filteredMatches, getMatches }\n}\n"],"mappings":"AAAA;AACA;;AAEA;AACA,SAASA,QAAQ,EAAEC,GAAG,EAAEC,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAAA,SAC9CC,mBAAmB,EAAEC,YAAY,EAAEC,WAAW,6BAEvD;AAIA;AACA;AACA;AACA;AACA;AACA;AAoBA;AACA,OAAO,MAAMC,aAA6B,GAAGA,CAACC,KAAK,EAAEC,KAAK,EAAEC,IAAI,KAAK;EACnE,IAAIF,KAAK,IAAI,IAAI,IAAIC,KAAK,IAAI,IAAI,EAAE,OAAO,CAAC,CAAC;EAE7C,OAAOD,KAAK,CAACG,QAAQ,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC,CAACC,OAAO,CAACJ,KAAK,CAACE,QAAQ,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC,CAAC;AAC3F,CAAC;AAED,OAAO,MAAME,eAAe,GAAGT,YAAY,CAAC;EAC1CU,YAAY,EAAEC,QAAoC;EAClD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,QAAQ,EAAEyB,KAAK,CAACzB;IAClB,CACF,CAAC;IAED,MAAMmC,aAAa,GAAG1D,KAAK,CAAC0B,KAAK,CAAC;IAElC,MAAMiC,cAA6C,GAAG,EAAE;IACxD,MAAMC,gBAAiD,GAAG,IAAIT,GAAG,CAAC,CAAC;IACnEM,OAAO,CAACI,OAAO,CAACC,IAAA,IAAwB;MAAA,IAAvB;QAAEjB,KAAK;QAAEC;MAAQ,CAAC,GAAAgB,IAAA;MACjC,MAAMtD,IAAI,GAAGkD,aAAa,CAACb,KAAK,CAAC;MACjCc,cAAc,CAACf,IAAI,CAACpC,IAAI,CAAC;MACzBoD,gBAAgB,CAACG,GAAG,CAACvD,IAAI,CAACF,KAAK,EAAEwC,OAAO,CAAC;IAC3C,CAAC,CAAC;IACFG,aAAa,CAAC3C,KAAK,GAAGqD,cAAc;IACpCT,eAAe,CAAC5C,KAAK,GAAGsD,gBAAgB;EAC1C,CAAC,CAAC;EAEF,SAASI,UAAUA,CAAExD,IAAO,EAAE;IAC5B,OAAO0C,eAAe,CAAC5C,KAAK,CAAC2D,GAAG,CAACzD,IAAI,CAACF,KAAK,CAAC;EAC9C;EAEA,OAAO;IAAE2C,aAAa;IAAEC,eAAe;IAAEc;EAAW,CAAC;AACvD","ignoreList":[]}
@@ -16,7 +16,7 @@ export const createVuetify = function () {
16
16
  ...options
17
17
  });
18
18
  };
19
- export const version = "3.6.7-master.2024-05-28";
19
+ export const version = "3.6.8-master.2024-05-30";
20
20
  createVuetify.version = version;
21
21
  export { blueprints, components, directives };
22
22
  export * from "./composables/index.mjs";
package/lib/framework.mjs CHANGED
@@ -97,7 +97,7 @@ export function createVuetify() {
97
97
  goTo
98
98
  };
99
99
  }
100
- export const version = "3.6.7-master.2024-05-28";
100
+ export const version = "3.6.8-master.2024-05-30";
101
101
  createVuetify.version = version;
102
102
 
103
103
  // Vue's inject() can only be used in setup
package/lib/index.d.mts CHANGED
@@ -493,42 +493,42 @@ declare module '@vue/runtime-core' {
493
493
  }
494
494
 
495
495
  export interface GlobalComponents {
496
- VAlert: typeof import('vuetify/components')['VAlert']
497
- VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
496
+ VApp: typeof import('vuetify/components')['VApp']
498
497
  VAppBar: typeof import('vuetify/components')['VAppBar']
499
498
  VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
500
499
  VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
501
- VApp: typeof import('vuetify/components')['VApp']
502
- VBadge: typeof import('vuetify/components')['VBadge']
503
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
500
+ VAlert: typeof import('vuetify/components')['VAlert']
501
+ VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
504
502
  VAvatar: typeof import('vuetify/components')['VAvatar']
503
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
504
+ VBadge: typeof import('vuetify/components')['VBadge']
505
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
506
+ VBtn: typeof import('vuetify/components')['VBtn']
505
507
  VBanner: typeof import('vuetify/components')['VBanner']
506
508
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
507
509
  VBannerText: typeof import('vuetify/components')['VBannerText']
508
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
509
510
  VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
510
511
  VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
511
- VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
512
- VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
513
- VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
514
- VBtn: typeof import('vuetify/components')['VBtn']
515
512
  VCard: typeof import('vuetify/components')['VCard']
516
513
  VCardActions: typeof import('vuetify/components')['VCardActions']
517
514
  VCardItem: typeof import('vuetify/components')['VCardItem']
518
515
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
519
516
  VCardText: typeof import('vuetify/components')['VCardText']
520
517
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
518
+ VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
519
+ VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
520
+ VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
521
521
  VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
522
522
  VCheckbox: typeof import('vuetify/components')['VCheckbox']
523
523
  VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
524
+ VChip: typeof import('vuetify/components')['VChip']
525
+ VColorPicker: typeof import('vuetify/components')['VColorPicker']
526
+ VCombobox: typeof import('vuetify/components')['VCombobox']
524
527
  VCarousel: typeof import('vuetify/components')['VCarousel']
525
528
  VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
526
- VChip: typeof import('vuetify/components')['VChip']
527
529
  VChipGroup: typeof import('vuetify/components')['VChipGroup']
528
- VCombobox: typeof import('vuetify/components')['VCombobox']
529
- VCode: typeof import('vuetify/components')['VCode']
530
- VColorPicker: typeof import('vuetify/components')['VColorPicker']
531
530
  VCounter: typeof import('vuetify/components')['VCounter']
531
+ VCode: typeof import('vuetify/components')['VCode']
532
532
  VDataTable: typeof import('vuetify/components')['VDataTable']
533
533
  VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
534
534
  VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
@@ -536,6 +536,7 @@ declare module '@vue/runtime-core' {
536
536
  VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
537
537
  VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
538
538
  VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
539
+ VDialog: typeof import('vuetify/components')['VDialog']
539
540
  VDatePicker: typeof import('vuetify/components')['VDatePicker']
540
541
  VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
541
542
  VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
@@ -543,28 +544,29 @@ declare module '@vue/runtime-core' {
543
544
  VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
544
545
  VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
545
546
  VDivider: typeof import('vuetify/components')['VDivider']
546
- VDialog: typeof import('vuetify/components')['VDialog']
547
- VFooter: typeof import('vuetify/components')['VFooter']
548
- VEmptyState: typeof import('vuetify/components')['VEmptyState']
549
547
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
550
548
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
551
549
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
552
550
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
553
- VFileInput: typeof import('vuetify/components')['VFileInput']
551
+ VEmptyState: typeof import('vuetify/components')['VEmptyState']
552
+ VFab: typeof import('vuetify/components')['VFab']
554
553
  VField: typeof import('vuetify/components')['VField']
555
554
  VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
556
- VFab: typeof import('vuetify/components')['VFab']
555
+ VFileInput: typeof import('vuetify/components')['VFileInput']
556
+ VFooter: typeof import('vuetify/components')['VFooter']
557
557
  VImg: typeof import('vuetify/components')['VImg']
558
- VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
558
+ VKbd: typeof import('vuetify/components')['VKbd']
559
559
  VIcon: typeof import('vuetify/components')['VIcon']
560
560
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
561
561
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
562
562
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
563
563
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
564
+ VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
564
565
  VInput: typeof import('vuetify/components')['VInput']
565
566
  VItemGroup: typeof import('vuetify/components')['VItemGroup']
566
567
  VItem: typeof import('vuetify/components')['VItem']
567
568
  VLabel: typeof import('vuetify/components')['VLabel']
569
+ VMain: typeof import('vuetify/components')['VMain']
568
570
  VList: typeof import('vuetify/components')['VList']
569
571
  VListGroup: typeof import('vuetify/components')['VListGroup']
570
572
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -574,44 +576,42 @@ declare module '@vue/runtime-core' {
574
576
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
575
577
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
576
578
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
577
- VKbd: typeof import('vuetify/components')['VKbd']
578
- VMessages: typeof import('vuetify/components')['VMessages']
579
- VMain: typeof import('vuetify/components')['VMain']
579
+ VMenu: typeof import('vuetify/components')['VMenu']
580
580
  VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
581
+ VMessages: typeof import('vuetify/components')['VMessages']
581
582
  VOtpInput: typeof import('vuetify/components')['VOtpInput']
582
- VOverlay: typeof import('vuetify/components')['VOverlay']
583
- VMenu: typeof import('vuetify/components')['VMenu']
584
- VPagination: typeof import('vuetify/components')['VPagination']
585
583
  VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
586
584
  VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
585
+ VPagination: typeof import('vuetify/components')['VPagination']
586
+ VOverlay: typeof import('vuetify/components')['VOverlay']
587
587
  VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
588
588
  VRating: typeof import('vuetify/components')['VRating']
589
589
  VSelect: typeof import('vuetify/components')['VSelect']
590
590
  VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
591
- VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
592
591
  VSheet: typeof import('vuetify/components')['VSheet']
593
- VSlider: typeof import('vuetify/components')['VSlider']
592
+ VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
594
593
  VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
594
+ VSlider: typeof import('vuetify/components')['VSlider']
595
+ VSnackbar: typeof import('vuetify/components')['VSnackbar']
595
596
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
596
597
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
597
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
598
598
  VSwitch: typeof import('vuetify/components')['VSwitch']
599
- VSystemBar: typeof import('vuetify/components')['VSystemBar']
600
599
  VStepper: typeof import('vuetify/components')['VStepper']
601
600
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
602
601
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
603
602
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
604
603
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
605
604
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
605
+ VSystemBar: typeof import('vuetify/components')['VSystemBar']
606
+ VTextField: typeof import('vuetify/components')['VTextField']
606
607
  VTab: typeof import('vuetify/components')['VTab']
607
608
  VTabs: typeof import('vuetify/components')['VTabs']
608
609
  VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
609
610
  VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
610
- VTable: typeof import('vuetify/components')['VTable']
611
- VTextarea: typeof import('vuetify/components')['VTextarea']
612
611
  VTimeline: typeof import('vuetify/components')['VTimeline']
613
612
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
614
- VTextField: typeof import('vuetify/components')['VTextField']
613
+ VTable: typeof import('vuetify/components')['VTable']
614
+ VTextarea: typeof import('vuetify/components')['VTextarea']
615
615
  VTooltip: typeof import('vuetify/components')['VTooltip']
616
616
  VWindow: typeof import('vuetify/components')['VWindow']
617
617
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
@@ -622,11 +622,11 @@ declare module '@vue/runtime-core' {
622
622
  VDataIterator: typeof import('vuetify/components')['VDataIterator']
623
623
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
624
624
  VForm: typeof import('vuetify/components')['VForm']
625
- VHover: typeof import('vuetify/components')['VHover']
626
625
  VContainer: typeof import('vuetify/components')['VContainer']
627
626
  VCol: typeof import('vuetify/components')['VCol']
628
627
  VRow: typeof import('vuetify/components')['VRow']
629
628
  VSpacer: typeof import('vuetify/components')['VSpacer']
629
+ VHover: typeof import('vuetify/components')['VHover']
630
630
  VLayout: typeof import('vuetify/components')['VLayout']
631
631
  VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
632
632
  VLazy: typeof import('vuetify/components')['VLazy']
@@ -634,13 +634,13 @@ declare module '@vue/runtime-core' {
634
634
  VNoSsr: typeof import('vuetify/components')['VNoSsr']
635
635
  VParallax: typeof import('vuetify/components')['VParallax']
636
636
  VRadio: typeof import('vuetify/components')['VRadio']
637
- VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
638
637
  VResponsive: typeof import('vuetify/components')['VResponsive']
639
- VSparkline: typeof import('vuetify/components')['VSparkline']
638
+ VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
640
639
  VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
640
+ VSparkline: typeof import('vuetify/components')['VSparkline']
641
+ VValidation: typeof import('vuetify/components')['VValidation']
641
642
  VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
642
643
  VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
643
- VValidation: typeof import('vuetify/components')['VValidation']
644
644
  VFabTransition: typeof import('vuetify/components')['VFabTransition']
645
645
  VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
646
646
  VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
@@ -657,26 +657,26 @@ declare module '@vue/runtime-core' {
657
657
  VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
658
658
  VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
659
659
  VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
660
+ VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
660
661
  VCalendar: typeof import('vuetify/labs/components')['VCalendar']
661
662
  VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
662
663
  VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
663
664
  VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
664
665
  VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
665
666
  VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
667
+ VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
668
+ VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
669
+ VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
670
+ VPicker: typeof import('vuetify/labs/components')['VPicker']
671
+ VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
666
672
  VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
667
673
  VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
668
674
  VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
669
- VPicker: typeof import('vuetify/labs/components')['VPicker']
670
- VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
671
675
  VTreeview: typeof import('vuetify/labs/components')['VTreeview']
672
676
  VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
673
677
  VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
674
- VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
675
- VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
676
- VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
677
- VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
678
678
  VDateInput: typeof import('vuetify/labs/components')['VDateInput']
679
- VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
680
679
  VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
680
+ VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
681
681
  }
682
682
  }
@@ -5,6 +5,10 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
5
5
  filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
6
6
  }
7
7
 
8
+ declare const breakpoints: readonly ["sm", "md", "lg", "xl", "xxl"];
9
+ type Breakpoint = typeof breakpoints[number];
10
+ type DisplayBreakpoint = 'xs' | Breakpoint;
11
+
8
12
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
9
13
  declare const IconValue: PropType<IconValue>;
10
14
 
@@ -30,7 +34,7 @@ declare const VStepperVertical: {
30
34
  style: vue.StyleValue;
31
35
  disabled: boolean;
32
36
  tag: string;
33
- mobile: boolean;
37
+ mobile: boolean | null;
34
38
  readonly: boolean;
35
39
  variant: NonNullable<"default" | "inset" | "accordion" | "popout">;
36
40
  items: readonly StepperItem[];
@@ -59,12 +63,16 @@ declare const VStepperVertical: {
59
63
  value?: any;
60
64
  theme?: string | undefined;
61
65
  color?: string | undefined;
66
+ mobileBreakpoint?: number | DisplayBreakpoint | undefined;
62
67
  modelValue?: any;
63
68
  rounded?: string | number | boolean | undefined;
64
69
  elevation?: string | number | undefined;
65
70
  max?: number | undefined;
66
71
  selectedClass?: string | undefined;
67
72
  bgColor?: string | undefined;
73
+ completeIcon?: string | undefined;
74
+ editIcon?: string | undefined;
75
+ errorIcon?: string | undefined;
68
76
  } & {
69
77
  $children?: vue.VNodeChild | {
70
78
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -118,7 +126,7 @@ declare const VStepperVertical: {
118
126
  style: vue.StyleValue;
119
127
  disabled: boolean;
120
128
  tag: string;
121
- mobile: boolean;
129
+ mobile: boolean | null;
122
130
  readonly: boolean;
123
131
  variant: NonNullable<"default" | "inset" | "accordion" | "popout">;
124
132
  items: readonly StepperItem[];
@@ -147,12 +155,16 @@ declare const VStepperVertical: {
147
155
  value?: any;
148
156
  theme?: string | undefined;
149
157
  color?: string | undefined;
158
+ mobileBreakpoint?: number | DisplayBreakpoint | undefined;
150
159
  modelValue?: any;
151
160
  rounded?: string | number | boolean | undefined;
152
161
  elevation?: string | number | undefined;
153
162
  max?: number | undefined;
154
163
  selectedClass?: string | undefined;
155
164
  bgColor?: string | undefined;
165
+ completeIcon?: string | undefined;
166
+ editIcon?: string | undefined;
167
+ errorIcon?: string | undefined;
156
168
  } & {
157
169
  $children?: vue.VNodeChild | {
158
170
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -204,7 +216,7 @@ declare const VStepperVertical: {
204
216
  style: vue.StyleValue;
205
217
  disabled: boolean;
206
218
  tag: string;
207
- mobile: boolean;
219
+ mobile: boolean | null;
208
220
  readonly: boolean;
209
221
  modelValue: any;
210
222
  rounded: string | number | boolean;
@@ -273,7 +285,7 @@ declare const VStepperVertical: {
273
285
  style: vue.StyleValue;
274
286
  disabled: boolean;
275
287
  tag: string;
276
- mobile: boolean;
288
+ mobile: boolean | null;
277
289
  readonly: boolean;
278
290
  variant: NonNullable<"default" | "inset" | "accordion" | "popout">;
279
291
  items: readonly StepperItem[];
@@ -302,12 +314,16 @@ declare const VStepperVertical: {
302
314
  value?: any;
303
315
  theme?: string | undefined;
304
316
  color?: string | undefined;
317
+ mobileBreakpoint?: number | DisplayBreakpoint | undefined;
305
318
  modelValue?: any;
306
319
  rounded?: string | number | boolean | undefined;
307
320
  elevation?: string | number | undefined;
308
321
  max?: number | undefined;
309
322
  selectedClass?: string | undefined;
310
323
  bgColor?: string | undefined;
324
+ completeIcon?: string | undefined;
325
+ editIcon?: string | undefined;
326
+ errorIcon?: string | undefined;
311
327
  } & {
312
328
  $children?: vue.VNodeChild | {
313
329
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -359,7 +375,7 @@ declare const VStepperVertical: {
359
375
  style: vue.StyleValue;
360
376
  disabled: boolean;
361
377
  tag: string;
362
- mobile: boolean;
378
+ mobile: boolean | null;
363
379
  readonly: boolean;
364
380
  modelValue: any;
365
381
  rounded: string | number | boolean;
@@ -392,7 +408,7 @@ declare const VStepperVertical: {
392
408
  style: vue.StyleValue;
393
409
  disabled: boolean;
394
410
  tag: string;
395
- mobile: boolean;
411
+ mobile: boolean | null;
396
412
  readonly: boolean;
397
413
  variant: NonNullable<"default" | "inset" | "accordion" | "popout">;
398
414
  items: readonly StepperItem[];
@@ -421,12 +437,16 @@ declare const VStepperVertical: {
421
437
  value?: any;
422
438
  theme?: string | undefined;
423
439
  color?: string | undefined;
440
+ mobileBreakpoint?: number | DisplayBreakpoint | undefined;
424
441
  modelValue?: any;
425
442
  rounded?: string | number | boolean | undefined;
426
443
  elevation?: string | number | undefined;
427
444
  max?: number | undefined;
428
445
  selectedClass?: string | undefined;
429
446
  bgColor?: string | undefined;
447
+ completeIcon?: string | undefined;
448
+ editIcon?: string | undefined;
449
+ errorIcon?: string | undefined;
430
450
  } & {
431
451
  $children?: vue.VNodeChild | {
432
452
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -480,7 +500,7 @@ declare const VStepperVertical: {
480
500
  style: vue.StyleValue;
481
501
  disabled: boolean;
482
502
  tag: string;
483
- mobile: boolean;
503
+ mobile: boolean | null;
484
504
  readonly: boolean;
485
505
  modelValue: any;
486
506
  rounded: string | number | boolean;
@@ -601,8 +621,16 @@ declare const VStepperVertical: {
601
621
  };
602
622
  hideActions: BooleanConstructor;
603
623
  focusable: BooleanConstructor;
624
+ mobile: {
625
+ type: vue.PropType<boolean | null>;
626
+ default: boolean;
627
+ };
628
+ mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
604
629
  altLabels: BooleanConstructor;
630
+ completeIcon: StringConstructor;
631
+ editIcon: StringConstructor;
605
632
  editable: BooleanConstructor;
633
+ errorIcon: StringConstructor;
606
634
  items: {
607
635
  type: vue.PropType<readonly StepperItem[]>;
608
636
  default: () => never[];
@@ -615,7 +643,6 @@ declare const VStepperVertical: {
615
643
  type: StringConstructor;
616
644
  default: string;
617
645
  };
618
- mobile: BooleanConstructor;
619
646
  nonLinear: BooleanConstructor;
620
647
  prevText: {
621
648
  type: StringConstructor;
@@ -689,8 +716,16 @@ declare const VStepperVertical: {
689
716
  };
690
717
  hideActions: BooleanConstructor;
691
718
  focusable: BooleanConstructor;
719
+ mobile: {
720
+ type: vue.PropType<boolean | null>;
721
+ default: boolean;
722
+ };
723
+ mobileBreakpoint: vue.PropType<number | DisplayBreakpoint>;
692
724
  altLabels: BooleanConstructor;
725
+ completeIcon: StringConstructor;
726
+ editIcon: StringConstructor;
693
727
  editable: BooleanConstructor;
728
+ errorIcon: StringConstructor;
694
729
  items: {
695
730
  type: vue.PropType<readonly StepperItem[]>;
696
731
  default: () => never[];
@@ -703,7 +738,6 @@ declare const VStepperVertical: {
703
738
  type: StringConstructor;
704
739
  default: string;
705
740
  };
706
- mobile: BooleanConstructor;
707
741
  nonLinear: BooleanConstructor;
708
742
  prevText: {
709
743
  type: StringConstructor;
@@ -26,7 +26,7 @@ export const makeVTreeviewProps = propsFactory({
26
26
  ...omit(makeVListProps({
27
27
  collapseIcon: '$treeviewCollapse',
28
28
  expandIcon: '$treeviewExpand',
29
- selectStrategy: 'independent',
29
+ selectStrategy: 'classic',
30
30
  openStrategy: 'multiple',
31
31
  slim: true
32
32
  }), ['nav'])
@@ -1 +1 @@
1
- {"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","watch","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","selectStrategy","openStrategy","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","opened","activated","selected","vListRef","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","immediate","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default","open"],"sources":["../../../src/labs/VTreeview/VTreeview.tsx"],"sourcesContent":["// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from './VTreeviewChildren'\nimport { makeVListProps, useListItems, VList } from '@/components/VList/VList'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, provide, ref, toRef, watch } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListChildrenSlots } from '@/components/VList/VListChildren'\nimport type { ListItem } from '@/composables/list-items'\nimport type { GenericProps } from '@/util'\n\nfunction flatten (items: ListItem[], flat: ListItem[] = []) {\n for (const item of items) {\n flat.push(item)\n if (item.children) flatten(item.children, flat)\n }\n return flat\n}\n\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n selectStrategy: 'independent' as const,\n openStrategy: 'multiple' as const,\n slim: true,\n }), ['nav']),\n}, 'VTreeview')\n\nexport const VTreeview = genericComponent<new <T>(\n props: {\n items?: T[]\n },\n slots: VListChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeview',\n\n props: makeVTreeviewProps(),\n\n emits: {\n 'update:opened': (val: unknown) => true,\n 'update:activated': (val: unknown) => true,\n 'update:selected': (val: unknown) => true,\n 'click:open': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n 'click:select': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n },\n\n setup (props, { slots }) {\n const { items } = useListItems(props)\n const activeColor = toRef(props, 'activeColor')\n const baseColor = toRef(props, 'baseColor')\n const color = toRef(props, 'color')\n const opened = useProxiedModel(props, 'opened')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\n const flatItems = computed(() => flatten(items.value))\n const search = toRef(props, 'search')\n const { filteredItems } = useFilter(props, flatItems, search)\n const visibleIds = computed(() => {\n if (!search.value) {\n return null\n }\n return new Set(filteredItems.value.flatMap(item => {\n return [...getPath(item.props.value), ...getChildren(item.props.value)]\n }))\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = id\n while (parent != null) {\n path.unshift(parent)\n parent = vListRef.value?.parents.get(parent)\n }\n return path\n }\n\n function getChildren (id: unknown) {\n const arr: unknown[] = []\n const queue = ((vListRef.value?.children.get(id) ?? []).slice())\n while (queue.length) {\n const child = queue.shift()\n if (!child) continue\n arr.push(child)\n queue.push(...((vListRef.value?.children.get(child) ?? []).slice()))\n }\n return arr\n }\n\n watch(() => props.openAll, val => {\n opened.value = val ? openAll(items.value) : []\n }, { immediate: true })\n\n function openAll (item: any) {\n let ids: number[] = []\n\n for (const i of item) {\n if (!i.children) continue\n\n ids.push(i.value)\n\n if (i.children) {\n ids = ids.concat(openAll(i.children))\n }\n }\n\n return ids\n }\n\n provide(VTreeviewSymbol, { visibleIds })\n\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon'),\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => {\n const listProps = VList.filterProps(props)\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n props.class,\n ]}\n style={ props.style }\n v-model:opened={ opened.value }\n v-model:activated={ activated.value }\n v-model:selected={ selected.value }\n >\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return {\n open,\n }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,4CAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAKxB,SAASC,OAAOA,CAAEC,KAAiB,EAAyB;EAAA,IAAvBC,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACxD,KAAK,MAAMG,IAAI,IAAIL,KAAK,EAAE;IACxBC,IAAI,CAACK,IAAI,CAACD,IAAI,CAAC;IACf,IAAIA,IAAI,CAACE,QAAQ,EAAER,OAAO,CAACM,IAAI,CAACE,QAAQ,EAAEN,IAAI,CAAC;EACjD;EACA,OAAOA,IAAI;AACb;AAEA,OAAO,MAAMO,kBAAkB,GAAGZ,YAAY,CAAC;EAC7Ca,OAAO,EAAEC,OAAO;EAChBC,MAAM,EAAEC,MAAM;EAEd,GAAG1B,eAAe,CAAC;IAAE2B,UAAU,EAAE,CAAC,OAAO;EAAE,CAAC,CAAC;EAC7C,GAAGjC,0BAA0B,CAAC,CAAC;EAC/B,GAAGe,IAAI,CAACb,cAAc,CAAC;IACrBgC,YAAY,EAAE,mBAAmB;IACjCC,UAAU,EAAE,iBAAiB;I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E,KAAK,CAAC6B,KAAK,EAAE,UAAU,CAAC;QAClCyC,KAAK,EAAEtE,KAAK,CAAC6B,KAAK,EAAE,OAAO,CAAC;QAC5B0C,OAAO,EAAEvE,KAAK,CAAC6B,KAAK,EAAE,SAAS;MACjC;IACF,CAAC,CAAC;IAEFxB,SAAS,CAAC,MAAM;MACd,MAAMmE,SAAS,GAAGhF,KAAK,CAACiF,WAAW,CAAC5C,KAAK,CAAC;MAC1C,MAAM6C,qBAAqB,GAAGrF,iBAAiB,CAACoF,WAAW,CAAC5C,KAAK,CAAC;MAElE,OAAA8C,YAAA,CAAAnF,KAAA,EAAAoF,WAAA;QAAA,OAEUlC;MAAQ,GACT8B,SAAS;QAAA,SACP,CACL,YAAY,EACZ3C,KAAK,CAACgD,KAAK,CACZ;QAAA,SACOhD,KAAK,CAACiD,KAAK;QAAA,UACFvC,MAAM,CAACP,KAAK;QAAA,mBAAA+C,MAAA,IAAZxC,MAAM,CAACP,KAAK,GAAA+C,MAAA;QAAA,aACTvC,SAAS,CAACR,KAAK;QAAA,sBAAA+C,MAAA,IAAfvC,SAAS,CAACR,KAAK,GAAA+C,MAAA;QAAA,YAChBtC,QAAQ,CAACT,KAAK;QAAA,qBAAA+C,MAAA,IAAdtC,QAAQ,CAACT,KAAK,GAAA+C;MAAA;QAAAC,OAAA,EAAAA,CAAA,MAAAL,YAAA,CAAAtF,iBAAA,EAAAuF,WAAA,CAG1BF,qBAAqB;UAAA,SAClBlE,KAAK,CAACwB;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO;MACL8C;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","watch","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","selectStrategy","openStrategy","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","opened","activated","selected","vListRef","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","immediate","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default","open"],"sources":["../../../src/labs/VTreeview/VTreeview.tsx"],"sourcesContent":["// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from './VTreeviewChildren'\nimport { makeVListProps, useListItems, VList } from '@/components/VList/VList'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, provide, ref, toRef, watch } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListChildrenSlots } from '@/components/VList/VListChildren'\nimport type { ListItem } from '@/composables/list-items'\nimport type { GenericProps } from '@/util'\n\nfunction flatten (items: ListItem[], flat: ListItem[] = []) {\n for (const item of items) {\n flat.push(item)\n if (item.children) flatten(item.children, flat)\n }\n return flat\n}\n\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n selectStrategy: 'classic' as const,\n openStrategy: 'multiple' as const,\n slim: true,\n }), ['nav']),\n}, 'VTreeview')\n\nexport const VTreeview = genericComponent<new <T>(\n props: {\n items?: T[]\n },\n slots: VListChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeview',\n\n props: makeVTreeviewProps(),\n\n emits: {\n 'update:opened': (val: unknown) => true,\n 'update:activated': (val: unknown) => true,\n 'update:selected': (val: unknown) => true,\n 'click:open': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n 'click:select': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n },\n\n setup (props, { slots }) {\n const { items } = useListItems(props)\n const activeColor = toRef(props, 'activeColor')\n const baseColor = toRef(props, 'baseColor')\n const color = toRef(props, 'color')\n const opened = useProxiedModel(props, 'opened')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\n const flatItems = computed(() => flatten(items.value))\n const search = toRef(props, 'search')\n const { filteredItems } = useFilter(props, flatItems, search)\n const visibleIds = computed(() => {\n if (!search.value) {\n return null\n }\n return new Set(filteredItems.value.flatMap(item => {\n return [...getPath(item.props.value), ...getChildren(item.props.value)]\n }))\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = id\n while (parent != null) {\n path.unshift(parent)\n parent = vListRef.value?.parents.get(parent)\n }\n return path\n }\n\n function getChildren (id: unknown) {\n const arr: unknown[] = []\n const queue = ((vListRef.value?.children.get(id) ?? []).slice())\n while (queue.length) {\n const child = queue.shift()\n if (!child) continue\n arr.push(child)\n queue.push(...((vListRef.value?.children.get(child) ?? []).slice()))\n }\n return arr\n }\n\n watch(() => props.openAll, val => {\n opened.value = val ? openAll(items.value) : []\n }, { immediate: true })\n\n function openAll (item: any) {\n let ids: number[] = []\n\n for (const i of item) {\n if (!i.children) continue\n\n ids.push(i.value)\n\n if (i.children) {\n ids = ids.concat(openAll(i.children))\n }\n }\n\n return ids\n }\n\n provide(VTreeviewSymbol, { visibleIds })\n\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon'),\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => {\n const listProps = VList.filterProps(props)\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n props.class,\n ]}\n style={ props.style }\n v-model:opened={ opened.value }\n v-model:activated={ activated.value }\n v-model:selected={ selected.value }\n >\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return {\n open,\n }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,4CAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAKxB,SAASC,OAAOA,CAAEC,KAAiB,EAAyB;EAAA,IAAvBC,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACxD,KAAK,MAAMG,IAAI,IAAIL,KAAK,EAAE;IACxBC,IAAI,CAACK,IAAI,CAACD,IAAI,CAAC;IACf,IAAIA,IAAI,CAACE,QAAQ,EAAER,OAAO,CAACM,IAAI,CAACE,QAAQ,EAAEN,IAAI,CAAC;EACjD;EACA,OAAOA,IAAI;AACb;AAEA,OAAO,MAAMO,kBAAkB,GAAGZ,YAAY,CAAC;EAC7Ca,OAAO,EAAEC,OAAO;EAChBC,MA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