vuetify 3.7.0 → 3.7.1

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 (114) hide show
  1. package/dist/json/attributes.json +169 -169
  2. package/dist/json/importMap-labs.json +24 -24
  3. package/dist/json/importMap.json +166 -166
  4. package/dist/json/web-types.json +227 -216
  5. package/dist/vuetify-labs.css +3529 -3517
  6. package/dist/vuetify-labs.d.ts +1850 -38
  7. package/dist/vuetify-labs.esm.js +27 -15
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +27 -15
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +2464 -2452
  12. package/dist/vuetify.d.ts +444 -120
  13. package/dist/vuetify.esm.js +20 -14
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +20 -14
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +1058 -1057
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/blueprints/index.d.mts +4 -1
  21. package/lib/blueprints/md1.d.mts +4 -1
  22. package/lib/blueprints/md2.d.mts +4 -1
  23. package/lib/blueprints/md3.d.mts +4 -1
  24. package/lib/components/VAlert/index.d.mts +4 -1
  25. package/lib/components/VAppBar/index.d.mts +4 -1
  26. package/lib/components/VAutocomplete/index.d.mts +49 -4
  27. package/lib/components/VAvatar/VAvatar.css +1 -1
  28. package/lib/components/VAvatar/_variables.scss +1 -1
  29. package/lib/components/VAvatar/index.d.mts +4 -1
  30. package/lib/components/VBadge/index.d.mts +4 -1
  31. package/lib/components/VBanner/index.d.mts +4 -1
  32. package/lib/components/VBreadcrumbs/index.d.mts +4 -1
  33. package/lib/components/VBtn/index.d.mts +4 -1
  34. package/lib/components/VCard/index.d.mts +4 -1
  35. package/lib/components/VCarousel/index.d.mts +4 -1
  36. package/lib/components/VCheckbox/index.d.mts +4 -1
  37. package/lib/components/VChip/index.d.mts +4 -1
  38. package/lib/components/VChipGroup/index.d.mts +4 -1
  39. package/lib/components/VCombobox/index.d.mts +49 -4
  40. package/lib/components/VDataTable/index.d.mts +4 -1
  41. package/lib/components/VDatePicker/index.d.mts +4 -1
  42. package/lib/components/VDialog/VDialog.mjs +2 -0
  43. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  44. package/lib/components/VDialog/index.d.mts +42 -3
  45. package/lib/components/VEmptyState/index.d.mts +4 -1
  46. package/lib/components/VExpansionPanel/index.d.mts +4 -1
  47. package/lib/components/VFab/index.d.mts +4 -1
  48. package/lib/components/VField/index.d.mts +4 -1
  49. package/lib/components/VFileInput/index.d.mts +31 -4
  50. package/lib/components/VForm/index.d.mts +96 -3
  51. package/lib/components/VIcon/index.d.mts +4 -1
  52. package/lib/components/VInfiniteScroll/VInfiniteScroll.css +13 -1
  53. package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +6 -8
  54. package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs.map +1 -1
  55. package/lib/components/VInfiniteScroll/VInfiniteScroll.sass +10 -1
  56. package/lib/components/VInput/index.d.mts +4 -1
  57. package/lib/components/VList/index.d.mts +4 -1
  58. package/lib/components/VMenu/index.d.mts +45 -3
  59. package/lib/components/VPagination/index.d.mts +4 -1
  60. package/lib/components/VRadio/index.d.mts +4 -1
  61. package/lib/components/VRadioGroup/index.d.mts +4 -1
  62. package/lib/components/VRangeSlider/index.d.mts +4 -1
  63. package/lib/components/VRating/index.d.mts +4 -1
  64. package/lib/components/VSelect/index.d.mts +49 -4
  65. package/lib/components/VSelectionControl/index.d.mts +4 -1
  66. package/lib/components/VSelectionControlGroup/index.d.mts +4 -1
  67. package/lib/components/VSlideGroup/index.d.mts +4 -1
  68. package/lib/components/VSlider/index.d.mts +4 -1
  69. package/lib/components/VSnackbar/index.d.mts +36 -3
  70. package/lib/components/VSwitch/index.d.mts +4 -1
  71. package/lib/components/VTabs/index.d.mts +19 -4
  72. package/lib/components/VTextField/index.d.mts +37 -4
  73. package/lib/components/VTextarea/index.d.mts +31 -4
  74. package/lib/components/VTimeline/index.d.mts +4 -1
  75. package/lib/components/VTooltip/index.d.mts +36 -3
  76. package/lib/components/VWindow/index.d.mts +4 -1
  77. package/lib/components/index.d.mts +361 -28
  78. package/lib/components/index.mjs +1 -1
  79. package/lib/components/index.mjs.map +1 -1
  80. package/lib/composables/forwardRefs.mjs +2 -0
  81. package/lib/composables/forwardRefs.mjs.map +1 -1
  82. package/lib/composables/icons.mjs.map +1 -1
  83. package/lib/composables/index.mjs.map +1 -1
  84. package/lib/entry-bundler.mjs +1 -1
  85. package/lib/framework.mjs +1 -1
  86. package/lib/iconsets/fa-svg.d.mts +4 -1
  87. package/lib/iconsets/fa.d.mts +4 -1
  88. package/lib/iconsets/fa4.d.mts +4 -1
  89. package/lib/iconsets/md.d.mts +4 -1
  90. package/lib/iconsets/mdi-svg.d.mts +4 -1
  91. package/lib/iconsets/mdi.d.mts +4 -1
  92. package/lib/index.d.mts +87 -93
  93. package/lib/labs/VDateInput/index.d.mts +4 -1
  94. package/lib/labs/VNumberInput/VNumberInput.mjs +7 -1
  95. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  96. package/lib/labs/VNumberInput/index.d.mts +2277 -795
  97. package/lib/labs/VSnackbarQueue/index.d.mts +36 -3
  98. package/lib/labs/VStepperVertical/index.d.mts +4 -1
  99. package/lib/labs/VTreeview/index.d.mts +4 -1
  100. package/lib/labs/components.d.mts +2297 -782
  101. package/lib/util/helpers.mjs +7 -3
  102. package/lib/util/helpers.mjs.map +1 -1
  103. package/package.json +2 -6
  104. package/lib/components/VTreeview/VTreeview.mjs +0 -350
  105. package/lib/components/VTreeview/VTreeview.mjs.map +0 -1
  106. package/lib/components/VTreeview/VTreeview.sass +0 -128
  107. package/lib/components/VTreeview/VTreeviewNode.mjs +0 -321
  108. package/lib/components/VTreeview/VTreeviewNode.mjs.map +0 -1
  109. package/lib/components/VTreeview/_mixins.sass +0 -18
  110. package/lib/components/VTreeview/_variables.scss +0 -10
  111. package/lib/components/VTreeview/index.mjs +0 -10
  112. package/lib/components/VTreeview/index.mjs.map +0 -1
  113. package/lib/components/VTreeview/util/filterTreeItems.mjs +0 -25
  114. package/lib/components/VTreeview/util/filterTreeItems.mjs.map +0 -1
@@ -17,7 +17,7 @@ export * from "./VCheckbox/index.mjs";
17
17
  export * from "./VChip/index.mjs";
18
18
  export * from "./VChipGroup/index.mjs";
19
19
  export * from "./VCode/index.mjs";
20
- export * from "./VColorPicker/index.mjs"; // export * from './VContent'
20
+ export * from "./VColorPicker/index.mjs";
21
21
  export * from "./VCombobox/index.mjs";
22
22
  export * from "./VConfirmEdit/index.mjs";
