@vuetify/nightly 3.7.15-dev.2025-03-06 → 3.7.15-dev.2025-03-08

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 (43) hide show
  1. package/CHANGELOG.md +10 -3
  2. package/dist/json/attributes.json +2892 -2852
  3. package/dist/json/importMap-labs.json +20 -20
  4. package/dist/json/importMap.json +162 -162
  5. package/dist/json/tags.json +10 -0
  6. package/dist/json/web-types.json +5263 -5172
  7. package/dist/vuetify-labs.css +2710 -2709
  8. package/dist/vuetify-labs.d.ts +238 -182
  9. package/dist/vuetify-labs.esm.js +849 -838
  10. package/dist/vuetify-labs.esm.js.map +1 -1
  11. package/dist/vuetify-labs.js +849 -838
  12. package/dist/vuetify-labs.min.css +2 -2
  13. package/dist/vuetify.css +4710 -4709
  14. package/dist/vuetify.d.ts +218 -162
  15. package/dist/vuetify.esm.js +849 -838
  16. package/dist/vuetify.esm.js.map +1 -1
  17. package/dist/vuetify.js +849 -838
  18. package/dist/vuetify.js.map +1 -1
  19. package/dist/vuetify.min.css +2 -2
  20. package/dist/vuetify.min.js +479 -476
  21. package/dist/vuetify.min.js.map +1 -1
  22. package/lib/components/VAutocomplete/VAutocomplete.js +2 -13
  23. package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
  24. package/lib/components/VColorPicker/VColorPicker.css +3 -2
  25. package/lib/components/VColorPicker/VColorPicker.d.ts +259 -156
  26. package/lib/components/VColorPicker/VColorPicker.js +16 -17
  27. package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
  28. package/lib/components/VColorPicker/VColorPicker.sass +2 -1
  29. package/lib/components/VColorPicker/_variables.scss +1 -0
  30. package/lib/components/VCombobox/VCombobox.js +2 -13
  31. package/lib/components/VCombobox/VCombobox.js.map +1 -1
  32. package/lib/components/VDatePicker/VDatePicker.d.ts +6 -6
  33. package/lib/components/VDatePicker/VDatePicker.js +5 -2
  34. package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
  35. package/lib/composables/filter.d.ts +13 -9
  36. package/lib/composables/filter.js +39 -8
  37. package/lib/composables/filter.js.map +1 -1
  38. package/lib/entry-bundler.js +1 -1
  39. package/lib/framework.d.ts +53 -53
  40. package/lib/framework.js +1 -1
  41. package/lib/labs/VCalendar/VCalendar.d.ts +6 -6
  42. package/lib/labs/VDateInput/VDateInput.d.ts +25 -25
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"VDatePicker.js","names":["makeVDatePickerControlsProps","VDatePickerControls","VDatePickerHeader","makeVDatePickerMonthProps","VDatePickerMonth","makeVDatePickerMonthsProps","VDatePickerMonths","makeVDatePickerYearsProps","VDatePickerYears","VFadeTransition","VDefaultsProvider","makeVPickerProps","VPicker","useDate","useLocale","useProxiedModel","computed","ref","shallowRef","watch","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDatePickerProps","header","type","String","default","weeksInMonth","title","modelValue","VDatePicker","name","props","emits","date","setup","_ref","emit","slots","adapter","t","model","undefined","v","multiple","viewMode","minDate","min","isValid","maxDate","max","internal","today","value","isBefore","isAfter","month","Number","getMonth","startOfMonth","year","getYear","startOfYear","setMonth","isReversing","length","format","text","setDate","setYear","headerTransition","disabled","targets","push","_date","addDays","endOfMonth","onClickNext","onUpdateYear","onUpdateMonth","onClickPrev","onClickDate","onClickMonth","onClickYear","val","oldVal","arrBefore","arrAfter","before","after","newMonth","newYear","pickerProps","filterProps","datePickerControlsProps","datePickerHeaderProps","datePickerMonthProps","datePickerMonthsProps","datePickerYearsProps","headerProps","transition","_createVNode","_mergeProps","showWeek","class","style","_Fragment","$event","actions"],"sources":["../../../src/components/VDatePicker/VDatePicker.tsx"],"sourcesContent":["// Styles\nimport './VDatePicker.sass'\n\n// Components\nimport { makeVDatePickerControlsProps, VDatePickerControls } from './VDatePickerControls'\nimport { VDatePickerHeader } from './VDatePickerHeader'\nimport { makeVDatePickerMonthProps, VDatePickerMonth } from './VDatePickerMonth'\nimport { makeVDatePickerMonthsProps, VDatePickerMonths } from './VDatePickerMonths'\nimport { makeVDatePickerYearsProps, VDatePickerYears } from './VDatePickerYears'\nimport { VFadeTransition } from '@/components/transitions'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider'\nimport { makeVPickerProps, VPicker } from '@/labs/VPicker/VPicker'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, shallowRef, watch } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nimport type { VPickerSlots } from '@/labs/VPicker/VPicker'\nimport type { GenericProps } from '@/util'\n\n// Types\nexport type VDatePickerSlots = Omit<VPickerSlots, 'header'> & {\n header: {\n header: string\n transition: string\n }\n}\n\nexport const makeVDatePickerProps = propsFactory({\n // TODO: implement in v3.5\n // calendarIcon: {\n // type: String,\n // default: '$calendar',\n // },\n // keyboardIcon: {\n // type: String,\n // default: '$edit',\n // },\n // inputMode: {\n // type: String as PropType<'calendar' | 'keyboard'>,\n // default: 'calendar',\n // },\n // inputText: {\n // type: String,\n // default: '$vuetify.datePicker.input.placeholder',\n // },\n // inputPlaceholder: {\n // type: String,\n // default: 'dd/mm/yyyy',\n // },\n header: {\n type: String,\n default: '$vuetify.datePicker.header',\n },\n\n ...makeVDatePickerControlsProps(),\n ...makeVDatePickerMonthProps({\n weeksInMonth: 'static' as const,\n }),\n ...omit(makeVDatePickerMonthsProps(), ['modelValue']),\n ...omit(makeVDatePickerYearsProps(), ['modelValue']),\n ...makeVPickerProps({ title: '$vuetify.datePicker.title' }),\n\n modelValue: null,\n}, 'VDatePicker')\n\nexport const VDatePicker = genericComponent<new <\n T,\n Multiple extends boolean | 'range' | number | (string & {}) = false,\n TModel = Multiple extends true | number | string\n ? T[]\n : T,\n> (\n props: {\n modelValue?: TModel\n 'onUpdate:modelValue'?: (value: TModel) => void\n multiple?: Multiple\n },\n slots: VDatePickerSlots\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VDatePicker',\n\n props: makeVDatePickerProps(),\n\n emits: {\n 'update:modelValue': (date: any) => true,\n 'update:month': (date: any) => true,\n 'update:year': (date: any) => true,\n // 'update:inputMode': (date: any) => true,\n 'update:viewMode': (date: any) => true,\n },\n\n setup (props, { emit, slots }) {\n const adapter = useDate()\n const { t } = useLocale()\n\n const model = useProxiedModel(\n props,\n 'modelValue',\n undefined,\n v => wrapInArray(v),\n v => props.multiple ? v : v[0],\n )\n\n const viewMode = useProxiedModel(props, 'viewMode')\n // const inputMode = useProxiedModel(props, 'inputMode')\n\n const minDate = computed(() => {\n const date = adapter.date(props.min)\n\n return props.min && adapter.isValid(date) ? date : null\n })\n const maxDate = computed(() => {\n const date = adapter.date(props.max)\n\n return props.max && adapter.isValid(date) ? date : null\n })\n\n const internal = computed(() => {\n const today = adapter.date()\n let value = today\n if (model.value?.[0]) {\n value = adapter.date(model.value[0])\n } else if (minDate.value && adapter.isBefore(today, minDate.value)) {\n value = minDate.value\n } else if (maxDate.value && adapter.isAfter(today, maxDate.value)) {\n value = maxDate.value\n }\n\n return value && adapter.isValid(value) ? value : today\n })\n\n const month = ref(Number(props.month ?? adapter.getMonth(adapter.startOfMonth(internal.value))))\n const year = ref(Number(props.year ?? adapter.getYear(adapter.startOfYear(adapter.setMonth(internal.value, month.value)))))\n\n const isReversing = shallowRef(false)\n const header = computed(() => {\n if (props.multiple && model.value.length > 1) {\n return t('$vuetify.datePicker.itemsSelected', model.value.length)\n }\n\n return (model.value[0] && adapter.isValid(model.value[0]))\n ? adapter.format(adapter.date(model.value[0]), 'normalDateWithWeekday')\n : t(props.header)\n })\n const text = computed(() => {\n let date = adapter.date()\n\n date = adapter.setDate(date, 1)\n date = adapter.setMonth(date, month.value)\n date = adapter.setYear(date, year.value)\n\n return adapter.format(date, 'monthAndYear')\n })\n // const headerIcon = computed(() => props.inputMode === 'calendar' ? props.keyboardIcon : props.calendarIcon)\n const headerTransition = computed(() => `date-picker-header${isReversing.value ? '-reverse' : ''}-transition`)\n\n const disabled = computed(() => {\n if (props.disabled) return true\n\n const targets = []\n\n if (viewMode.value !== 'month') {\n targets.push(...['prev', 'next'])\n } else {\n let _date = adapter.date()\n\n _date = adapter.startOfMonth(_date)\n _date = adapter.setMonth(_date, month.value)\n _date = adapter.setYear(_date, year.value)\n\n if (minDate.value) {\n const date = adapter.addDays(adapter.startOfMonth(_date), -1)\n\n adapter.isAfter(minDate.value, date) && targets.push('prev')\n }\n\n if (maxDate.value) {\n const date = adapter.addDays(adapter.endOfMonth(_date), 1)\n\n adapter.isAfter(date, maxDate.value) && targets.push('next')\n }\n }\n\n return targets\n })\n\n // function onClickAppend () {\n // inputMode.value = inputMode.value === 'calendar' ? 'keyboard' : 'calendar'\n // }\n\n function onClickNext () {\n if (month.value < 11) {\n month.value++\n } else {\n year.value++\n month.value = 0\n onUpdateYear(year.value)\n }\n onUpdateMonth(month.value)\n }\n\n function onClickPrev () {\n if (month.value > 0) {\n month.value--\n } else {\n year.value--\n month.value = 11\n onUpdateYear(year.value)\n }\n onUpdateMonth(month.value)\n }\n\n function onClickDate () {\n viewMode.value = 'month'\n }\n\n function onClickMonth () {\n viewMode.value = viewMode.value === 'months' ? 'month' : 'months'\n }\n\n function onClickYear () {\n viewMode.value = viewMode.value === 'year' ? 'month' : 'year'\n }\n\n function onUpdateMonth (value: number) {\n if (viewMode.value === 'months') onClickMonth()\n\n emit('update:month', value)\n }\n\n function onUpdateYear (value: number) {\n if (viewMode.value === 'year') onClickYear()\n\n emit('update:year', value)\n }\n\n watch(model, (val, oldVal) => {\n const arrBefore = wrapInArray(oldVal)\n const arrAfter = wrapInArray(val)\n\n if (!arrAfter.length) return\n\n const before = adapter.date(arrBefore[arrBefore.length - 1])\n const after = adapter.date(arrAfter[arrAfter.length - 1])\n const newMonth = adapter.getMonth(after)\n const newYear = adapter.getYear(after)\n\n if (newMonth !== month.value) {\n month.value = newMonth\n onUpdateMonth(month.value)\n }\n\n if (newYear !== year.value) {\n year.value = newYear\n onUpdateYear(year.value)\n }\n\n isReversing.value = adapter.isBefore(before, after)\n })\n\n useRender(() => {\n const pickerProps = VPicker.filterProps(props)\n const datePickerControlsProps = VDatePickerControls.filterProps(props)\n const datePickerHeaderProps = VDatePickerHeader.filterProps(props)\n const datePickerMonthProps = VDatePickerMonth.filterProps(props)\n const datePickerMonthsProps = omit(VDatePickerMonths.filterProps(props), ['modelValue'])\n const datePickerYearsProps = omit(VDatePickerYears.filterProps(props), ['modelValue'])\n\n const headerProps = {\n header: header.value,\n transition: headerTransition.value,\n }\n\n return (\n <VPicker\n { ...pickerProps }\n class={[\n 'v-date-picker',\n `v-date-picker--${viewMode.value}`,\n {\n 'v-date-picker--show-week': props.showWeek,\n },\n props.class,\n ]}\n style={ props.style }\n v-slots={{\n title: () => slots.title?.() ?? (\n <div class=\"v-date-picker__title\">\n { t(props.title) }\n </div>\n ),\n header: () => slots.header ? (\n <VDefaultsProvider\n defaults={{\n VDatePickerHeader: { ...headerProps },\n }}\n >\n { slots.header?.(headerProps) }\n </VDefaultsProvider>\n ) : (\n <VDatePickerHeader\n key=\"header\"\n { ...datePickerHeaderProps }\n { ...headerProps }\n onClick={ viewMode.value !== 'month' ? onClickDate : undefined }\n v-slots={{\n ...slots,\n default: undefined,\n }}\n />\n ),\n default: () => (\n <>\n <VDatePickerControls\n { ...datePickerControlsProps }\n disabled={ disabled.value }\n text={ text.value }\n onClick:next={ onClickNext }\n onClick:prev={ onClickPrev }\n onClick:month={ onClickMonth }\n onClick:year={ onClickYear }\n />\n\n <VFadeTransition hideOnLeave>\n { viewMode.value === 'months' ? (\n <VDatePickerMonths\n key=\"date-picker-months\"\n { ...datePickerMonthsProps }\n v-model={ month.value }\n onUpdate:modelValue={ onUpdateMonth }\n min={ minDate.value }\n max={ maxDate.value }\n year={ year.value }\n />\n ) : viewMode.value === 'year' ? (\n <VDatePickerYears\n key=\"date-picker-years\"\n { ...datePickerYearsProps }\n v-model={ year.value }\n onUpdate:modelValue={ onUpdateYear }\n min={ minDate.value }\n max={ maxDate.value }\n />\n ) : (\n <VDatePickerMonth\n key=\"date-picker-month\"\n { ...datePickerMonthProps }\n v-model={ model.value }\n v-model:month={ month.value }\n v-model:year={ year.value }\n onUpdate:month={ onUpdateMonth }\n onUpdate:year={ onUpdateYear }\n min={ minDate.value }\n max={ maxDate.value }\n />\n )}\n </VFadeTransition>\n </>\n ),\n actions: slots.actions,\n }}\n />\n )\n })\n\n return {}\n },\n})\n\nexport type VDatePicker = InstanceType<typeof VDatePicker>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,4BAA4B,EAAEC,mBAAmB;AAAA,SACjDC,iBAAiB;AAAA,SACjBC,yBAAyB,EAAEC,gBAAgB;AAAA,SAC3CC,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,yBAAyB,EAAEC,gBAAgB;AAAA,SAC3CC,eAAe;AAAA,SACfC,iBAAiB;AAAA,SACjBC,gBAAgB,EAAEC,OAAO,yCAElC;AAAA,SACSC,OAAO;AAAA,SACPC,SAAS;AAAA,SACTC,eAAe,6CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC7CC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,WAAW,+BAErE;AAIA;AAQA,OAAO,MAAMC,oBAAoB,GAAGH,YAAY,CAAC;EAC/C;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACAI,MAAM,EAAE;IACNC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EAED,GAAG7B,4BAA4B,CAAC,CAAC;EACjC,GAAGG,yBAAyB,CAAC;IAC3B2B,YAAY,EAAE;EAChB,CAAC,CAAC;EACF,GAAGT,IAAI,CAAChB,0BAA0B,CAAC,CAAC,EAAE,CAAC,Y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AK,CAACH,KAAK;YAAA,mBAAAsD,MAAA,IAAXnD,KAAK,CAACH,KAAK,GAAAsD,MAAA,EAEV5B,aAAa;YAAA,QADfnB,IAAI,CAACP,KAAK;YAAA,kBAAAsD,MAAA,IAAV/C,IAAI,CAACP,KAAK,GAAAsD,MAAA,EAET7B,YAAY;YAAA,OACtBhC,OAAO,CAACO,KAAK;YAAA,OACbJ,OAAO,CAACI;UAAK,SAEtB;QAAA,IAGN;QACDuD,OAAO,EAAEtE,KAAK,CAACsE;MACjB,CAAC;IAGP,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VDatePicker.js","names":["makeVDatePickerControlsProps","VDatePickerControls","VDatePickerHeader","makeVDatePickerMonthProps","VDatePickerMonth","makeVDatePickerMonthsProps","VDatePickerMonths","makeVDatePickerYearsProps","VDatePickerYears","VFadeTransition","VDefaultsProvider","makeVPickerProps","VPicker","useDate","useLocale","useRtl","useProxiedModel","computed","ref","shallowRef","watch","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDatePickerProps","header","type","String","default","weeksInMonth","title","modelValue","VDatePicker","name","props","emits","date","setup","_ref","emit","slots","adapter","t","rtlClasses","model","undefined","v","multiple","viewMode","minDate","min","isValid","maxDate","max","internal","today","value","isBefore","isAfter","month","Number","getMonth","startOfMonth","year","getYear","startOfYear","setMonth","isReversing","length","format","text","setDate","setYear","headerTransition","disabled","targets","push","_date","addDays","endOfMonth","onClickNext","onUpdateYear","onUpdateMonth","onClickPrev","onClickDate","onClickMonth","onClickYear","val","oldVal","arrBefore","arrAfter","before","after","newMonth","newYear","pickerProps","filterProps","datePickerControlsProps","datePickerHeaderProps","datePickerMonthProps","datePickerMonthsProps","datePickerYearsProps","headerProps","transition","_createVNode","_mergeProps","showWeek","class","style","_Fragment","$event","actions"],"sources":["../../../src/components/VDatePicker/VDatePicker.tsx"],"sourcesContent":["// Styles\nimport './VDatePicker.sass'\n\n// Components\nimport { makeVDatePickerControlsProps, VDatePickerControls } from './VDatePickerControls'\nimport { VDatePickerHeader } from './VDatePickerHeader'\nimport { makeVDatePickerMonthProps, VDatePickerMonth } from './VDatePickerMonth'\nimport { makeVDatePickerMonthsProps, VDatePickerMonths } from './VDatePickerMonths'\nimport { makeVDatePickerYearsProps, VDatePickerYears } from './VDatePickerYears'\nimport { VFadeTransition } from '@/components/transitions'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider'\nimport { makeVPickerProps, VPicker } from '@/labs/VPicker/VPicker'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { useLocale, useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, shallowRef, watch } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nimport type { VPickerSlots } from '@/labs/VPicker/VPicker'\nimport type { GenericProps } from '@/util'\n\n// Types\nexport type VDatePickerSlots = Omit<VPickerSlots, 'header'> & {\n header: {\n header: string\n transition: string\n }\n}\n\nexport const makeVDatePickerProps = propsFactory({\n // TODO: implement in v3.5\n // calendarIcon: {\n // type: String,\n // default: '$calendar',\n // },\n // keyboardIcon: {\n // type: String,\n // default: '$edit',\n // },\n // inputMode: {\n // type: String as PropType<'calendar' | 'keyboard'>,\n // default: 'calendar',\n // },\n // inputText: {\n // type: String,\n // default: '$vuetify.datePicker.input.placeholder',\n // },\n // inputPlaceholder: {\n // type: String,\n // default: 'dd/mm/yyyy',\n // },\n header: {\n type: String,\n default: '$vuetify.datePicker.header',\n },\n\n ...makeVDatePickerControlsProps(),\n ...makeVDatePickerMonthProps({\n weeksInMonth: 'static' as const,\n }),\n ...omit(makeVDatePickerMonthsProps(), ['modelValue']),\n ...omit(makeVDatePickerYearsProps(), ['modelValue']),\n ...makeVPickerProps({ title: '$vuetify.datePicker.title' }),\n\n modelValue: null,\n}, 'VDatePicker')\n\nexport const VDatePicker = genericComponent<new <\n T,\n Multiple extends boolean | 'range' | number | (string & {}) = false,\n TModel = Multiple extends true | number | string\n ? T[]\n : T,\n> (\n props: {\n modelValue?: TModel\n 'onUpdate:modelValue'?: (value: TModel) => void\n multiple?: Multiple\n },\n slots: VDatePickerSlots\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VDatePicker',\n\n props: makeVDatePickerProps(),\n\n emits: {\n 'update:modelValue': (date: any) => true,\n 'update:month': (date: any) => true,\n 'update:year': (date: any) => true,\n // 'update:inputMode': (date: any) => true,\n 'update:viewMode': (date: any) => true,\n },\n\n setup (props, { emit, slots }) {\n const adapter = useDate()\n const { t } = useLocale()\n const { rtlClasses } = useRtl()\n\n const model = useProxiedModel(\n props,\n 'modelValue',\n undefined,\n v => wrapInArray(v),\n v => props.multiple ? v : v[0],\n )\n\n const viewMode = useProxiedModel(props, 'viewMode')\n // const inputMode = useProxiedModel(props, 'inputMode')\n\n const minDate = computed(() => {\n const date = adapter.date(props.min)\n\n return props.min && adapter.isValid(date) ? date : null\n })\n const maxDate = computed(() => {\n const date = adapter.date(props.max)\n\n return props.max && adapter.isValid(date) ? date : null\n })\n\n const internal = computed(() => {\n const today = adapter.date()\n let value = today\n if (model.value?.[0]) {\n value = adapter.date(model.value[0])\n } else if (minDate.value && adapter.isBefore(today, minDate.value)) {\n value = minDate.value\n } else if (maxDate.value && adapter.isAfter(today, maxDate.value)) {\n value = maxDate.value\n }\n\n return value && adapter.isValid(value) ? value : today\n })\n\n const month = ref(Number(props.month ?? adapter.getMonth(adapter.startOfMonth(internal.value))))\n const year = ref(Number(props.year ?? adapter.getYear(adapter.startOfYear(adapter.setMonth(internal.value, month.value)))))\n\n const isReversing = shallowRef(false)\n const header = computed(() => {\n if (props.multiple && model.value.length > 1) {\n return t('$vuetify.datePicker.itemsSelected', model.value.length)\n }\n\n return (model.value[0] && adapter.isValid(model.value[0]))\n ? adapter.format(adapter.date(model.value[0]), 'normalDateWithWeekday')\n : t(props.header)\n })\n const text = computed(() => {\n let date = adapter.date()\n\n date = adapter.setDate(date, 1)\n date = adapter.setMonth(date, month.value)\n date = adapter.setYear(date, year.value)\n\n return adapter.format(date, 'monthAndYear')\n })\n // const headerIcon = computed(() => props.inputMode === 'calendar' ? props.keyboardIcon : props.calendarIcon)\n const headerTransition = computed(() => `date-picker-header${isReversing.value ? '-reverse' : ''}-transition`)\n\n const disabled = computed(() => {\n if (props.disabled) return true\n\n const targets = []\n\n if (viewMode.value !== 'month') {\n targets.push(...['prev', 'next'])\n } else {\n let _date = adapter.date()\n\n _date = adapter.startOfMonth(_date)\n _date = adapter.setMonth(_date, month.value)\n _date = adapter.setYear(_date, year.value)\n\n if (minDate.value) {\n const date = adapter.addDays(adapter.startOfMonth(_date), -1)\n\n adapter.isAfter(minDate.value, date) && targets.push('prev')\n }\n\n if (maxDate.value) {\n const date = adapter.addDays(adapter.endOfMonth(_date), 1)\n\n adapter.isAfter(date, maxDate.value) && targets.push('next')\n }\n }\n\n return targets\n })\n\n // function onClickAppend () {\n // inputMode.value = inputMode.value === 'calendar' ? 'keyboard' : 'calendar'\n // }\n\n function onClickNext () {\n if (month.value < 11) {\n month.value++\n } else {\n year.value++\n month.value = 0\n onUpdateYear(year.value)\n }\n onUpdateMonth(month.value)\n }\n\n function onClickPrev () {\n if (month.value > 0) {\n month.value--\n } else {\n year.value--\n month.value = 11\n onUpdateYear(year.value)\n }\n onUpdateMonth(month.value)\n }\n\n function onClickDate () {\n viewMode.value = 'month'\n }\n\n function onClickMonth () {\n viewMode.value = viewMode.value === 'months' ? 'month' : 'months'\n }\n\n function onClickYear () {\n viewMode.value = viewMode.value === 'year' ? 'month' : 'year'\n }\n\n function onUpdateMonth (value: number) {\n if (viewMode.value === 'months') onClickMonth()\n\n emit('update:month', value)\n }\n\n function onUpdateYear (value: number) {\n if (viewMode.value === 'year') onClickYear()\n\n emit('update:year', value)\n }\n\n watch(model, (val, oldVal) => {\n const arrBefore = wrapInArray(oldVal)\n const arrAfter = wrapInArray(val)\n\n if (!arrAfter.length) return\n\n const before = adapter.date(arrBefore[arrBefore.length - 1])\n const after = adapter.date(arrAfter[arrAfter.length - 1])\n const newMonth = adapter.getMonth(after)\n const newYear = adapter.getYear(after)\n\n if (newMonth !== month.value) {\n month.value = newMonth\n onUpdateMonth(month.value)\n }\n\n if (newYear !== year.value) {\n year.value = newYear\n onUpdateYear(year.value)\n }\n\n isReversing.value = adapter.isBefore(before, after)\n })\n\n useRender(() => {\n const pickerProps = VPicker.filterProps(props)\n const datePickerControlsProps = VDatePickerControls.filterProps(props)\n const datePickerHeaderProps = VDatePickerHeader.filterProps(props)\n const datePickerMonthProps = VDatePickerMonth.filterProps(props)\n const datePickerMonthsProps = omit(VDatePickerMonths.filterProps(props), ['modelValue'])\n const datePickerYearsProps = omit(VDatePickerYears.filterProps(props), ['modelValue'])\n\n const headerProps = {\n header: header.value,\n transition: headerTransition.value,\n }\n\n return (\n <VPicker\n { ...pickerProps }\n class={[\n 'v-date-picker',\n `v-date-picker--${viewMode.value}`,\n {\n 'v-date-picker--show-week': props.showWeek,\n },\n rtlClasses.value,\n props.class,\n ]}\n style={ props.style }\n v-slots={{\n title: () => slots.title?.() ?? (\n <div class=\"v-date-picker__title\">\n { t(props.title) }\n </div>\n ),\n header: () => slots.header ? (\n <VDefaultsProvider\n defaults={{\n VDatePickerHeader: { ...headerProps },\n }}\n >\n { slots.header?.(headerProps) }\n </VDefaultsProvider>\n ) : (\n <VDatePickerHeader\n key=\"header\"\n { ...datePickerHeaderProps }\n { ...headerProps }\n onClick={ viewMode.value !== 'month' ? onClickDate : undefined }\n v-slots={{\n ...slots,\n default: undefined,\n }}\n />\n ),\n default: () => (\n <>\n <VDatePickerControls\n { ...datePickerControlsProps }\n disabled={ disabled.value }\n text={ text.value }\n onClick:next={ onClickNext }\n onClick:prev={ onClickPrev }\n onClick:month={ onClickMonth }\n onClick:year={ onClickYear }\n />\n\n <VFadeTransition hideOnLeave>\n { viewMode.value === 'months' ? (\n <VDatePickerMonths\n key=\"date-picker-months\"\n { ...datePickerMonthsProps }\n v-model={ month.value }\n onUpdate:modelValue={ onUpdateMonth }\n min={ minDate.value }\n max={ maxDate.value }\n year={ year.value }\n />\n ) : viewMode.value === 'year' ? (\n <VDatePickerYears\n key=\"date-picker-years\"\n { ...datePickerYearsProps }\n v-model={ year.value }\n onUpdate:modelValue={ onUpdateYear }\n min={ minDate.value }\n max={ maxDate.value }\n />\n ) : (\n <VDatePickerMonth\n key=\"date-picker-month\"\n { ...datePickerMonthProps }\n v-model={ model.value }\n v-model:month={ month.value }\n v-model:year={ year.value }\n onUpdate:month={ onUpdateMonth }\n onUpdate:year={ onUpdateYear }\n min={ minDate.value }\n max={ maxDate.value }\n />\n )}\n </VFadeTransition>\n </>\n ),\n actions: slots.actions,\n }}\n />\n )\n })\n\n return {}\n },\n})\n\nexport type VDatePicker = InstanceType<typeof VDatePicker>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,4BAA4B,EAAEC,mBAAmB;AAAA,SACjDC,iBAAiB;AAAA,SACjBC,yBAAyB,EAAEC,gBAAgB;AAAA,SAC3CC,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,yBAAyB,EAAEC,gBAAgB;AAAA,SAC3CC,eAAe;AAAA,SACfC,iBAAiB;AAAA,SACjBC,gBAAgB,EAAEC,OAAO,yCAElC;AAAA,SACSC,OAAO;AAAA,SACPC,SAAS,EAAEC,MAAM;AAAA,SACjBC,eAAe,6CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC7CC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,WAAW,+BAErE;AAIA;AAQA,OAAO,MAAMC,oBAAoB,GAAGH,YAAY,CAAC;EAC/C;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACAI,MAAM,EAAE;IACNC,IA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BAAAsD,MAAA,IAAV/C,IAAI,CAACP,KAAK,GAAAsD,MAAA,EACE7B,YAAY;YAAA,OAC5BhC,OAAO,CAACO,KAAK;YAAA,OACbJ,OAAO,CAACI;UAAK,YAAAgD,YAAA,CAAAtG,gBAAA,EAAAuG,WAAA;YAAA;UAAA,GAKdN,oBAAoB;YAAA,cACfvD,KAAK,CAACY,KAAK;YAAA,uBAAAsD,MAAA,IAAXlE,KAAK,CAACY,KAAK,GAAAsD,MAAA;YAAA,SACLnD,KAAK,CAACH,KAAK;YAAA,mBAAAsD,MAAA,IAAXnD,KAAK,CAACH,KAAK,GAAAsD,MAAA,EAEV5B,aAAa;YAAA,QADfnB,IAAI,CAACP,KAAK;YAAA,kBAAAsD,MAAA,IAAV/C,IAAI,CAACP,KAAK,GAAAsD,MAAA,EAET7B,YAAY;YAAA,OACtBhC,OAAO,CAACO,KAAK;YAAA,OACbJ,OAAO,CAACI;UAAK,SAEtB;QAAA,IAGN;QACDuD,OAAO,EAAEvE,KAAK,CAACuE;MACjB,CAAC;IAGP,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,12 +1,15 @@
1
1
  import type { PropType, Ref } from 'vue';
2
2
  import type { MaybeRef } from "../util";
3
3
  /**
4
- * - match without highlight
5
- * - single match (index), length already known
6
- * - single match (start, end)
7
- * - multiple matches (start, end), probably shouldn't overlap
4
+ * - boolean: match without highlight
5
+ * - number: single match (index), length already known
6
+ * - []: single match (start, end)
7
+ * - [][]: multiple matches (start, end), shouldn't overlap
8
8
  */
9
- export type FilterMatch = boolean | number | [number, number] | [number, number][];
9
+ export type FilterMatchArraySingle = readonly [number, number];
10
+ export type FilterMatchArrayMultiple = readonly FilterMatchArraySingle[];
11
+ export type FilterMatchArray = FilterMatchArraySingle | FilterMatchArrayMultiple;
12
+ export type FilterMatch = boolean | number | FilterMatchArray;
10
13
  export type FilterFunction = (value: string, query: string, item?: InternalItem) => FilterMatch;
11
14
  export type FilterKeyFunctions = Record<string, FilterFunction>;
12
15
  export type FilterKeys = string | string[];
@@ -65,13 +68,14 @@ export declare function filterItems(items: readonly (readonly [item: InternalIte
65
68
  noFilter?: boolean;
66
69
  }): {
67
70
  index: number;
68
- matches: Record<string, FilterMatch>;
71
+ matches: Record<string, FilterMatchArrayMultiple | undefined>;
69
72
  }[];
70
73
  export declare function useFilter<T extends InternalItem>(props: FilterProps, items: MaybeRef<T[]>, query: Ref<string | undefined> | (() => string | undefined), options?: {
71
74
  transform?: (item: T) => {};
72
75
  customKeyFilter?: MaybeRef<FilterKeyFunctions | undefined>;
73
76
  }): {
74
- filteredItems: Ref<T[], T[]>;
75
- filteredMatches: Ref<Map<unknown, Record<string, FilterMatch>>, Map<unknown, Record<string, FilterMatch>>>;
76
- getMatches: (item: T) => Record<string, FilterMatch> | undefined;
77
+ filteredItems: import("vue").ShallowRef<T[], T[]>;
78
+ filteredMatches: import("vue").ShallowRef<Map<unknown, Record<string, FilterMatchArrayMultiple | undefined>>, Map<unknown, Record<string, FilterMatchArrayMultiple | undefined>>>;
79
+ getMatches: (item: T) => Record<string, FilterMatchArrayMultiple | undefined> | undefined;
77
80
  };
81
+ export declare function highlightResult(name: string, text: string, matches: FilterMatchArrayMultiple | undefined): string | JSX.Element[];
@@ -2,19 +2,33 @@
2
2
  /* eslint-disable no-labels */
3
3
 
4
4
  // Utilities
5
- import { computed, shallowRef, unref, watchEffect } from 'vue';
5
+ import { computed, shallowRef, unref, watchEffect, createVNode as _createVNode, Fragment as _Fragment } from 'vue';
6
6
  import { getPropertyFromItem, propsFactory, wrapInArray } from "../util/index.js"; // Types
7
7
  /**
8
- * - match without highlight
9
- * - single match (index), length already known
10
- * - single match (start, end)
11
- * - multiple matches (start, end), probably shouldn't overlap
8
+ * - boolean: match without highlight
9
+ * - number: single match (index), length already known
10
+ * - []: single match (start, end)
11
+ * - [][]: multiple matches (start, end), shouldn't overlap
12
12
  */
13
13
  // Composables
14
14
  export const defaultFilter = (value, query, item) => {
15
15
  if (value == null || query == null) return -1;
16
- return value.toString().toLocaleLowerCase().indexOf(query.toString().toLocaleLowerCase());
16
+ value = value.toString().toLocaleLowerCase();
17
+ query = query.toString().toLocaleLowerCase();
18
+ const result = [];
19
+ let idx = value.indexOf(query);
20
+ while (~idx) {
21
+ result.push([idx, idx + query.length]);
22
+ idx = value.indexOf(query, idx + query.length);
23
+ }
24
+ return result.length ? result : -1;
17
25
  };
26
+ function normaliseMatch(match, query) {
27
+ if (match == null || typeof match === 'boolean' || match === -1) return;
28
+ if (typeof match === 'number') return [[match, query.length]];
29
+ if (Array.isArray(match[0])) return match;
30
+ return [match];
31
+ }
18
32
  export const makeFilterProps = propsFactory({
19
33
  customFilter: Function,
20
34
  customKeyFilter: Object,
@@ -45,7 +59,7 @@ export function filterItems(items, query, options) {
45
59
  const keyFilter = options?.customKeyFilter?.[key];
46
60
  match = keyFilter ? keyFilter(value, query, item) : filter(value, query, item);
47
61
  if (match !== -1 && match !== false) {
48
- if (keyFilter) customMatches[key] = match;else defaultMatches[key] = match;
62
+ if (keyFilter) customMatches[key] = normaliseMatch(match, query);else defaultMatches[key] = normaliseMatch(match, query);
49
63
  } else if (options?.filterMode === 'every') {
50
64
  continue loop;
51
65
  }
@@ -53,7 +67,7 @@ export function filterItems(items, query, options) {
53
67
  } else {
54
68
  match = filter(item, query, item);
55
69
  if (match !== -1 && match !== false) {
56
- defaultMatches.title = match;
70
+ defaultMatches.title = normaliseMatch(match, query);
57
71
  }
58
72
  }
59
73
  const defaultMatchesLength = Object.keys(defaultMatches).length;
@@ -113,4 +127,21 @@ export function useFilter(props, items, query, options) {
113
127
  getMatches
114
128
  };
115
129
  }
130
+ export function highlightResult(name, text, matches) {
131
+ if (matches == null || !matches.length) return text;
132
+ return matches.map((match, i) => {
133
+ const start = i === 0 ? 0 : matches[i - 1][1];
134
+ const result = [_createVNode("span", {
135
+ "class": `${name}__unmask`
136
+ }, [text.slice(start, match[0])]), _createVNode("span", {
137
+ "class": `${name}__mask`
138
+ }, [text.slice(match[0], match[1])])];
139
+ if (i === matches.length - 1) {
140
+ result.push(_createVNode("span", {
141
+ "class": `${name}__unmask`
142
+ }, [text.slice(match[1])]));
143
+ }
144
+ return _createVNode(_Fragment, null, [result]);
145
+ });
146
+ }
116
147
  //# sourceMappingURL=filter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter.js","names":["computed","shallowRef","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, shallowRef, 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[]> = shallowRef([])\n const filteredMatches: Ref<Map<unknown, Record<string, FilterMatch>>> = shallowRef(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,UAAU,EAAEC,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAAA,SACrDC,mBAAmB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Ae;IAAEc;EAAW,CAAC;AACvD","ignoreList":[]}
1
+ {"version":3,"file":"filter.js","names":["computed","shallowRef","unref","watchEffect","createVNode","_createVNode","Fragment","_Fragment","getPropertyFromItem","propsFactory","wrapInArray","defaultFilter","value","query","item","toString","toLocaleLowerCase","result","idx","indexOf","push","length","normaliseMatch","match","Array","isArray","makeFilterProps","customFilter","Function","customKeyFilter","Object","filterKeys","String","filterMode","type","default","noFilter","Boolean","filterItems","items","options","array","filter","keys","customFiltersLength","loop","i","transformed","customMatches","defaultMatches","key","keyFilter","title","defaultMatchesLength","customMatchesLength","index","matches","useFilter","props","filteredItems","filteredMatches","Map","transformedItems","transform","map","_query","strQuery","results","originalItems","_filteredItems","_filteredMatches","forEach","_ref","set","getMatches","get","highlightResult","name","text","start","slice"],"sources":["../../src/composables/filter.tsx"],"sourcesContent":["/* eslint-disable max-statements */\n/* eslint-disable no-labels */\n\n// Utilities\nimport { computed, shallowRef, 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 * - boolean: match without highlight\n * - number: single match (index), length already known\n * - []: single match (start, end)\n * - [][]: multiple matches (start, end), shouldn't overlap\n */\nexport type FilterMatchArraySingle = readonly [number, number]\nexport type FilterMatchArrayMultiple = readonly FilterMatchArraySingle[]\nexport type FilterMatchArray = FilterMatchArraySingle | FilterMatchArrayMultiple\nexport type FilterMatch = boolean | number | FilterMatchArray\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 value = value.toString().toLocaleLowerCase()\n query = query.toString().toLocaleLowerCase()\n\n const result = []\n let idx = value.indexOf(query)\n while (~idx) {\n result.push([idx, idx + query.length] as const)\n\n idx = value.indexOf(query, idx + query.length)\n }\n\n return result.length ? result : -1\n}\n\nfunction normaliseMatch (match: FilterMatch, query: string): FilterMatchArrayMultiple | undefined {\n if (match == null || typeof match === 'boolean' || match === -1) return\n if (typeof match === 'number') return [[match, query.length]]\n if (Array.isArray(match[0])) return match as FilterMatchArrayMultiple\n return [match] as FilterMatchArrayMultiple\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, FilterMatchArrayMultiple | undefined> }[] = []\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, FilterMatchArrayMultiple | undefined> = {}\n const defaultMatches: Record<string, FilterMatchArrayMultiple | undefined> = {}\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] = normaliseMatch(match, query)\n else defaultMatches[key] = normaliseMatch(match, query)\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 = normaliseMatch(match, query)\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 = shallowRef<T[]>([])\n const filteredMatches = shallowRef(new Map<unknown, Record<string, FilterMatchArrayMultiple | undefined>>())\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\nexport function highlightResult (name: string, text: string, matches: FilterMatchArrayMultiple | undefined) {\n if (matches == null || !matches.length) return text\n\n return matches.map((match, i) => {\n const start = i === 0 ? 0 : matches[i - 1][1]\n const result = [\n <span class={ `${name}__unmask` }>{ text.slice(start, match[0]) }</span>,\n <span class={ `${name}__mask` }>{ text.slice(match[0], match[1]) }</span>,\n ]\n if (i === matches.length - 1) {\n result.push(<span class={ `${name}__unmask` }>{ text.slice(match[1]) }</span>)\n }\n return <>{ result }</>\n })\n}\n"],"mappings":"AAAA;AACA;;AAEA;AACA,SAASA,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,WAAW,EAAAC,WAAA,IAAAC,YAAA,EAAAC,QAAA,IAAAC,SAAA,QAAQ,KAAK;AAAA,SACrDC,mBAAmB,EAAEC,YAAY,EAAEC,WAAW,4BAEvD;AAIA;AACA;AACA;AACA;AACA;AACA;AAuBA;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;EAE7CD,KAAK,GAAGA,KAAK,CAACG,QAAQ,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC;EAC5CH,KAAK,GAAGA,KAAK,CAACE,QAAQ,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC;EAE5C,MAAMC,MAAM,GAAG,EAAE;EACjB,IAAIC,GAAG,GAAGN,KAAK,CAACO,OAAO,CAACN,KAAK,CAAC;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,CAACE,KAAK,CAACzD,KAAK,CAAC,CAAC,CAAC,CAAC,EAAS,CAAC;IAChF;IACA,OAAAlB,YAAA,CAAAE,SAAA,SAAWU,MAAM;EACnB,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -16,7 +16,7 @@ export const createVuetify = function () {
16
16
  ...options
17
17
  });
18
18
  };
19
- export const version = "3.7.15-dev.2025-03-06";
19
+ export const version = "3.7.15-dev.2025-03-08";
20
20
  createVuetify.version = version;
21
21
  export { blueprints, components, directives };
22
22
  export * from "./composables/index.js";
@@ -493,22 +493,22 @@ declare module 'vue' {
493
493
  VAppBar: typeof import('vuetify/components')['VAppBar']
494
494
  VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
495
495
  VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
496
+ VApp: typeof import('vuetify/components')['VApp']
496
497
  VAlert: typeof import('vuetify/components')['VAlert']
497
498
  VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
498
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
499
- VApp: typeof import('vuetify/components')['VApp']
500
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
501
499
  VAvatar: typeof import('vuetify/components')['VAvatar']
500
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
501
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
502
502
  VBadge: typeof import('vuetify/components')['VBadge']
503
- VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
504
503
  VBanner: typeof import('vuetify/components')['VBanner']
505
504
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
506
505
  VBannerText: typeof import('vuetify/components')['VBannerText']
507
- VBtn: typeof import('vuetify/components')['VBtn']
508
- VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
509
506
  VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
510
507
  VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
511
508
  VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
509
+ VBtn: typeof import('vuetify/components')['VBtn']
510
+ VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
511
+ VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
512
512
  VCard: typeof import('vuetify/components')['VCard']
513
513
  VCardActions: typeof import('vuetify/components')['VCardActions']
514
514
  VCardItem: typeof import('vuetify/components')['VCardItem']
@@ -516,52 +516,54 @@ declare module 'vue' {
516
516
  VCardText: typeof import('vuetify/components')['VCardText']
517
517
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
518
518
  VChip: typeof import('vuetify/components')['VChip']
519
- VCheckbox: typeof import('vuetify/components')['VCheckbox']
520
- VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
519
+ VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
521
520
  VCarousel: typeof import('vuetify/components')['VCarousel']
522
521
  VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
523
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
522
+ VCheckbox: typeof import('vuetify/components')['VCheckbox']
523
+ VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
524
524
  VCombobox: typeof import('vuetify/components')['VCombobox']
525
- VChipGroup: typeof import('vuetify/components')['VChipGroup']
526
525
  VCode: typeof import('vuetify/components')['VCode']
527
- VDataTable: typeof import('vuetify/components')['VDataTable']
528
- VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
529
- VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
530
- VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
531
- VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
532
- VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
533
- VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
534
526
  VCounter: typeof import('vuetify/components')['VCounter']
535
- VColorPicker: typeof import('vuetify/components')['VColorPicker']
536
527
  VDialog: typeof import('vuetify/components')['VDialog']
537
- VDivider: typeof import('vuetify/components')['VDivider']
538
528
  VDatePicker: typeof import('vuetify/components')['VDatePicker']
539
529
  VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
540
530
  VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
541
531
  VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
542
532
  VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
543
533
  VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
534
+ VChipGroup: typeof import('vuetify/components')['VChipGroup']
535
+ VColorPicker: typeof import('vuetify/components')['VColorPicker']
536
+ VDivider: typeof import('vuetify/components')['VDivider']
544
537
  VEmptyState: typeof import('vuetify/components')['VEmptyState']
545
- VFab: typeof import('vuetify/components')['VFab']
546
538
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
547
539
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
548
540
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
549
541
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
542
+ VDataTable: typeof import('vuetify/components')['VDataTable']
543
+ VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
544
+ VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
545
+ VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
546
+ VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
547
+ VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
548
+ VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
549
+ VFab: typeof import('vuetify/components')['VFab']
550
550
  VFooter: typeof import('vuetify/components')['VFooter']
551
- VFileInput: typeof import('vuetify/components')['VFileInput']
552
551
  VField: typeof import('vuetify/components')['VField']
553
552
  VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
553
+ VFileInput: typeof import('vuetify/components')['VFileInput']
554
+ VImg: typeof import('vuetify/components')['VImg']
555
+ VInput: typeof import('vuetify/components')['VInput']
556
+ VItemGroup: typeof import('vuetify/components')['VItemGroup']
557
+ VItem: typeof import('vuetify/components')['VItem']
554
558
  VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
555
559
  VIcon: typeof import('vuetify/components')['VIcon']
556
560
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
557
561
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
558
562
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
559
563
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
560
- VImg: typeof import('vuetify/components')['VImg']
561
- VItemGroup: typeof import('vuetify/components')['VItemGroup']
562
- VItem: typeof import('vuetify/components')['VItem']
563
564
  VKbd: typeof import('vuetify/components')['VKbd']
564
- VInput: typeof import('vuetify/components')['VInput']
565
+ VLabel: typeof import('vuetify/components')['VLabel']
566
+ VMain: typeof import('vuetify/components')['VMain']
565
567
  VList: typeof import('vuetify/components')['VList']
566
568
  VListGroup: typeof import('vuetify/components')['VListGroup']
567
569
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -571,46 +573,45 @@ declare module 'vue' {
571
573
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
572
574
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
573
575
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
574
- VMain: typeof import('vuetify/components')['VMain']
575
- VLabel: typeof import('vuetify/components')['VLabel']
576
576
  VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
577
+ VOverlay: typeof import('vuetify/components')['VOverlay']
577
578
  VMenu: typeof import('vuetify/components')['VMenu']
578
- VMessages: typeof import('vuetify/components')['VMessages']
579
579
  VOtpInput: typeof import('vuetify/components')['VOtpInput']
580
+ VMessages: typeof import('vuetify/components')['VMessages']
580
581
  VPagination: typeof import('vuetify/components')['VPagination']
581
- VOverlay: typeof import('vuetify/components')['VOverlay']
582
- VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
583
582
  VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
584
- VRating: typeof import('vuetify/components')['VRating']
585
583
  VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
584
+ VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
585
+ VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
586
586
  VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
587
587
  VSelect: typeof import('vuetify/components')['VSelect']
588
- VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
589
- VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
590
- VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
591
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
592
588
  VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
589
+ VRating: typeof import('vuetify/components')['VRating']
593
590
  VSlider: typeof import('vuetify/components')['VSlider']
594
- VSwitch: typeof import('vuetify/components')['VSwitch']
595
- VTab: typeof import('vuetify/components')['VTab']
596
- VTabs: typeof import('vuetify/components')['VTabs']
597
- VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
598
- VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
591
+ VSnackbar: typeof import('vuetify/components')['VSnackbar']
592
+ VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
593
+ VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
599
594
  VStepper: typeof import('vuetify/components')['VStepper']
600
595
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
601
596
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
602
597
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
603
598
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
604
599
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
600
+ VSheet: typeof import('vuetify/components')['VSheet']
601
+ VSwitch: typeof import('vuetify/components')['VSwitch']
605
602
  VSystemBar: typeof import('vuetify/components')['VSystemBar']
606
- VTextarea: typeof import('vuetify/components')['VTextarea']
607
- VTable: typeof import('vuetify/components')['VTable']
608
603
  VTextField: typeof import('vuetify/components')['VTextField']
609
- VTimeline: typeof import('vuetify/components')['VTimeline']
610
- VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
604
+ VTable: typeof import('vuetify/components')['VTable']
605
+ VTab: typeof import('vuetify/components')['VTab']
606
+ VTabs: typeof import('vuetify/components')['VTabs']
607
+ VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
608
+ VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
609
+ VTextarea: typeof import('vuetify/components')['VTextarea']
611
610
  VToolbar: typeof import('vuetify/components')['VToolbar']
612
611
  VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
613
612
  VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
613
+ VTimeline: typeof import('vuetify/components')['VTimeline']
614
+ VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
614
615
  VTooltip: typeof import('vuetify/components')['VTooltip']
615
616
  VWindow: typeof import('vuetify/components')['VWindow']
616
617
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
@@ -623,21 +624,20 @@ declare module 'vue' {
623
624
  VRow: typeof import('vuetify/components')['VRow']
624
625
  VSpacer: typeof import('vuetify/components')['VSpacer']
625
626
  VHover: typeof import('vuetify/components')['VHover']
626
- VLazy: typeof import('vuetify/components')['VLazy']
627
+ VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
627
628
  VLayout: typeof import('vuetify/components')['VLayout']
628
629
  VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
629
- VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
630
+ VLazy: typeof import('vuetify/components')['VLazy']
631
+ VNoSsr: typeof import('vuetify/components')['VNoSsr']
630
632
  VParallax: typeof import('vuetify/components')['VParallax']
631
633
  VRadio: typeof import('vuetify/components')['VRadio']
632
634
  VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
633
635
  VResponsive: typeof import('vuetify/components')['VResponsive']
634
- VNoSsr: typeof import('vuetify/components')['VNoSsr']
635
636
  VSparkline: typeof import('vuetify/components')['VSparkline']
636
637
  VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
637
638
  VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
638
639
  VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
639
640
  VValidation: typeof import('vuetify/components')['VValidation']
640
- VSheet: typeof import('vuetify/components')['VSheet']
641
641
  VFabTransition: typeof import('vuetify/components')['VFabTransition']
642
642
  VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
643
643
  VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
@@ -664,18 +664,18 @@ declare module 'vue' {
664
664
  VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
665
665
  VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
666
666
  VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
667
+ VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
667
668
  VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
668
669
  VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
669
670
  VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
670
- VTreeview: typeof import('vuetify/labs/components')['VTreeview']
671
- VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
672
- VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
673
- VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
674
671
  VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
675
672
  VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
676
673
  VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
674
+ VTreeview: typeof import('vuetify/labs/components')['VTreeview']
675
+ VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
676
+ VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
677
677
  VDateInput: typeof import('vuetify/labs/components')['VDateInput']
678
- VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
679
678
  VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
679
+ VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
680
680
  }
681
681
  }
package/lib/framework.js CHANGED
@@ -107,7 +107,7 @@ export function createVuetify() {
107
107
  };
108
108
  });
109
109
  }
110
- export const version = "3.7.15-dev.2025-03-06";
110
+ export const version = "3.7.15-dev.2025-03-08";
111
111
  createVuetify.version = version;
112
112
 
113
113
  // Vue's inject() can only be used in setup