23
23
  export * from "./VCounter/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './VApp'\nexport * from './VAppBar'\nexport * from './VAlert'\nexport * from './VAutocomplete'\nexport * from './VAvatar'\nexport * from './VBadge'\nexport * from './VBanner'\nexport * from './VBottomNavigation'\nexport * from './VBottomSheet'\nexport * from './VBreadcrumbs'\nexport * from './VBtn'\nexport * from './VBtnGroup'\nexport * from './VBtnToggle'\n// export * from './VCalendar'\nexport * from './VCard'\nexport * from './VCarousel'\nexport * from './VCheckbox'\nexport * from './VChip'\nexport * from './VChipGroup'\nexport * from './VCode'\nexport * from './VColorPicker'\n// export * from './VContent'\nexport * from './VCombobox'\nexport * from './VConfirmEdit'\nexport * from './VCounter'\nexport * from './VDataIterator'\nexport * from './VDataTable'\nexport * from './VDatePicker'\nexport * from './VDefaultsProvider'\nexport * from './VDialog'\nexport * from './VDivider'\nexport * from './VEmptyState'\nexport * from './VExpansionPanel'\nexport * from './VFab'\nexport * from './VField'\nexport * from './VFileInput'\nexport * from './VFooter'\nexport * from './VForm'\nexport * from './VGrid'\nexport * from './VHover'\nexport * from './VIcon'\nexport * from './VImg'\nexport * from './VInfiniteScroll'\nexport * from './VInput'\nexport * from './VItemGroup'\nexport * from './VKbd'\nexport * from './VLabel'\nexport * from './VLayout'\nexport * from './VLazy'\nexport * from './VList'\nexport * from './VLocaleProvider'\nexport * from './VMain'\nexport * from './VMenu'\nexport * from './VMessages'\nexport * from './VNavigationDrawer'\nexport * from './VNoSsr'\nexport * from './VOtpInput'\n// export * from './VOverflowBtn'\nexport * from './VOverlay'\nexport * from './VPagination'\nexport * from './VParallax'\nexport * from './VProgressCircular'\nexport * from './VProgressLinear'\nexport * from './VRadio'\nexport * from './VRadioGroup'\nexport * from './VRangeSlider'\nexport * from './VRating'\nexport * from './VResponsive'\nexport * from './VSelect'\nexport * from './VSelectionControl'\nexport * from './VSelectionControlGroup'\nexport * from './VSheet'\nexport * from './VSkeletonLoader'\nexport * from './VSlideGroup'\nexport * from './VSlider'\nexport * from './VSnackbar'\nexport * from './VSparkline'\nexport * from './VSpeedDial'\nexport * from './VStepper'\nexport * from './VSwitch'\nexport * from './VSystemBar'\nexport * from './VTabs'\nexport * from './VTable'\nexport * from './VTextarea'\nexport * from './VTextField'\nexport * from './VThemeProvider'\nexport * from './VTimeline'\n// export * from './VTimePicker'\nexport * from './VToolbar'\nexport * from './VTooltip'\n// export * from './VTreeview'\nexport * from './VValidation'\nexport * from './VVirtualScroll'\nexport * from './VWindow'\nexport * from './transitions'\n"],"mappings":";;;;;;;;;;;;wCAaA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0CAQA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCAoCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCA8BA;AAAA;AAAA,sCAGA;AAAA;AAAA;AAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './VApp'\nexport * from './VAppBar'\nexport * from './VAlert'\nexport * from './VAutocomplete'\nexport * from './VAvatar'\nexport * from './VBadge'\nexport * from './VBanner'\nexport * from './VBottomNavigation'\nexport * from './VBottomSheet'\nexport * from './VBreadcrumbs'\nexport * from './VBtn'\nexport * from './VBtnGroup'\nexport * from './VBtnToggle'\n// export * from './VCalendar'\nexport * from './VCard'\nexport * from './VCarousel'\nexport * from './VCheckbox'\nexport * from './VChip'\nexport * from './VChipGroup'\nexport * from './VCode'\nexport * from './VColorPicker'\nexport * from './VCombobox'\nexport * from './VConfirmEdit'\nexport * from './VCounter'\nexport * from './VDataIterator'\nexport * from './VDataTable'\nexport * from './VDatePicker'\nexport * from './VDefaultsProvider'\nexport * from './VDialog'\nexport * from './VDivider'\nexport * from './VEmptyState'\nexport * from './VExpansionPanel'\nexport * from './VFab'\nexport * from './VField'\nexport * from './VFileInput'\nexport * from './VFooter'\nexport * from './VForm'\nexport * from './VGrid'\nexport * from './VHover'\nexport * from './VIcon'\nexport * from './VImg'\nexport * from './VInfiniteScroll'\nexport * from './VInput'\nexport * from './VItemGroup'\nexport * from './VKbd'\nexport * from './VLabel'\nexport * from './VLayout'\nexport * from './VLazy'\nexport * from './VList'\nexport * from './VLocaleProvider'\nexport * from './VMain'\nexport * from './VMenu'\nexport * from './VMessages'\nexport * from './VNavigationDrawer'\nexport * from './VNoSsr'\nexport * from './VOtpInput'\n// export * from './VOverflowBtn'\nexport * from './VOverlay'\nexport * from './VPagination'\nexport * from './VParallax'\nexport * from './VProgressCircular'\nexport * from './VProgressLinear'\nexport * from './VRadio'\nexport * from './VRadioGroup'\nexport * from './VRangeSlider'\nexport * from './VRating'\nexport * from './VResponsive'\nexport * from './VSelect'\nexport * from './VSelectionControl'\nexport * from './VSelectionControlGroup'\nexport * from './VSheet'\nexport * from './VSkeletonLoader'\nexport * from './VSlideGroup'\nexport * from './VSlider'\nexport * from './VSnackbar'\nexport * from './VSparkline'\nexport * from './VSpeedDial'\nexport * from './VStepper'\nexport * from './VSwitch'\nexport * from './VSystemBar'\nexport * from './VTabs'\nexport * from './VTable'\nexport * from './VTextarea'\nexport * from './VTextField'\nexport * from './VThemeProvider'\nexport * from './VTimeline'\n// export * from './VTimePicker'\nexport * from './VToolbar'\nexport * from './VTooltip'\n// export * from './VTreeview'\nexport * from './VValidation'\nexport * from './VVirtualScroll'\nexport * from './VWindow'\nexport * from './transitions'\n"],"mappings":";;;;;;;;;;;;wCAaA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCA2CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCA8BA;AAAA;AAAA,sCAGA;AAAA;AAAA;AAAA;AAAA","ignoreList":[]}
@@ -4,6 +4,8 @@ const Refs = Symbol('Forwarded refs');
4
4
 
5
5
  /** Omit properties starting with P */
6
6
 
7
+ /** Omit keyof $props from T */
8
+
7
9
  function getDescriptor(obj, key) {
8
10
  let currentObj = obj;
9
11
  while (currentObj) {
@@ -1 +1 @@
1
- {"version":3,"file":"forwardRefs.mjs","names":["Refs","Symbol","getDescriptor","obj","key","currentObj","descriptor","Reflect","getOwnPropertyDescriptor","Object","getPrototypeOf","undefined","forwardRefs","target","_len","arguments","length","refs","Array","_key","Proxy","get","has","startsWith","ref","value","val","bind","set","_","setupState","childRefs","queue","slice","shift","push"],"sources":["../../src/composables/forwardRefs.ts"],"sourcesContent":["// Types\nimport type { ComponentPublicInstance, Ref, UnwrapRef } from 'vue'\nimport type { UnionToIntersection } from '@/util'\n\nconst Refs = Symbol('Forwarded refs')\n\n/** Omit properties starting with P */\ntype OmitPrefix<T, P extends string> = [Extract<keyof T, `${P}${any}`>] extends [never] ? T : Omit<T, `${P}${any}`>\n\ntype OmitProps<T> = T extends { $props: any } ? Omit<T, keyof T['$props']> : T\n\nfunction getDescriptor (obj: any, key: PropertyKey) {\n let currentObj = obj\n while (currentObj) {\n const descriptor = Reflect.getOwnPropertyDescriptor(currentObj, key)\n if (descriptor) return descriptor\n currentObj = Object.getPrototypeOf(currentObj)\n }\n return undefined\n}\n\nexport function forwardRefs<T extends {}, U extends Ref<HTMLElement | Omit<ComponentPublicInstance, '$emit' | '$slots'> | undefined>[]> (\n target: T,\n ...refs: U\n): T & UnionToIntersection<{ [K in keyof U]: OmitPrefix<OmitProps<NonNullable<UnwrapRef<U[K]>>>, '$'> }[number]> {\n (target as any)[Refs] = refs\n\n return new Proxy(target, {\n get (target, key) {\n if (Reflect.has(target, key)) {\n return Reflect.get(target, key)\n }\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return\n\n for (const ref of refs) {\n if (ref.value && Reflect.has(ref.value, key)) {\n const val = Reflect.get(ref.value, key)\n return typeof val === 'function'\n ? val.bind(ref.value)\n : val\n }\n }\n },\n has (target, key) {\n if (Reflect.has(target, key)) {\n return true\n }\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return false\n\n for (const ref of refs) {\n if (ref.value && Reflect.has(ref.value, key)) {\n return true\n }\n }\n return false\n },\n set (target, key, value) {\n if (Reflect.has(target, key)) {\n return Reflect.set(target, key, value)\n }\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return false\n\n for (const ref of refs) {\n if (ref.value && Reflect.has(ref.value, key)) {\n return Reflect.set(ref.value, key, value)\n }\n }\n\n return false\n },\n getOwnPropertyDescriptor (target, key) {\n const descriptor = Reflect.getOwnPropertyDescriptor(target, key)\n if (descriptor) return descriptor\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return\n\n // Check each ref's own properties\n for (const ref of refs) {\n if (!ref.value) continue\n const descriptor = getDescriptor(ref.value, key) ?? ('_' in ref.value ? getDescriptor(ref.value._?.setupState, key) : undefined)\n if (descriptor) return descriptor\n }\n\n // Recursive search up each ref's prototype\n for (const ref of refs) {\n const childRefs = ref.value && (ref.value as any)[Refs]\n if (!childRefs) continue\n const queue = childRefs.slice()\n while (queue.length) {\n const ref = queue.shift()\n const descriptor = getDescriptor(ref.value, key)\n if (descriptor) return descriptor\n const childRefs = ref.value && (ref.value as any)[Refs]\n if (childRefs) queue.push(...childRefs)\n }\n }\n\n return undefined\n },\n }) as any\n}\n"],"mappings":"AAAA;;AAIA,MAAMA,IAAI,GAAGC,MAAM,CAAC,gBAAgB,CAAC;;AAErC;;AAKA,SAASC,aAAaA,CAAEC,GAAQ,EAAEC,GAAgB,EAAE;EAClD,IAAIC,UAAU,GAAGF,GAAG;EACpB,OAAOE,UAAU,EAAE;IACjB,MAAMC,UAAU,GAAGC,OAAO,CAACC,wBAAwB,CAACH,UAAU,EAAED,GAAG,CAAC;IACpE,IAAIE,UAAU,EAAE,OAAOA,UAAU;IACjCD,UAAU,GAAGI,MAAM,CAACC,cAAc,CAACL,UAAU,CAAC;EAChD;EACA,OAAOM,SAAS;AAClB;AAEA,OAAO,SAASC,WAAWA,CACzBC,MAAS,EAEsG;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAD5GC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK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AAa,CAACsB,GAAG,CAACC,KAAK,EAAErB,GAAG,CAAC,KAAK,GAAG,IAAIoB,GAAG,CAACC,KAAK,GAAGvB,aAAa,CAACsB,GAAG,CAACC,KAAK,CAACI,CAAC,EAAEC,UAAU,EAAE1B,GAAG,CAAC,GAAGO,SAAS,CAAC;QAChI,IAAIL,UAAU,EAAE,OAAOA,UAAU;MACnC;;MAEA;MACA,KAAK,MAAMkB,GAAG,IAAIP,IAAI,EAAE;QACtB,MAAMc,SAAS,GAAGP,GAAG,CAACC,KAAK,IAAKD,GAAG,CAACC,KAAK,CAASzB,IAAI,CAAC;QACvD,IAAI,CAAC+B,SAAS,EAAE;QAChB,MAAMC,KAAK,GAAGD,SAAS,CAACE,KAAK,CAAC,CAAC;QAC/B,OAAOD,KAAK,CAAChB,MAAM,EAAE;UACnB,MAAMQ,GAAG,GAAGQ,KAAK,CAACE,KAAK,CAAC,CAAC;UACzB,MAAM5B,UAAU,GAAGJ,aAAa,CAACsB,GAAG,CAACC,KAAK,EAAErB,GAAG,CAAC;UAChD,IAAIE,UAAU,EAAE,OAAOA,UAAU;UACjC,MAAMyB,SAAS,GAAGP,GAAG,CAACC,KAAK,IAAKD,GAAG,CAACC,KAAK,CAASzB,IAAI,CAAC;UACvD,IAAI+B,SAAS,EAAEC,KAAK,CAACG,IAAI,CAAC,GAAGJ,SAAS,CAAC;QACzC;MACF;MAEA,OAAOpB,SAAS;IAClB;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"forwardRefs.mjs","names":["Refs","Symbol","getDescriptor","obj","key","currentObj","descriptor","Reflect","getOwnPropertyDescriptor","Object","getPrototypeOf","undefined","forwardRefs","target","_len","arguments","length","refs","Array","_key","Proxy","get","has","startsWith","ref","value","val","bind","set","_","setupState","childRefs","queue","slice","shift","push"],"sources":["../../src/composables/forwardRefs.ts"],"sourcesContent":["// Types\nimport type { ComponentOptionsBase, ComponentPublicInstance, Ref, UnwrapRef } from 'vue'\nimport type { UnionToIntersection } from '@/util'\n\nconst Refs = Symbol('Forwarded refs')\n\n/** Omit properties starting with P */\ntype OmitPrefix<\n T,\n P extends string,\n E = Extract<keyof T, `${P}${any}`>,\n> = [E] extends [never] ? T : Omit<T, `${P}${any}`>\ntype OmitPrivate<T> = OmitPrefix<T, '$'>\n\n/** Omit keyof $props from T */\ntype OmitProps<T> = T extends { $props: any } ? Omit<T, keyof T['$props']> : T\n\nfunction getDescriptor (obj: any, key: PropertyKey) {\n let currentObj = obj\n while (currentObj) {\n const descriptor = Reflect.getOwnPropertyDescriptor(currentObj, key)\n if (descriptor) return descriptor\n currentObj = Object.getPrototypeOf(currentObj)\n }\n return undefined\n}\n\nexport function forwardRefs<\n T extends {},\n U extends Ref<HTMLElement | Omit<ComponentPublicInstance, '$emit' | '$slots'> | undefined>[],\n UU = { [K in keyof U]: NonNullable<UnwrapRef<U[K]>> }[number],\n UC = { [K in keyof U]: OmitPrivate<OmitProps<NonNullable<UnwrapRef<U[K]>>>> }[number],\n R = T & UnionToIntersection<UC> & {\n _allExposed: T | (\n UU extends { $options: infer O }\n ? O extends ComponentOptionsBase<any, infer E, any, any, any, any, any, any>\n ? E\n : never\n : never\n )\n }\n> (target: T, ...refs: U): R {\n (target as any)[Refs] = refs\n\n return new Proxy(target, {\n get (target, key) {\n if (Reflect.has(target, key)) {\n return Reflect.get(target, key)\n }\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return\n\n for (const ref of refs) {\n if (ref.value && Reflect.has(ref.value, key)) {\n const val = Reflect.get(ref.value, key)\n return typeof val === 'function'\n ? val.bind(ref.value)\n : val\n }\n }\n },\n has (target, key) {\n if (Reflect.has(target, key)) {\n return true\n }\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return false\n\n for (const ref of refs) {\n if (ref.value && Reflect.has(ref.value, key)) {\n return true\n }\n }\n return false\n },\n set (target, key, value) {\n if (Reflect.has(target, key)) {\n return Reflect.set(target, key, value)\n }\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return false\n\n for (const ref of refs) {\n if (ref.value && Reflect.has(ref.value, key)) {\n return Reflect.set(ref.value, key, value)\n }\n }\n\n return false\n },\n getOwnPropertyDescriptor (target, key) {\n const descriptor = Reflect.getOwnPropertyDescriptor(target, key)\n if (descriptor) return descriptor\n\n // Skip internal properties\n if (typeof key === 'symbol' || key.startsWith('$') || key.startsWith('__')) return\n\n // Check each ref's own properties\n for (const ref of refs) {\n if (!ref.value) continue\n const descriptor = getDescriptor(ref.value, key) ?? ('_' in ref.value ? getDescriptor(ref.value._?.setupState, key) : undefined)\n if (descriptor) return descriptor\n }\n\n // Recursive search up each ref's prototype\n for (const ref of refs) {\n const childRefs = ref.value && (ref.value as any)[Refs]\n if (!childRefs) continue\n const queue = childRefs.slice()\n while (queue.length) {\n const ref = queue.shift()\n const descriptor = getDescriptor(ref.value, key)\n if (descriptor) return descriptor\n const childRefs = ref.value && (ref.value as any)[Refs]\n if (childRefs) queue.push(...childRefs)\n }\n }\n\n return undefined\n },\n }) as any\n}\n"],"mappings":"AAAA;;AAIA,MAAMA,IAAI,GAAGC,MAAM,CAAC,gBAAgB,CAAC;;AAErC;;AAQA;;AAGA,SAASC,aAAaA,CAAEC,GAAQ,EAAEC,GAAgB,EAAE;EAClD,IAAIC,UAAU,GAAGF,GAAG;EACpB,OAAOE,UAAU,EAAE;IACjB,MAAMC,UAAU,GAAGC,OAAO,CAACC,wBAAwB,CAACH,UAAU,EAAED,GAAG,CAAC;IACpE,IAAIE,UAAU,EAAE,OAAOA,UAAU;IACjCD,UAAU,GAAGI,MAAM,CAACC,cAAc,CAACL,UAAU,CAAC;EAChD;EACA,OAAOM,SAAS;AAClB;AAEA,OAAO,SAASC,WAAWA,CAcxBC,MAAS,EAAiB;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAZC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAA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UAAU,GAAGJ,aAAa,CAACsB,GAAG,CAACC,KAAK,EAAErB,GAAG,CAAC,KAAK,GAAG,IAAIoB,GAAG,CAACC,KAAK,GAAGvB,aAAa,CAACsB,GAAG,CAACC,KAAK,CAACI,CAAC,EAAEC,UAAU,EAAE1B,GAAG,CAAC,GAAGO,SAAS,CAAC;QAChI,IAAIL,UAAU,EAAE,OAAOA,UAAU;MACnC;;MAEA;MACA,KAAK,MAAMkB,GAAG,IAAIP,IAAI,EAAE;QACtB,MAAMc,SAAS,GAAGP,GAAG,CAACC,KAAK,IAAKD,GAAG,CAACC,KAAK,CAASzB,IAAI,CAAC;QACvD,IAAI,CAAC+B,SAAS,EAAE;QAChB,MAAMC,KAAK,GAAGD,SAAS,CAACE,KAAK,CAAC,CAAC;QAC/B,OAAOD,KAAK,CAAChB,MAAM,EAAE;UACnB,MAAMQ,GAAG,GAAGQ,KAAK,CAACE,KAAK,CAAC,CAAC;UACzB,MAAM5B,UAAU,GAAGJ,aAAa,CAACsB,GAAG,CAACC,KAAK,EAAErB,GAAG,CAAC;UAChD,IAAIE,UAAU,EAAE,OAAOA,UAAU;UACjC,MAAMyB,SAAS,GAAGP,GAAG,CAACC,KAAK,IAAKD,GAAG,CAACC,KAAK,CAASzB,IAAI,CAAC;UACvD,IAAI+B,SAAS,EAAEC,KAAK,CAACG,IAAI,CAAC,GAAGJ,SAAS,CAAC;QACzC;MACF;MAEA,OAAOpB,SAAS;IAClB;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"icons.mjs","names":["aliases","mdi","computed","inject","unref","consoleWarn","defineComponent","genericComponent","mergeDeep","propsFactory","IconValue","String","Function","Object","Array","IconSymbol","Symbol","for","makeIconProps","icon","type","tag","required","VComponentIcon","name","props","setup","_ref","slots","Icon","_createVNode","default","VSvgIcon","inheritAttrs","_ref2","attrs","_mergeProps","isArray","map","path","VLigatureIcon","VClassIcon","genDefaults","svg","component","class","createIcons","options","sets","defaultSet","vuetify","useIcon","icons","Error","iconData","iconAlias","trim","startsWith","slice","iconSetName","keys","find","setName","iconName","length","iconSet"],"sources":["../../src/composables/icons.tsx"],"sourcesContent":["// Icons\nimport { aliases, mdi } from '@/iconsets/mdi'\n\n// Utilities\nimport { computed, inject, unref } from 'vue'\nimport { consoleWarn, defineComponent, genericComponent, mergeDeep, propsFactory } from '@/util'\n\n// Types\nimport type { InjectionKey, JSXComponent, PropType, Ref } from 'vue'\n\nexport type IconValue =\n | string\n | (string | [path: string, opacity: number])[]\n | JSXComponent\nexport const IconValue = [String, Function, Object, Array] as PropType<IconValue>\n\nexport interface IconAliases {\n [name: string]: IconValue\n complete: IconValue\n cancel: IconValue\n close: IconValue\n delete: IconValue\n clear: IconValue\n success: IconValue\n info: IconValue\n warning: IconValue\n error: IconValue\n prev: IconValue\n next: IconValue\n checkboxOn: IconValue\n checkboxOff: IconValue\n checkboxIndeterminate: IconValue\n delimiter: IconValue\n sortAsc: IconValue\n sortDesc: IconValue\n expand: IconValue\n menu: IconValue\n subgroup: IconValue\n dropdown: IconValue\n radioOn: IconValue\n radioOff: IconValue\n edit: IconValue\n ratingEmpty: IconValue\n ratingFull: IconValue\n ratingHalf: IconValue\n loading: IconValue\n first: IconValue\n last: IconValue\n unfold: IconValue\n file: IconValue\n plus: IconValue\n minus: IconValue\n calendar: IconValue\n}\n\nexport interface IconProps {\n tag: string\n icon?: IconValue\n disabled?: Boolean\n}\n\ntype IconComponent = JSXComponent<IconProps>\n\nexport interface IconSet {\n component: IconComponent\n}\n\nexport type InternalIconOptions = {\n defaultSet: string\n aliases: Partial<IconAliases>\n sets: Record<string, IconSet>\n}\n\nexport type IconOptions = Partial<InternalIconOptions>\n\ntype IconInstance = {\n component: IconComponent\n icon?: IconValue\n}\n\nexport const IconSymbol: InjectionKey<InternalIconOptions> = Symbol.for('vuetify:icons')\n\nexport const makeIconProps = propsFactory({\n icon: {\n type: IconValue,\n },\n // Could not remove this and use makeTagProps, types complained because it is not required\n tag: {\n type: String,\n required: true,\n },\n}, 'icon')\n\nexport const VComponentIcon = genericComponent()({\n name: 'VComponentIcon',\n\n props: makeIconProps(),\n\n setup (props, { slots }) {\n return () => {\n const Icon = props.icon as JSXComponent\n return (\n <props.tag>\n { props.icon ? <Icon /> : slots.default?.() }\n </props.tag>\n )\n }\n },\n})\nexport type VComponentIcon = InstanceType<typeof VComponentIcon>\n\nexport const VSvgIcon = defineComponent({\n name: 'VSvgIcon',\n\n inheritAttrs: false,\n\n props: makeIconProps(),\n\n setup (props, { attrs }) {\n return () => {\n return (\n <props.tag { ...attrs } style={ null }>\n <svg\n class=\"v-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n role=\"img\"\n aria-hidden=\"true\"\n >\n { Array.isArray(props.icon)\n ? props.icon.map(path => (\n Array.isArray(path)\n ? <path d={ path[0] as string } fill-opacity={ path[1] }></path>\n : <path d={ path as string }></path>\n ))\n : <path d={ props.icon as string }></path>\n }\n </svg>\n </props.tag>\n )\n }\n },\n})\nexport type VSvgIcon = InstanceType<typeof VSvgIcon>\n\nexport const VLigatureIcon = defineComponent({\n name: 'VLigatureIcon',\n\n props: makeIconProps(),\n\n setup (props) {\n return () => {\n return <props.tag>{ props.icon }</props.tag>\n }\n },\n})\nexport type VLigatureIcon = InstanceType<typeof VLigatureIcon>\n\nexport const VClassIcon = defineComponent({\n name: 'VClassIcon',\n\n props: makeIconProps(),\n\n setup (props) {\n return () => {\n return <props.tag class={ props.icon }></props.tag>\n }\n },\n})\nexport type VClassIcon = InstanceType<typeof VClassIcon>\n\nfunction genDefaults (): Record<string, IconSet> {\n return {\n svg: {\n component: VSvgIcon,\n },\n class: {\n component: VClassIcon,\n },\n }\n}\n\n// Composables\nexport function createIcons (options?: IconOptions) {\n const sets = genDefaults()\n const defaultSet = options?.defaultSet ?? 'mdi'\n\n if (defaultSet === 'mdi' && !sets.mdi) {\n sets.mdi = mdi\n }\n\n return mergeDeep({\n defaultSet,\n sets,\n aliases: {\n ...aliases,\n /* eslint-disable max-len */\n vuetify: [\n 'M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z',\n ['M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z', 0.6],\n ],\n 'vuetify-outline': 'svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z',\n 'vuetify-play': [\n 'm6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z',\n ['M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z', 0.6],\n ],\n /* eslint-enable max-len */\n },\n }, options) as InternalIconOptions\n}\n\nexport const useIcon = (props: Ref<IconValue | undefined>) => {\n const icons = inject(IconSymbol)\n\n if (!icons) throw new Error('Missing Vuetify Icons provide!')\n\n const iconData = computed<IconInstance>(() => {\n const iconAlias = unref(props)\n\n if (!iconAlias) return { component: VComponentIcon }\n\n let icon: IconValue | undefined = iconAlias\n\n if (typeof icon === 'string') {\n icon = icon.trim()\n\n if (icon.startsWith('$')) {\n icon = icons.aliases?.[icon.slice(1)]\n }\n }\n\n if (!icon) consoleWarn(`Could not find aliased icon \"${iconAlias}\"`)\n\n if (Array.isArray(icon)) {\n return {\n component: VSvgIcon,\n icon,\n }\n } else if (typeof icon !== 'string') {\n return {\n component: VComponentIcon,\n icon,\n }\n }\n\n const iconSetName = Object.keys(icons.sets).find(\n setName => typeof icon === 'string' && icon.startsWith(`${setName}:`)\n )\n\n const iconName = iconSetName ? icon.slice(iconSetName.length + 1) : icon\n const iconSet = icons.sets[iconSetName ?? icons.defaultSet]\n\n return {\n component: iconSet.component,\n icon: iconName,\n }\n })\n\n return { iconData }\n}\n"],"mappings":";AAAA;AAAA,SACSA,OAAO,EAAEC,GAAG,+BAErB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACpCC,WAAW,EAAEC,eAAe,EAAEC,gBAAgB,EAAEC,SAAS,EAAEC,YAAY,6BAEhF;AAOA,OAAO,MAAMC,SAAS,GAAG,CAACC,MAAM,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,CAAwB;AAkEjF,OAAO,MAAMC,UAA6C,GAAGC,MAAM,CAACC,GAAG,CAAC,eAAe,CAAC;AAExF,OAAO,MAAMC,aAAa,GAAGT,YAAY,CAAC;EACxCU,IAAI,EAAE;IACJC,IAAI,EAAEV;EACR,CAAC;EACD;EACAW,GAAG,EAAE;IACHD,IAAI,EAAET,MAAM;IACZW,QAAQ,EAAE;EACZ;AACF,CAAC,EAAE,MAAM,CAAC;AAEV,OAAO,MAAMC,cAAc,GAAGhB,gBAAgB,CAAC,CAAC,CAAC;EAC/CiB,IAAI,EAAE,gBAAgB;EAEtBC,KAAK,EAAEP,aAAa,CAAC,CAAC;EAEtBQ,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAA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AC,CAAC,GAAG7C,IAAI;IACxE,MAAM8C,OAAO,GAAGb,KAAK,CAACJ,IAAI,CAACW,WAAW,IAAIP,KAAK,CAACH,UAAU,CAAC;IAE3D,OAAO;MACLL,SAAS,EAAEqB,OAAO,CAACrB,SAAS;MAC5BzB,IAAI,EAAE4C;IACR,CAAC;EACH,CAAC,CAAC;EAEF,OAAO;IAAET;EAAS,CAAC;AACrB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"icons.mjs","names":["aliases","mdi","computed","inject","unref","consoleWarn","defineComponent","genericComponent","mergeDeep","propsFactory","IconValue","String","Function","Object","Array","IconSymbol","Symbol","for","makeIconProps","icon","type","tag","required","VComponentIcon","name","props","setup","_ref","slots","Icon","_createVNode","default","VSvgIcon","inheritAttrs","_ref2","attrs","_mergeProps","isArray","map","path","VLigatureIcon","VClassIcon","genDefaults","svg","component","class","createIcons","options","sets","defaultSet","vuetify","useIcon","icons","Error","iconData","iconAlias","trim","startsWith","slice","iconSetName","keys","find","setName","iconName","length","iconSet"],"sources":["../../src/composables/icons.tsx"],"sourcesContent":["// Icons\nimport { aliases, mdi } from '@/iconsets/mdi'\n\n// Utilities\nimport { computed, inject, unref } from 'vue'\nimport { consoleWarn, defineComponent, genericComponent, mergeDeep, propsFactory } from '@/util'\n\n// Types\nimport type { ComponentPublicInstance, FunctionalComponent, InjectionKey, PropType, Ref } from 'vue'\n\nexport type JSXComponent<Props = any> =\n | { new (): ComponentPublicInstance<Props> }\n | FunctionalComponent<Props>\n\nexport type IconValue =\n | string\n | (string | [path: string, opacity: number])[]\n | JSXComponent\nexport const IconValue = [String, Function, Object, Array] as PropType<IconValue>\n\nexport interface IconAliases {\n [name: string]: IconValue\n complete: IconValue\n cancel: IconValue\n close: IconValue\n delete: IconValue\n clear: IconValue\n success: IconValue\n info: IconValue\n warning: IconValue\n error: IconValue\n prev: IconValue\n next: IconValue\n checkboxOn: IconValue\n checkboxOff: IconValue\n checkboxIndeterminate: IconValue\n delimiter: IconValue\n sortAsc: IconValue\n sortDesc: IconValue\n expand: IconValue\n menu: IconValue\n subgroup: IconValue\n dropdown: IconValue\n radioOn: IconValue\n radioOff: IconValue\n edit: IconValue\n ratingEmpty: IconValue\n ratingFull: IconValue\n ratingHalf: IconValue\n loading: IconValue\n first: IconValue\n last: IconValue\n unfold: IconValue\n file: IconValue\n plus: IconValue\n minus: IconValue\n calendar: IconValue\n}\n\nexport interface IconProps {\n tag: string\n icon?: IconValue\n disabled?: Boolean\n}\n\ntype IconComponent = JSXComponent<IconProps>\n\nexport interface IconSet {\n component: IconComponent\n}\n\nexport type InternalIconOptions = {\n defaultSet: string\n aliases: Partial<IconAliases>\n sets: Record<string, IconSet>\n}\n\nexport type IconOptions = Partial<InternalIconOptions>\n\ntype IconInstance = {\n component: IconComponent\n icon?: IconValue\n}\n\nexport const IconSymbol: InjectionKey<InternalIconOptions> = Symbol.for('vuetify:icons')\n\nexport const makeIconProps = propsFactory({\n icon: {\n type: IconValue,\n },\n // Could not remove this and use makeTagProps, types complained because it is not required\n tag: {\n type: String,\n required: true,\n },\n}, 'icon')\n\nexport const VComponentIcon = genericComponent()({\n name: 'VComponentIcon',\n\n props: makeIconProps(),\n\n setup (props, { slots }) {\n return () => {\n const Icon = props.icon as JSXComponent\n return (\n <props.tag>\n { props.icon ? <Icon /> : slots.default?.() }\n </props.tag>\n )\n }\n },\n})\nexport type VComponentIcon = InstanceType<typeof VComponentIcon>\n\nexport const VSvgIcon = defineComponent({\n name: 'VSvgIcon',\n\n inheritAttrs: false,\n\n props: makeIconProps(),\n\n setup (props, { attrs }) {\n return () => {\n return (\n <props.tag { ...attrs } style={ null }>\n <svg\n class=\"v-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n role=\"img\"\n aria-hidden=\"true\"\n >\n { Array.isArray(props.icon)\n ? props.icon.map(path => (\n Array.isArray(path)\n ? <path d={ path[0] as string } fill-opacity={ path[1] }></path>\n : <path d={ path as string }></path>\n ))\n : <path d={ props.icon as string }></path>\n }\n </svg>\n </props.tag>\n )\n }\n },\n})\nexport type VSvgIcon = InstanceType<typeof VSvgIcon>\n\nexport const VLigatureIcon = defineComponent({\n name: 'VLigatureIcon',\n\n props: makeIconProps(),\n\n setup (props) {\n return () => {\n return <props.tag>{ props.icon }</props.tag>\n }\n },\n})\nexport type VLigatureIcon = InstanceType<typeof VLigatureIcon>\n\nexport const VClassIcon = defineComponent({\n name: 'VClassIcon',\n\n props: makeIconProps(),\n\n setup (props) {\n return () => {\n return <props.tag class={ props.icon }></props.tag>\n }\n },\n})\nexport type VClassIcon = InstanceType<typeof VClassIcon>\n\nfunction genDefaults (): Record<string, IconSet> {\n return {\n svg: {\n component: VSvgIcon,\n },\n class: {\n component: VClassIcon,\n },\n }\n}\n\n// Composables\nexport function createIcons (options?: IconOptions) {\n const sets = genDefaults()\n const defaultSet = options?.defaultSet ?? 'mdi'\n\n if (defaultSet === 'mdi' && !sets.mdi) {\n sets.mdi = mdi\n }\n\n return mergeDeep({\n defaultSet,\n sets,\n aliases: {\n ...aliases,\n /* eslint-disable max-len */\n vuetify: [\n 'M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z',\n ['M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z', 0.6],\n ],\n 'vuetify-outline': 'svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z',\n 'vuetify-play': [\n 'm6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z',\n ['M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z', 0.6],\n ],\n /* eslint-enable max-len */\n },\n }, options) as InternalIconOptions\n}\n\nexport const useIcon = (props: Ref<IconValue | undefined>) => {\n const icons = inject(IconSymbol)\n\n if (!icons) throw new Error('Missing Vuetify Icons provide!')\n\n const iconData = computed<IconInstance>(() => {\n const iconAlias = unref(props)\n\n if (!iconAlias) return { component: VComponentIcon }\n\n let icon: IconValue | undefined = iconAlias\n\n if (typeof icon === 'string') {\n icon = icon.trim()\n\n if (icon.startsWith('$')) {\n icon = icons.aliases?.[icon.slice(1)]\n }\n }\n\n if (!icon) consoleWarn(`Could not find aliased icon \"${iconAlias}\"`)\n\n if (Array.isArray(icon)) {\n return {\n component: VSvgIcon,\n icon,\n }\n } else if (typeof icon !== 'string') {\n return {\n component: VComponentIcon,\n icon,\n }\n }\n\n const iconSetName = Object.keys(icons.sets).find(\n setName => typeof icon === 'string' && icon.startsWith(`${setName}:`)\n )\n\n const iconName = iconSetName ? icon.slice(iconSetName.length + 1) : icon\n const iconSet = icons.sets[iconSetName ?? icons.defaultSet]\n\n return {\n component: iconSet.component,\n icon: iconName,\n }\n })\n\n return { iconData }\n}\n"],"mappings":";AAAA;AAAA,SACSA,OAAO,EAAEC,GAAG,+BAErB;AACA,SAASC,QAAQ,EAAEC,MAAM,E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AAC,CAAC,CAAC,CAAC;MACvC;IACF;IAEA,IAAI,CAACvC,IAAI,EAAEd,WAAW,CAAC,gCAAgCkD,SAAS,GAAG,CAAC;IAEpE,IAAIzC,KAAK,CAACuB,OAAO,CAAClB,IAAI,CAAC,EAAE;MACvB,OAAO;QACLyB,SAAS,EAAEZ,QAAQ;QACnBb;MACF,CAAC;IACH,CAAC,MAAM,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;MACnC,OAAO;QACLyB,SAAS,EAAErB,cAAc;QACzBJ;MACF,CAAC;IACH;IAEA,MAAMwC,WAAW,GAAG9C,MAAM,CAAC+C,IAAI,CAACR,KAAK,CAACJ,IAAI,CAAC,CAACa,IAAI,CAC9CC,OAAO,IAAI,OAAO3C,IAAI,KAAK,QAAQ,IAAIA,IAAI,CAACsC,UAAU,CAAC,GAAGK,OAAO,GAAG,CACtE,CAAC;IAED,MAAMC,QAAQ,GAAGJ,WAAW,GAAGxC,IAAI,CAACuC,KAAK,CAACC,WAAW,CAACK,MAAM,GAAG,CAAC,CAAC,GAAG7C,IAAI;IACxE,MAAM8C,OAAO,GAAGb,KAAK,CAACJ,IAAI,CAACW,WAAW,IAAIP,KAAK,CAACH,UAAU,CAAC;IAE3D,OAAO;MACLL,SAAS,EAAEqB,OAAO,CAACrB,SAAS;MAC5BzB,IAAI,EAAE4C;IACR,CAAC;EACH,CAAC,CAAC;EAEF,OAAO;IAAET;EAAS,CAAC;AACrB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["useDate","useDefaults","useDisplay","useGoTo","useLayout","useLocale","useRtl","useTheme"],"sources":["../../src/composables/index.ts"],"sourcesContent":["/*\n * PUBLIC INTERFACES ONLY\n * Imports in our code should be to the composable directly, not this file\n */\n\nexport { useDate } from './date'\nexport { useDefaults } from './defaults'\nexport { useDisplay } from './display'\nexport { useGoTo } from './goto'\nexport { useLayout } from './layout'\nexport { useLocale, useRtl } from './locale'\nexport { useTheme } from './theme'\n\nexport type { DateInstance } from './date'\nexport type { DefaultsInstance } from './defaults'\nexport type { DisplayBreakpoint, DisplayInstance, DisplayThresholds } from './display'\nexport type { SubmitEventPromise } from './form'\nexport type { GoToInstance } from './goto'\nexport type { IconAliases, IconProps, IconSet, IconOptions } from './icons'\nexport type { LocaleInstance, LocaleMessages, RtlInstance, LocaleOptions, RtlOptions } from './locale'\nexport type { ThemeDefinition, ThemeInstance } from './theme'\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHA,SAKSA,OAAO;AAAA,SACPC,WAAW;AAAA,SACXC,UAAU;AAAA,SACVC,OAAO;AAAA,SACPC,SAAS;AAAA,SACTC,SAAS,EAAEC,MAAM;AAAA,SACjBC,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"index.mjs","names":["useDate","useDefaults","useDisplay","useGoTo","useLayout","useLocale","useRtl","useTheme"],"sources":["../../src/composables/index.ts"],"sourcesContent":["/*\n * PUBLIC INTERFACES ONLY\n * Imports in our code should be to the composable directly, not this file\n */\n\nexport { useDate } from './date'\nexport { useDefaults } from './defaults'\nexport { useDisplay } from './display'\nexport { useGoTo } from './goto'\nexport { useLayout } from './layout'\nexport { useLocale, useRtl } from './locale'\nexport { useTheme } from './theme'\n\nexport type { DateInstance } from './date'\nexport type { DefaultsInstance } from './defaults'\nexport type { DisplayBreakpoint, DisplayInstance, DisplayThresholds } from './display'\nexport type { SubmitEventPromise } from './form'\nexport type { GoToInstance } from './goto'\nexport type { IconAliases, IconProps, IconSet, IconOptions, JSXComponent } from './icons'\nexport type { LocaleInstance, LocaleMessages, RtlInstance, LocaleOptions, RtlOptions } from './locale'\nexport type { ThemeDefinition, ThemeInstance } from './theme'\n"],"mappings":"AAAA;AACA;AACA;AACA;AAHA,SAKSA,OAAO;AAAA,SACPC,WAAW;AAAA,SACXC,UAAU;AAAA,SACVC,OAAO;AAAA,SACPC,SAAS;AAAA,SACTC,SAAS,EAAEC,MAAM;AAAA,SACjBC,QAAQ","ignoreList":[]}
@@ -16,7 +16,7 @@ export const createVuetify = function () {
16
16
  ...options
17
17
  });
18
18
  };
19
- export const version = "3.7.0";
19
+ export const version = "3.7.1";
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.7.0";
100
+ export const version = "3.7.1";
101
101
  createVuetify.version = version;
102
102
 
103
103
  // Vue's inject() can only be used in setup
@@ -1,5 +1,8 @@
1
- import { JSXComponent, PropType } from 'vue';
1
+ import { PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
2
 
3
+ type JSXComponent<Props = any> = {
4
+ new (): ComponentPublicInstance<Props>;
5
+ } | FunctionalComponent<Props>;
3
6
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
4
7
  declare const IconValue: PropType<IconValue>;
5
8
  interface IconAliases {
@@ -1,5 +1,8 @@
1
- import { JSXComponent, PropType } from 'vue';
1
+ import { PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
2
 
3
+ type JSXComponent<Props = any> = {
4
+ new (): ComponentPublicInstance<Props>;
5
+ } | FunctionalComponent<Props>;
3
6
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
4
7
  declare const IconValue: PropType<IconValue>;
5
8
  interface IconAliases {
@@ -1,5 +1,8 @@
1
- import { JSXComponent, PropType } from 'vue';
1
+ import { PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
2
 
3
+ type JSXComponent<Props = any> = {
4
+ new (): ComponentPublicInstance<Props>;
5
+ } | FunctionalComponent<Props>;
3
6
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
4
7
  declare const IconValue: PropType<IconValue>;
5
8
  interface IconAliases {
@@ -1,5 +1,8 @@
1
- import { JSXComponent, PropType } from 'vue';
1
+ import { PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
2
 
3
+ type JSXComponent<Props = any> = {
4
+ new (): ComponentPublicInstance<Props>;
5
+ } | FunctionalComponent<Props>;
3
6
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
4
7
  declare const IconValue: PropType<IconValue>;
5
8
  interface IconAliases {
@@ -1,5 +1,8 @@
1
- import { JSXComponent, PropType } from 'vue';
1
+ import { PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
2
 
3
+ type JSXComponent<Props = any> = {
4
+ new (): ComponentPublicInstance<Props>;
5
+ } | FunctionalComponent<Props>;
3
6
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
4
7
  declare const IconValue: PropType<IconValue>;
5
8
  interface IconAliases {
@@ -1,5 +1,8 @@
1
- import { JSXComponent, PropType } from 'vue';
1
+ import { PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
2
 
3
+ type JSXComponent<Props = any> = {
4
+ new (): ComponentPublicInstance<Props>;
5
+ } | FunctionalComponent<Props>;
3
6
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
4
7
  declare const IconValue: PropType<IconValue>;
5
8
  interface IconAliases {
package/lib/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { Ref, ComponentPublicInstance, DeepReadonly, JSXComponent, PropType, CSSProperties, App } from 'vue';
2
+ import { Ref, ComponentPublicInstance, DeepReadonly, FunctionalComponent, PropType, CSSProperties, App } from 'vue';
3
3
 
4
4
  interface LocaleMessages {
5
5
  [key: string]: LocaleMessages | string;
@@ -175,6 +175,9 @@ interface ThemeInstance {
175
175
  }
176
176
  declare function useTheme(): ThemeInstance;
177
177
 
178
+ type JSXComponent<Props = any> = {
179
+ new (): ComponentPublicInstance<Props>;
180
+ } | FunctionalComponent<Props>;
178
181
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
179
182
  declare const IconValue: PropType<IconValue>;
180
183
  interface IconAliases {
@@ -446,14 +449,14 @@ declare namespace createVuetify {
446
449
  }
447
450
  declare const version: string;
448
451
 
449
- export { type Blueprint, type DateInstance, DateModule, type DateOptions, type DefaultsInstance, type DisplayBreakpoint, type DisplayInstance, type DisplayThresholds, type GoToInstance, type IconAliases, type IconOptions, type IconProps, type IconSet, type LocaleInstance, type LocaleMessages, type LocaleOptions, type RtlInstance, type RtlOptions, type SubmitEventPromise, type ThemeDefinition, type ThemeInstance, type VuetifyOptions, createVuetify, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
452
+ export { type Blueprint, type DateInstance, DateModule, type DateOptions, type DefaultsInstance, type DisplayBreakpoint, type DisplayInstance, type DisplayThresholds, type GoToInstance, type IconAliases, type IconOptions, type IconProps, type IconSet, type JSXComponent, type LocaleInstance, type LocaleMessages, type LocaleOptions, type RtlInstance, type RtlOptions, type SubmitEventPromise, type ThemeDefinition, type ThemeInstance, type VuetifyOptions, createVuetify, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
450
453
 
451
454
  /* eslint-disable local-rules/sort-imports */
452
455
 
453
456
  import 'vue/jsx'
454
- import type { FunctionalComponent, UnwrapNestedRefs, VNodeChild } from 'vue'
455
-
457
+ import type { UnwrapNestedRefs, VNodeChild } from 'vue'
456
458
 
459
+ // These already exist in scope in the final bundle
457
460
 
458
461
  declare global {
459
462
  namespace JSX {
@@ -462,49 +465,62 @@ declare global {
462
465
  }
463
466
  }
464
467
  }
465
- interface _GlobalComponents {
466
- VAppBar: typeof import('vuetify/components')['VAppBar']
467
- VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
468
- VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
468
+
469
+ declare module 'vue' {
470
+ interface Vuetify {
471
+ defaults: DefaultsInstance
472
+ display: UnwrapNestedRefs<DisplayInstance>
473
+ theme: UnwrapNestedRefs<ThemeInstance>
474
+ icons: IconOptions
475
+ locale: UnwrapNestedRefs<LocaleInstance & RtlInstance>
476
+ date: DateInstance
477
+ }
478
+
479
+ export interface ComponentCustomProperties {
480
+ $vuetify: Vuetify
481
+ }
482
+ export interface HTMLAttributes {
483
+ $children?: VNodeChild
484
+ }
485
+ export interface SVGAttributes {
486
+ $children?: VNodeChild
487
+ }
488
+ export interface GlobalComponents {
469
489
  VApp: typeof import('vuetify/components')['VApp']
490
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
470
491
  VAlert: typeof import('vuetify/components')['VAlert']
471
492
  VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
472
- VAvatar: typeof import('vuetify/components')['VAvatar']
473
493
  VBanner: typeof import('vuetify/components')['VBanner']
474
494
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
475
495
  VBannerText: typeof import('vuetify/components')['VBannerText']
476
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
477
- VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
478
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
479
496
  VBadge: typeof import('vuetify/components')['VBadge']
480
- VBtn: typeof import('vuetify/components')['VBtn']
497
+ VAppBar: typeof import('vuetify/components')['VAppBar']
498
+ VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
499
+ VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
500
+ VAvatar: typeof import('vuetify/components')['VAvatar']
481
501
  VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
482
502
  VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
483
503
  VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
484
- VCarousel: typeof import('vuetify/components')['VCarousel']
485
- VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
486
- VChip: typeof import('vuetify/components')['VChip']
487
- VCode: typeof import('vuetify/components')['VCode']
504
+ VBtn: typeof import('vuetify/components')['VBtn']
505
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
506
+ VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
507
+ VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
508
+ VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
488
509
  VCard: typeof import('vuetify/components')['VCard']
489
510
  VCardActions: typeof import('vuetify/components')['VCardActions']
490
511
  VCardItem: typeof import('vuetify/components')['VCardItem']
491
512
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
492
513
  VCardText: typeof import('vuetify/components')['VCardText']
493
514
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
494
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
515
+ VChipGroup: typeof import('vuetify/components')['VChipGroup']
516
+ VCarousel: typeof import('vuetify/components')['VCarousel']
517
+ VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
495
518
  VCheckbox: typeof import('vuetify/components')['VCheckbox']
496
519
  VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
497
- VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
498
- VChipGroup: typeof import('vuetify/components')['VChipGroup']
520
+ VCode: typeof import('vuetify/components')['VCode']
521
+ VChip: typeof import('vuetify/components')['VChip']
499
522
  VColorPicker: typeof import('vuetify/components')['VColorPicker']
500
523
  VCounter: typeof import('vuetify/components')['VCounter']
501
- VCombobox: typeof import('vuetify/components')['VCombobox']
502
- VDatePicker: typeof import('vuetify/components')['VDatePicker']
503
- VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
504
- VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
505
- VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
506
- VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
507
- VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
508
524
  VDataTable: typeof import('vuetify/components')['VDataTable']
509
525
  VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
510
526
  VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
@@ -512,32 +528,37 @@ interface _GlobalComponents {
512
528
  VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
513
529
  VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
514
530
  VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
515
- VDialog: typeof import('vuetify/components')['VDialog']
531
+ VDatePicker: typeof import('vuetify/components')['VDatePicker']
532
+ VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
533
+ VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
534
+ VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
535
+ VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
536
+ VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
537
+ VCombobox: typeof import('vuetify/components')['VCombobox']
516
538
  VDivider: typeof import('vuetify/components')['VDivider']
517
- VFab: typeof import('vuetify/components')['VFab']
518
539
  VEmptyState: typeof import('vuetify/components')['VEmptyState']
519
- VFileInput: typeof import('vuetify/components')['VFileInput']
540
+ VDialog: typeof import('vuetify/components')['VDialog']
520
541
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
521
542
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
522
543
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
523
544
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
545
+ VFab: typeof import('vuetify/components')['VFab']
546
+ VFooter: typeof import('vuetify/components')['VFooter']
524
547
  VField: typeof import('vuetify/components')['VField']
525
548
  VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
549
+ VFileInput: typeof import('vuetify/components')['VFileInput']
526
550
  VIcon: typeof import('vuetify/components')['VIcon']
527
551
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
528
552
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
529
553
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
530
554
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
531
- VFooter: typeof import('vuetify/components')['VFooter']
532
- VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
555
+ VImg: typeof import('vuetify/components')['VImg']
533
556
  VInput: typeof import('vuetify/components')['VInput']
534
557
  VKbd: typeof import('vuetify/components')['VKbd']
558
+ VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
559
+ VLabel: typeof import('vuetify/components')['VLabel']
535
560
  VItemGroup: typeof import('vuetify/components')['VItemGroup']
536
561
  VItem: typeof import('vuetify/components')['VItem']
537
- VImg: typeof import('vuetify/components')['VImg']
538
- VLabel: typeof import('vuetify/components')['VLabel']
539
- VMenu: typeof import('vuetify/components')['VMenu']
540
- VMain: typeof import('vuetify/components')['VMain']
541
562
  VList: typeof import('vuetify/components')['VList']
542
563
  VListGroup: typeof import('vuetify/components')['VListGroup']
543
564
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -547,52 +568,58 @@ interface _GlobalComponents {
547
568
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
548
569
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
549
570
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
550
- VOtpInput: typeof import('vuetify/components')['VOtpInput']
551
- VOverlay: typeof import('vuetify/components')['VOverlay']
571
+ VMain: typeof import('vuetify/components')['VMain']
572
+ VMenu: typeof import('vuetify/components')['VMenu']
552
573
  VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
553
574
  VMessages: typeof import('vuetify/components')['VMessages']
575
+ VOtpInput: typeof import('vuetify/components')['VOtpInput']
576
+ VOverlay: typeof import('vuetify/components')['VOverlay']
577
+ VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
554
578
  VPagination: typeof import('vuetify/components')['VPagination']
555
- VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
556
579
  VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
557
- VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
558
- VSelect: typeof import('vuetify/components')['VSelect']
559
580
  VRating: typeof import('vuetify/components')['VRating']
581
+ VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
560
582
  VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
561
- VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
583
+ VSelect: typeof import('vuetify/components')['VSelect']
562
584
  VSheet: typeof import('vuetify/components')['VSheet']
563
- VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
585
+ VSlider: typeof import('vuetify/components')['VSlider']
564
586
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
565
587
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
588
+ VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
566
589
  VStepper: typeof import('vuetify/components')['VStepper']
567
590
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
568
591
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
569
592
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
570
593
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
571
594
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
572
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
573
- VSlider: typeof import('vuetify/components')['VSlider']
574
- VSystemBar: typeof import('vuetify/components')['VSystemBar']
575
- VTextarea: typeof import('vuetify/components')['VTextarea']
576
- VTable: typeof import('vuetify/components')['VTable']
577
- VTextField: typeof import('vuetify/components')['VTextField']
595
+ VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
578
596
  VSwitch: typeof import('vuetify/components')['VSwitch']
579
597
  VTab: typeof import('vuetify/components')['VTab']
580
598
  VTabs: typeof import('vuetify/components')['VTabs']
581
599
  VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
582
600
  VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
601
+ VSnackbar: typeof import('vuetify/components')['VSnackbar']
602
+ VSystemBar: typeof import('vuetify/components')['VSystemBar']
603
+ VTable: typeof import('vuetify/components')['VTable']
604
+ VTextField: typeof import('vuetify/components')['VTextField']
605
+ VTextarea: typeof import('vuetify/components')['VTextarea']
583
606
  VTimeline: typeof import('vuetify/components')['VTimeline']
584
607
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
585
608
  VToolbar: typeof import('vuetify/components')['VToolbar']
586
609
  VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
587
610
  VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
611
+ VTooltip: typeof import('vuetify/components')['VTooltip']
588
612
  VWindow: typeof import('vuetify/components')['VWindow']
589
613
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
590
- VTooltip: typeof import('vuetify/components')['VTooltip']
591
614
  VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
592
615
  VDataIterator: typeof import('vuetify/components')['VDataIterator']
593
616
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
594
- VHover: typeof import('vuetify/components')['VHover']
617
+ VContainer: typeof import('vuetify/components')['VContainer']
618
+ VCol: typeof import('vuetify/components')['VCol']
619
+ VRow: typeof import('vuetify/components')['VRow']
620
+ VSpacer: typeof import('vuetify/components')['VSpacer']
595
621
  VForm: typeof import('vuetify/components')['VForm']
622
+ VHover: typeof import('vuetify/components')['VHover']
596
623
  VLayout: typeof import('vuetify/components')['VLayout']
597
624
  VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
598
625
  VLazy: typeof import('vuetify/components')['VLazy']
@@ -602,14 +629,10 @@ interface _GlobalComponents {
602
629
  VRadio: typeof import('vuetify/components')['VRadio']
603
630
  VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
604
631
  VResponsive: typeof import('vuetify/components')['VResponsive']
605
- VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
606
632
  VSparkline: typeof import('vuetify/components')['VSparkline']
633
+ VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
634
+ VValidation: typeof import('vuetify/components')['VValidation']
607
635
  VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
608
- VContainer: typeof import('vuetify/components')['VContainer']
609
- VCol: typeof import('vuetify/components')['VCol']
610
- VRow: typeof import('vuetify/components')['VRow']
611
- VSpacer: typeof import('vuetify/components')['VSpacer']
612
- VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
613
636
  VFabTransition: typeof import('vuetify/components')['VFabTransition']
614
637
  VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
615
638
  VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
@@ -626,13 +649,8 @@ interface _GlobalComponents {
626
649
  VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
627
650
  VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
628
651
  VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
629
- VValidation: typeof import('vuetify/components')['VValidation']
652
+ VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
630
653
  VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
631
- VPicker: typeof import('vuetify/labs/components')['VPicker']
632
- VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
633
- VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
634
- VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
635
- VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
636
654
  VCalendar: typeof import('vuetify/labs/components')['VCalendar']
637
655
  VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
638
656
  VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
@@ -645,37 +663,13 @@ interface _GlobalComponents {
645
663
  VTreeview: typeof import('vuetify/labs/components')['VTreeview']
646
664
  VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
647
665
  VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
666
+ VPicker: typeof import('vuetify/labs/components')['VPicker']
667
+ VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
668
+ VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
669
+ VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
670
+ VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
648
671
  VDateInput: typeof import('vuetify/labs/components')['VDateInput']
649
- VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
650
672
  VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
651
- }
652
- declare module 'vue' {
653
- export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>
654
- export interface GlobalComponents extends _GlobalComponents {}
655
- }
656
-
657
- declare module '@vue/runtime-dom' {
658
- export interface HTMLAttributes {
659
- $children?: VNodeChild
660
- }
661
- export interface SVGAttributes {
662
- $children?: VNodeChild
663
- }
664
- export interface GlobalComponents extends _GlobalComponents {}
665
- }
666
-
667
- declare module '@vue/runtime-core' {
668
- interface Vuetify {
669
- defaults: DefaultsInstance
670
- display: UnwrapNestedRefs<DisplayInstance>
671
- theme: UnwrapNestedRefs<ThemeInstance>
672
- icons: IconOptions
673
- locale: UnwrapNestedRefs<LocaleInstance & RtlInstance>
674
- date: DateInstance
675
- }
676
-
677
- export interface ComponentCustomProperties {
678
- $vuetify: Vuetify
673
+ VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
679
674
  }
680
- export interface GlobalComponents extends _GlobalComponents {}
681
675
  }
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, PropType, JSXComponent } from 'vue';
2
+ import { ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
3
3
 
4
4
  type ClassValue = any;
5
5
 
@@ -38,6 +38,9 @@ interface ValidationProps {
38
38
  validationValue: any;
39
39
  }
40
40
 
41
+ type JSXComponent<Props = any> = {
42
+ new (): ComponentPublicInstance<Props>;
43
+ } | FunctionalComponent<Props>;
41
44
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
42
45
  declare const IconValue: PropType<IconValue>;
43
46
 
@@ -53,7 +53,13 @@ export const VNumberInput = genericComponent()({
53
53
  const model = computed({
54
54
  get: () => _model.value,
55
55
  set(val) {
56
- if (typeof val !== 'string') _model.value = val;
56
+ if (val === null) {
57
+ _model.value = null;
58
+ return;
59
+ }
60
+ if (!isNaN(+val) && +val <= props.max && +val >= props.min) {
61
+ _model.value = +val;
62
+ }
57
63
  }
58
64
  });
59
65
  const vTextFieldRef = ref();