vuetify 3.6.13 → 3.7.0-beta.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 (177) hide show
  1. package/dist/json/attributes.json +166 -26
  2. package/dist/json/importMap-labs.json +16 -16
  3. package/dist/json/importMap.json +138 -138
  4. package/dist/json/tags.json +40 -5
  5. package/dist/json/web-types.json +394 -41
  6. package/dist/vuetify-labs.css +2300 -2284
  7. package/dist/vuetify-labs.d.ts +12763 -12509
  8. package/dist/vuetify-labs.esm.js +153 -145
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +153 -145
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +887 -871
  13. package/dist/vuetify.d.ts +11161 -10982
  14. package/dist/vuetify.esm.js +107 -65
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +107 -65
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +1076 -1078
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAlert/index.d.mts +55 -55
  22. package/lib/components/VAppBar/index.d.mts +175 -169
  23. package/lib/components/VAutocomplete/VAutocomplete.mjs +15 -8
  24. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  25. package/lib/components/VAutocomplete/index.d.mts +635 -634
  26. package/lib/components/VAvatar/VAvatar.css +7 -0
  27. package/lib/components/VAvatar/VAvatar.mjs +6 -1
  28. package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
  29. package/lib/components/VAvatar/VAvatar.sass +1 -0
  30. package/lib/components/VAvatar/_variables.scss +13 -0
  31. package/lib/components/VAvatar/index.d.mts +36 -30
  32. package/lib/components/VBadge/index.d.mts +58 -58
  33. package/lib/components/VBanner/index.d.mts +59 -59
  34. package/lib/components/VBottomNavigation/index.d.mts +58 -58
  35. package/lib/components/VBottomSheet/index.d.mts +125 -125
  36. package/lib/components/VBreadcrumbs/index.d.mts +42 -42
  37. package/lib/components/VBtn/VBtn.mjs +3 -1
  38. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  39. package/lib/components/VBtn/index.d.mts +113 -107
  40. package/lib/components/VBtnGroup/index.d.mts +23 -23
  41. package/lib/components/VBtnToggle/index.d.mts +40 -40
  42. package/lib/components/VCard/index.d.mts +93 -93
  43. package/lib/components/VCarousel/index.d.mts +130 -121
  44. package/lib/components/VCheckbox/index.d.mts +166 -166
  45. package/lib/components/VChip/index.d.mts +86 -86
  46. package/lib/components/VChipGroup/index.d.mts +46 -46
  47. package/lib/components/VColorPicker/index.d.mts +96 -96
  48. package/lib/components/VCombobox/VCombobox.mjs +15 -8
  49. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  50. package/lib/components/VCombobox/index.d.mts +635 -634
  51. package/lib/components/VConfirmEdit/index.d.mts +2 -2
  52. package/lib/components/VCounter/index.d.mts +27 -27
  53. package/lib/components/VDataIterator/index.d.mts +50 -50
  54. package/lib/components/VDataTable/index.d.mts +253 -253
  55. package/lib/components/VDatePicker/index.d.mts +134 -134
  56. package/lib/components/VDialog/index.d.mts +378 -378
  57. package/lib/components/VDivider/index.d.mts +15 -15
  58. package/lib/components/VEmptyState/index.d.mts +47 -47
  59. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +7 -2
  60. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
  61. package/lib/components/VExpansionPanel/index.d.mts +196 -124
  62. package/lib/components/VFab/index.d.mts +233 -227
  63. package/lib/components/VField/index.d.mts +46 -46
  64. package/lib/components/VFileInput/index.d.mts +243 -243
  65. package/lib/components/VFooter/index.d.mts +50 -50
  66. package/lib/components/VForm/index.d.mts +9 -9
  67. package/lib/components/VGrid/VContainer.mjs +6 -1
  68. package/lib/components/VGrid/VContainer.mjs.map +1 -1
  69. package/lib/components/VGrid/index.d.mts +178 -142
  70. package/lib/components/VIcon/index.d.mts +24 -24
  71. package/lib/components/VImg/VImg.css +9 -0
  72. package/lib/components/VImg/VImg.mjs +2 -0
  73. package/lib/components/VImg/VImg.mjs.map +1 -1
  74. package/lib/components/VImg/VImg.sass +9 -0
  75. package/lib/components/VImg/index.d.mts +101 -92
  76. package/lib/components/VInfiniteScroll/index.d.mts +22 -22
  77. package/lib/components/VInput/index.d.mts +53 -53
  78. package/lib/components/VItemGroup/index.d.mts +17 -17
  79. package/lib/components/VLabel/index.d.mts +8 -8
  80. package/lib/components/VLayout/index.d.mts +36 -36
  81. package/lib/components/VLazy/index.d.mts +31 -31
  82. package/lib/components/VList/VListItem.css +2 -2
  83. package/lib/components/VList/VListItem.mjs +2 -0
  84. package/lib/components/VList/VListItem.mjs.map +1 -1
  85. package/lib/components/VList/VListItem.sass +1 -1
  86. package/lib/components/VList/index.d.mts +191 -190
  87. package/lib/components/VLocaleProvider/index.d.mts +7 -7
  88. package/lib/components/VMain/index.d.mts +10 -10
  89. package/lib/components/VMenu/VMenu.mjs +7 -5
  90. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  91. package/lib/components/VMenu/index.d.mts +423 -423
  92. package/lib/components/VMessages/index.d.mts +20 -20
  93. package/lib/components/VNavigationDrawer/index.d.mts +72 -72
  94. package/lib/components/VNavigationDrawer/sticky.mjs.map +1 -1
  95. package/lib/components/VOtpInput/index.d.mts +88 -88
  96. package/lib/components/VOverlay/index.d.mts +104 -104
  97. package/lib/components/VOverlay/locationStrategies.mjs +0 -6
  98. package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
  99. package/lib/components/VPagination/index.d.mts +55 -55
  100. package/lib/components/VParallax/index.d.mts +7 -7
  101. package/lib/components/VProgressCircular/index.d.mts +24 -24
  102. package/lib/components/VProgressLinear/index.d.mts +52 -52
  103. package/lib/components/VRadio/index.d.mts +41 -41
  104. package/lib/components/VRadioGroup/index.d.mts +97 -97
  105. package/lib/components/VRangeSlider/index.d.mts +94 -94
  106. package/lib/components/VRating/index.d.mts +22 -22
  107. package/lib/components/VResponsive/index.d.mts +23 -23
  108. package/lib/components/VSelect/VSelect.mjs +15 -13
  109. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  110. package/lib/components/VSelect/index.d.mts +635 -634
  111. package/lib/components/VSelect/useScrolling.mjs +3 -3
  112. package/lib/components/VSelect/useScrolling.mjs.map +1 -1
  113. package/lib/components/VSelectionControl/index.d.mts +43 -43
  114. package/lib/components/VSelectionControlGroup/index.d.mts +39 -39
  115. package/lib/components/VSheet/index.d.mts +34 -34
  116. package/lib/components/VSkeletonLoader/index.d.mts +17 -17
  117. package/lib/components/VSlideGroup/VSlideGroup.mjs +3 -1
  118. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  119. package/lib/components/VSlideGroup/index.d.mts +39 -33
  120. package/lib/components/VSlider/index.d.mts +87 -87
  121. package/lib/components/VSnackbar/index.d.mts +436 -436
  122. package/lib/components/VSparkline/index.d.mts +38 -38
  123. package/lib/components/VSpeedDial/index.d.mts +185 -185
  124. package/lib/components/VStepper/index.d.mts +119 -119
  125. package/lib/components/VSwitch/index.d.mts +100 -100
  126. package/lib/components/VSystemBar/index.d.mts +39 -39
  127. package/lib/components/VTable/index.d.mts +4 -4
  128. package/lib/components/VTabs/index.d.mts +530 -512
  129. package/lib/components/VTextField/index.d.mts +397 -397
  130. package/lib/components/VTextarea/index.d.mts +274 -274
  131. package/lib/components/VTimeline/index.d.mts +26 -26
  132. package/lib/components/VToolbar/index.d.mts +53 -53
  133. package/lib/components/VTooltip/index.d.mts +451 -451
  134. package/lib/components/VValidation/index.d.mts +22 -21
  135. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +2 -0
  136. package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
  137. package/lib/components/VVirtualScroll/index.d.mts +13 -10
  138. package/lib/components/VWindow/index.d.mts +31 -31
  139. package/lib/components/index.d.mts +11225 -11046
  140. package/lib/components/transitions/index.d.mts +200 -200
  141. package/lib/composables/nested/nested.mjs +3 -4
  142. package/lib/composables/nested/nested.mjs.map +1 -1
  143. package/lib/composables/nested/openStrategies.mjs +4 -2
  144. package/lib/composables/nested/openStrategies.mjs.map +1 -1
  145. package/lib/composables/nested/selectStrategies.mjs +5 -5
  146. package/lib/composables/nested/selectStrategies.mjs.map +1 -1
  147. package/lib/composables/validation.mjs +8 -6
  148. package/lib/composables/validation.mjs.map +1 -1
  149. package/lib/composables/virtual.mjs +1 -0
  150. package/lib/composables/virtual.mjs.map +1 -1
  151. package/lib/entry-bundler.mjs +1 -1
  152. package/lib/entry-bundler.mjs.map +1 -1
  153. package/lib/framework.mjs +1 -1
  154. package/lib/framework.mjs.map +1 -1
  155. package/lib/index.d.mts +44 -44
  156. package/lib/labs/VCalendar/index.d.mts +52 -52
  157. package/lib/labs/VDateInput/index.d.mts +244 -244
  158. package/lib/labs/VNumberInput/index.d.mts +235 -235
  159. package/lib/labs/VPicker/index.d.mts +45 -45
  160. package/lib/labs/VSnackbarQueue/index.d.mts +642 -642
  161. package/lib/labs/VStepperVertical/index.d.mts +224 -188
  162. package/lib/labs/VTimePicker/VTimePickerClock.mjs +0 -1
  163. package/lib/labs/VTimePicker/VTimePickerClock.mjs.map +1 -1
  164. package/lib/labs/VTimePicker/index.d.mts +115 -115
  165. package/lib/labs/VTreeview/VTreeview.mjs +7 -5
  166. package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
  167. package/lib/labs/VTreeview/VTreeviewChildren.mjs +33 -10
  168. package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
  169. package/lib/labs/VTreeview/VTreeviewItem.css +1 -1
  170. package/lib/labs/VTreeview/VTreeviewItem.mjs +14 -74
  171. package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
  172. package/lib/labs/VTreeview/VTreeviewItem.sass +2 -5
  173. package/lib/labs/VTreeview/index.d.mts +270 -253
  174. package/lib/labs/components.d.mts +1835 -1782
  175. package/lib/util/helpers.mjs +5 -0
  176. package/lib/util/helpers.mjs.map +1 -1
  177. package/package.json +10 -5
@@ -36,7 +36,8 @@ declare const EventProp: <T extends any[] = any[]>() => PropType<(...args: T) =>
36
36
 
37
37
  type ValidationResult = string | boolean;
38
38
  type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
39
- type ValidateOnValue = 'blur' | 'input' | 'submit';
39
+ type ValidateOnValue = 'blur' | 'input' | 'submit' | 'invalid-input';
40
+ type ValidateOn = ValidateOnValue | `${ValidateOnValue} lazy` | `${ValidateOnValue} eager` | `lazy ${ValidateOnValue}` | `eager ${ValidateOnValue}` | 'lazy' | 'eager';
40
41
  interface ValidationProps {
41
42
  disabled: boolean | null;
42
43
  error: boolean;
@@ -49,7 +50,7 @@ interface ValidationProps {
49
50
  rules: readonly ValidationRule[];
50
51
  modelValue: any;
51
52
  'onUpdate:modelValue': EventProp | undefined;
52
- validateOn?: ValidateOnValue | `${ValidateOnValue} lazy` | `lazy ${ValidateOnValue}` | 'lazy';
53
+ validateOn?: ValidateOn;
53
54
  validationValue: any;
54
55
  }
55
56
  declare function useValidation(props: ValidationProps, name?: string, id?: MaybeRef<string | number>): {
@@ -75,42 +76,42 @@ declare const VValidation: {
75
76
  new (...args: any[]): vue.CreateComponentPublicInstance<{
76
77
  error: boolean;
77
78
  disabled: boolean | null;
79
+ readonly: boolean | null;
78
80
  focused: boolean;
79
81
  errorMessages: string | readonly string[] | null;
80
82
  maxErrors: string | number;
81
- readonly: boolean | null;
82
83
  rules: readonly ValidationRule[];
83
84
  } & {
84
- label?: string | undefined;
85
85
  name?: string | undefined;
86
+ label?: string | undefined;
86
87
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
87
- validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
88
+ validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
88
89
  validationValue?: any;
89
90
  } & {}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
90
91
  [key: string]: any;
91
92
  }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
92
93
  'update:modelValue': (value: any) => boolean;
93
- }, "v-slot:default" | "$children" | "v-slots" | "modelValue" | "update:modelValue">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
94
+ }, "$children" | "v-slot:default" | "v-slots" | "modelValue" | "update:modelValue">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
94
95
  error: boolean;
95
96
  disabled: boolean | null;
97
+ readonly: boolean | null;
96
98
  focused: boolean;
97
99
  errorMessages: string | readonly string[] | null;
98
100
  maxErrors: string | number;
99
- readonly: boolean | null;
100
101
  rules: readonly ValidationRule[];
101
102
  } & {
102
- label?: string | undefined;
103
103
  name?: string | undefined;
104
+ label?: string | undefined;
104
105
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
105
- validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
106
+ validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
106
107
  validationValue?: any;
107
108
  } & {}, {
108
109
  error: boolean;
109
110
  disabled: boolean | null;
111
+ readonly: boolean | null;
110
112
  focused: boolean;
111
113
  errorMessages: string | readonly string[] | null;
112
114
  maxErrors: string | number;
113
- readonly: boolean | null;
114
115
  rules: readonly ValidationRule[];
115
116
  }, true, {}, vue.SlotsType<Partial<{
116
117
  default: (arg: {
@@ -140,26 +141,26 @@ declare const VValidation: {
140
141
  }, {
141
142
  error: boolean;
142
143
  disabled: boolean | null;
144
+ readonly: boolean | null;
143
145
  focused: boolean;
144
146
  errorMessages: string | readonly string[] | null;
145
147
  maxErrors: string | number;
146
- readonly: boolean | null;
147
148
  rules: readonly ValidationRule[];
148
149
  } & {
149
- label?: string | undefined;
150
150
  name?: string | undefined;
151
+ label?: string | undefined;
151
152
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
152
- validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
153
+ validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
153
154
  validationValue?: any;
154
155
  } & {}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
155
156
  [key: string]: any;
156
157
  }>[] | undefined, {}, {}, {}, {
157
158
  error: boolean;
158
159
  disabled: boolean | null;
160
+ readonly: boolean | null;
159
161
  focused: boolean;
160
162
  errorMessages: string | readonly string[] | null;
161
163
  maxErrors: string | number;
162
- readonly: boolean | null;
163
164
  rules: readonly ValidationRule[];
164
165
  }>;
165
166
  __isFragment?: undefined;
@@ -168,28 +169,28 @@ declare const VValidation: {
168
169
  } & vue.ComponentOptionsBase<{
169
170
  error: boolean;
170
171
  disabled: boolean | null;
172
+ readonly: boolean | null;
171
173
  focused: boolean;
172
174
  errorMessages: string | readonly string[] | null;
173
175
  maxErrors: string | number;
174
- readonly: boolean | null;
175
176
  rules: readonly ValidationRule[];
176
177
  } & {
177
- label?: string | undefined;
178
178
  name?: string | undefined;
179
+ label?: string | undefined;
179
180
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
180
- validateOn?: ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined;
181
+ validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
181
182
  validationValue?: any;
182
183
  } & {}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
183
184
  [key: string]: any;
184
185
  }>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
185
186
  'update:modelValue': (value: any) => boolean;
186
- }, "v-slot:default" | "$children" | "v-slots" | "modelValue" | "update:modelValue">, string, {
187
+ }, "$children" | "v-slot:default" | "v-slots" | "modelValue" | "update:modelValue">, string, {
187
188
  error: boolean;
188
189
  disabled: boolean | null;
190
+ readonly: boolean | null;
189
191
  focused: boolean;
190
192
  errorMessages: string | readonly string[] | null;
191
193
  maxErrors: string | number;
192
- readonly: boolean | null;
193
194
  rules: readonly ValidationRule[];
194
195
  }, {}, string, vue.SlotsType<Partial<{
195
196
  default: (arg: {
@@ -242,7 +243,7 @@ declare const VValidation: {
242
243
  default: () => never[];
243
244
  };
244
245
  modelValue: null;
245
- validateOn: vue.PropType<("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined>;
246
+ validateOn: vue.PropType<("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined>;
246
247
  validationValue: null;
247
248
  }, vue.ExtractPropTypes<{
248
249
  focused: BooleanConstructor;
@@ -271,7 +272,7 @@ declare const VValidation: {
271
272
  default: () => never[];
272
273
  };
273
274
  modelValue: null;
274
- validateOn: vue.PropType<("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "lazy" | undefined>;
275
+ validateOn: vue.PropType<("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined>;
275
276
  validationValue: null;
276
277
  }>>;
277
278
  type VValidation = InstanceType<typeof VValidation>;
@@ -32,6 +32,7 @@ export const VVirtualScroll = genericComponent()({
32
32
  dimensionStyles
33
33
  } = useDimension(props);
34
34
  const {
35
+ calculateVisibleItems,
35
36
  containerRef,
36
37
  markerRef,
37
38
  handleScroll,
@@ -103,6 +104,7 @@ export const VVirtualScroll = genericComponent()({
103
104
  }, [children])]);
104
105
  });
105
106
  return {
107
+ calculateVisibleItems,
106
108
  scrollToIndex
107
109
  };
108
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VVirtualScroll.mjs","names":["VVirtualScrollItem","makeComponentProps","makeDimensionProps","useDimension","useToggleScope","makeVirtualProps","useVirtual","onMounted","onScopeDispose","toRef","convertToUnit","genericComponent","getCurrentInstance","getScrollParent","propsFactory","useRender","makeVVirtualScrollProps","items","type","Array","default","renderless","Boolean","VVirtualScroll","name","props","setup","_ref","slots","vm","dimensionStyles","containerRef","markerRef","handleScroll","handleScrollend","handleItemResize","scrollToIndex","paddingTop","paddingBottom","computedItems","handleListeners","add","arguments","length","undefined","method","value","document","documentElement","passive","vnode","el","children","map","item","_createVNode","index","height","slotProps","raw","_Fragment","class","style"],"sources":["../../../src/components/VVirtualScroll/VVirtualScroll.tsx"],"sourcesContent":["// Styles\nimport './VVirtualScroll.sass'\n\n// Components\nimport { VVirtualScrollItem } from './VVirtualScrollItem'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeVirtualProps, useVirtual } from '@/composables/virtual'\n\n// Utilities\nimport { onMounted, onScopeDispose, toRef } from 'vue'\nimport {\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n getScrollParent,\n propsFactory,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { GenericProps } from '@/util'\n\nexport interface VVirtualScrollSlot<T> {\n item: T\n index: number\n}\n\nexport const makeVVirtualScrollProps = propsFactory({\n items: {\n type: Array as PropType<readonly unknown[]>,\n default: () => ([]),\n },\n renderless: Boolean,\n\n ...makeVirtualProps(),\n ...makeComponentProps(),\n ...makeDimensionProps(),\n}, 'VVirtualScroll')\n\nexport const VVirtualScroll = genericComponent<new <T, Renderless extends boolean = false>(\n props: {\n items?: readonly T[]\n renderless?: Renderless\n },\n slots: {\n default: VVirtualScrollSlot<T> & (Renderless extends true ? {\n itemRef: Ref<HTMLElement | undefined>\n } : {})\n }\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VVirtualScroll',\n\n props: makeVVirtualScrollProps(),\n\n setup (props, { slots }) {\n const vm = getCurrentInstance('VVirtualScroll')\n const { dimensionStyles } = useDimension(props)\n const {\n containerRef,\n markerRef,\n handleScroll,\n handleScrollend,\n handleItemResize,\n scrollToIndex,\n paddingTop,\n paddingBottom,\n computedItems,\n } = useVirtual(props, toRef(props, 'items'))\n\n useToggleScope(() => props.renderless, () => {\n function handleListeners (add = false) {\n const method = add ? 'addEventListener' : 'removeEventListener'\n\n if (containerRef.value === document.documentElement) {\n document[method]('scroll', handleScroll, { passive: true })\n document[method]('scrollend', handleScrollend)\n } else {\n containerRef.value?.[method]('scroll', handleScroll, { passive: true })\n containerRef.value?.[method]('scrollend', handleScrollend)\n }\n }\n\n onMounted(() => {\n containerRef.value = getScrollParent(vm.vnode.el as HTMLElement, true)\n handleListeners(true)\n })\n onScopeDispose(handleListeners)\n })\n\n useRender(() => {\n const children = computedItems.value.map(item => (\n <VVirtualScrollItem\n key={ item.index }\n renderless={ props.renderless }\n onUpdate:height={ height => handleItemResize(item.index, height) }\n >\n { slotProps => slots.default?.({ item: item.raw, index: item.index, ...slotProps }) }\n </VVirtualScrollItem>\n ))\n\n return props.renderless ? (\n <>\n <div ref={ markerRef } class=\"v-virtual-scroll__spacer\" style={{ paddingTop: convertToUnit(paddingTop.value) }} />\n { children }\n <div class=\"v-virtual-scroll__spacer\" style={{ paddingBottom: convertToUnit(paddingBottom.value) }} />\n </>\n ) : (\n <div\n ref={ containerRef }\n class={[\n 'v-virtual-scroll',\n props.class,\n ]}\n onScrollPassive={ handleScroll }\n onScrollend={ handleScrollend }\n style={[\n dimensionStyles.value,\n props.style,\n ]}\n >\n <div\n ref={ markerRef }\n class=\"v-virtual-scroll__container\"\n style={{\n paddingTop: convertToUnit(paddingTop.value),\n paddingBottom: convertToUnit(paddingBottom.value),\n }}\n >\n { children }\n </div>\n </div>\n )\n })\n\n return {\n scrollToIndex,\n }\n },\n})\n\nexport type VVirtualScroll = InstanceType<typeof VVirtualScroll>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB,oCAE3B;AAAA,SACSC,kBAAkB;AAAA,SAClBC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,cAAc;AAAA,SACdC,gBAAgB,EAAEC,UAAU,yCAErC;AACA,SAASC,SAAS,EAAEC,cAAc,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAEpDC,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,EAClBC,eAAe,EACfC,YAAY,EACZC,SAAS,gCAGX;AASA,OAAO,MAAMC,u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EAAE5B,aAAa,CAAC4B,aAAa,CAACQ,KAAK;QAAE;MAAC,aAAAS,YAAA;QAAA,OAI5FxB,YAAY;QAAA,SACX,CACL,kBAAkB,EAClBN,KAAK,CAACoC,KAAK,CACZ;QAAA,mBACiB5B,YAAY;QAAA,eAChBC,eAAe;QAAA,SACtB,CACLJ,eAAe,CAACgB,KAAK,EACrBrB,KAAK,CAACqC,KAAK;MACZ,IAAAP,YAAA;QAAA,OAGOvB,SAAS;QAAA;QAAA,SAER;UACLK,UAAU,EAAE3B,aAAa,CAAC2B,UAAU,CAACS,KAAK,CAAC;UAC3CR,aAAa,EAAE5B,aAAa,CAAC4B,aAAa,CAACQ,KAAK;QAClD;MAAC,IAECM,QAAQ,IAGf;IACH,CAAC,CAAC;IAEF,OAAO;MACLhB;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VVirtualScroll.mjs","names":["VVirtualScrollItem","makeComponentProps","makeDimensionProps","useDimension","useToggleScope","makeVirtualProps","useVirtual","onMounted","onScopeDispose","toRef","convertToUnit","genericComponent","getCurrentInstance","getScrollParent","propsFactory","useRender","makeVVirtualScrollProps","items","type","Array","default","renderless","Boolean","VVirtualScroll","name","props","setup","_ref","slots","vm","dimensionStyles","calculateVisibleItems","containerRef","markerRef","handleScroll","handleScrollend","handleItemResize","scrollToIndex","paddingTop","paddingBottom","computedItems","handleListeners","add","arguments","length","undefined","method","value","document","documentElement","passive","vnode","el","children","map","item","_createVNode","index","height","slotProps","raw","_Fragment","class","style"],"sources":["../../../src/components/VVirtualScroll/VVirtualScroll.tsx"],"sourcesContent":["// Styles\nimport './VVirtualScroll.sass'\n\n// Components\nimport { VVirtualScrollItem } from './VVirtualScrollItem'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeVirtualProps, useVirtual } from '@/composables/virtual'\n\n// Utilities\nimport { onMounted, onScopeDispose, toRef } from 'vue'\nimport {\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n getScrollParent,\n propsFactory,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { GenericProps } from '@/util'\n\nexport interface VVirtualScrollSlot<T> {\n item: T\n index: number\n}\n\nexport const makeVVirtualScrollProps = propsFactory({\n items: {\n type: Array as PropType<readonly unknown[]>,\n default: () => ([]),\n },\n renderless: Boolean,\n\n ...makeVirtualProps(),\n ...makeComponentProps(),\n ...makeDimensionProps(),\n}, 'VVirtualScroll')\n\nexport const VVirtualScroll = genericComponent<new <T, Renderless extends boolean = false>(\n props: {\n items?: readonly T[]\n renderless?: Renderless\n },\n slots: {\n default: VVirtualScrollSlot<T> & (Renderless extends true ? {\n itemRef: Ref<HTMLElement | undefined>\n } : {})\n }\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VVirtualScroll',\n\n props: makeVVirtualScrollProps(),\n\n setup (props, { slots }) {\n const vm = getCurrentInstance('VVirtualScroll')\n const { dimensionStyles } = useDimension(props)\n const {\n calculateVisibleItems,\n containerRef,\n markerRef,\n handleScroll,\n handleScrollend,\n handleItemResize,\n scrollToIndex,\n paddingTop,\n paddingBottom,\n computedItems,\n } = useVirtual(props, toRef(props, 'items'))\n\n useToggleScope(() => props.renderless, () => {\n function handleListeners (add = false) {\n const method = add ? 'addEventListener' : 'removeEventListener'\n\n if (containerRef.value === document.documentElement) {\n document[method]('scroll', handleScroll, { passive: true })\n document[method]('scrollend', handleScrollend)\n } else {\n containerRef.value?.[method]('scroll', handleScroll, { passive: true })\n containerRef.value?.[method]('scrollend', handleScrollend)\n }\n }\n\n onMounted(() => {\n containerRef.value = getScrollParent(vm.vnode.el as HTMLElement, true)\n handleListeners(true)\n })\n onScopeDispose(handleListeners)\n })\n\n useRender(() => {\n const children = computedItems.value.map(item => (\n <VVirtualScrollItem\n key={ item.index }\n renderless={ props.renderless }\n onUpdate:height={ height => handleItemResize(item.index, height) }\n >\n { slotProps => slots.default?.({ item: item.raw, index: item.index, ...slotProps }) }\n </VVirtualScrollItem>\n ))\n\n return props.renderless ? (\n <>\n <div ref={ markerRef } class=\"v-virtual-scroll__spacer\" style={{ paddingTop: convertToUnit(paddingTop.value) }} />\n { children }\n <div class=\"v-virtual-scroll__spacer\" style={{ paddingBottom: convertToUnit(paddingBottom.value) }} />\n </>\n ) : (\n <div\n ref={ containerRef }\n class={[\n 'v-virtual-scroll',\n props.class,\n ]}\n onScrollPassive={ handleScroll }\n onScrollend={ handleScrollend }\n style={[\n dimensionStyles.value,\n props.style,\n ]}\n >\n <div\n ref={ markerRef }\n class=\"v-virtual-scroll__container\"\n style={{\n paddingTop: convertToUnit(paddingTop.value),\n paddingBottom: convertToUnit(paddingBottom.value),\n }}\n >\n { children }\n </div>\n </div>\n )\n })\n\n return {\n calculateVisibleItems,\n scrollToIndex,\n }\n },\n})\n\nexport type VVirtualScroll = InstanceType<typeof VVirtualScroll>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB,oCAE3B;AAAA,SACSC,kBAAkB;AAAA,SAClBC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,cAAc;AAAA,SACdC,gBAAgB,EAAEC,UAAU,yCAErC;AACA,SAASC,SAAS,EAAEC,cAAc,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAEpDC,aAAa,EACbC,gBAAgB,EAChBC,kBAAkB,EAClBC,eAAe,EACfC,YAAY,EACZC,SAAS,gCAGX;AASA,OAAO,MAAMC,uBAAuB,GAAGF,YAAY,CAAC;EAClDG,KAAK,EAAE;IACLC,IAAI,EAAEC,KAAqC;IAC3CC,OAAO,EAAEA,CAAA,KAAO;EAClB,CAAC;EACDC,UAAU,EAAEC,OAAO;EAEnB,GAAGjB,gBAAgB,CAAC,CAAC;EACrB,GAAGJ,kBAAkB,CAAC,CAAC;EACvB,GAAGC,kBAAkB,CAAC;AACxB,CAAC,EAAE,gBAAgB,CAAC;AAEpB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,YAAA;QAAA,OAGOvB,SAAS;QAAA;QAAA,SAER;UACLK,UAAU,EAAE5B,aAAa,CAAC4B,UAAU,CAACS,KAAK,CAAC;UAC3CR,aAAa,EAAE7B,aAAa,CAAC6B,aAAa,CAACQ,KAAK;QAClD;MAAC,IAECM,QAAQ,IAGf;IACH,CAAC,CAAC;IAEF,OAAO;MACLtB,qBAAqB;MACrBM;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
@@ -39,26 +39,27 @@ declare const VVirtualScroll: {
39
39
  style: vue.StyleValue;
40
40
  itemHeight: string | number;
41
41
  } & {
42
- class?: any;
43
- width?: string | number | undefined;
44
42
  height?: string | number | undefined;
43
+ width?: string | number | undefined;
45
44
  maxHeight?: string | number | undefined;
46
45
  maxWidth?: string | number | undefined;
47
46
  minHeight?: string | number | undefined;
48
47
  minWidth?: string | number | undefined;
48
+ class?: any;
49
49
  }, {
50
+ calculateVisibleItems: () => void;
50
51
  scrollToIndex: (index: number) => void;
51
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "v-slot:default" | "$children" | "v-slots" | "items" | "renderless">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
52
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "$children" | "v-slot:default" | "v-slots" | "items" | "renderless">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
52
53
  style: vue.StyleValue;
53
54
  itemHeight: string | number;
54
55
  } & {
55
- class?: any;
56
- width?: string | number | undefined;
57
56
  height?: string | number | undefined;
57
+ width?: string | number | undefined;
58
58
  maxHeight?: string | number | undefined;
59
59
  maxWidth?: string | number | undefined;
60
60
  minHeight?: string | number | undefined;
61
61
  minWidth?: string | number | undefined;
62
+ class?: any;
62
63
  }, {
63
64
  style: vue.StyleValue;
64
65
  itemHeight: string | number;
@@ -79,14 +80,15 @@ declare const VVirtualScroll: {
79
80
  style: vue.StyleValue;
80
81
  itemHeight: string | number;
81
82
  } & {
82
- class?: any;
83
- width?: string | number | undefined;
84
83
  height?: string | number | undefined;
84
+ width?: string | number | undefined;
85
85
  maxHeight?: string | number | undefined;
86
86
  maxWidth?: string | number | undefined;
87
87
  minHeight?: string | number | undefined;
88
88
  minWidth?: string | number | undefined;
89
+ class?: any;
89
90
  }, {
91
+ calculateVisibleItems: () => void;
90
92
  scrollToIndex: (index: number) => void;
91
93
  }, {}, {}, {}, {
92
94
  style: vue.StyleValue;
@@ -99,16 +101,17 @@ declare const VVirtualScroll: {
99
101
  style: vue.StyleValue;
100
102
  itemHeight: string | number;
101
103
  } & {
102
- class?: any;
103
- width?: string | number | undefined;
104
104
  height?: string | number | undefined;
105
+ width?: string | number | undefined;
105
106
  maxHeight?: string | number | undefined;
106
107
  maxWidth?: string | number | undefined;
107
108
  minHeight?: string | number | undefined;
108
109
  minWidth?: string | number | undefined;
110
+ class?: any;
109
111
  }, {
112
+ calculateVisibleItems: () => void;
110
113
  scrollToIndex: (index: number) => void;
111
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "v-slot:default" | "$children" | "v-slots" | "items" | "renderless">, string, {
114
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "$children" | "v-slot:default" | "v-slots" | "items" | "renderless">, string, {
112
115
  style: vue.StyleValue;
113
116
  itemHeight: string | number;
114
117
  }, {}, string, vue.SlotsType<Partial<{
@@ -118,48 +118,48 @@ type ControlProps = {
118
118
  declare const VWindow: {
119
119
  new (...args: any[]): vue.CreateComponentPublicInstance<{
120
120
  reverse: boolean;
121
+ direction: "horizontal" | "vertical";
121
122
  style: vue.StyleValue;
122
123
  disabled: boolean;
123
124
  tag: string;
124
125
  mandatory: boolean | "force";
125
- direction: "horizontal" | "vertical";
126
126
  selectedClass: string;
127
127
  nextIcon: IconValue;
128
128
  prevIcon: IconValue;
129
129
  continuous: boolean;
130
130
  } & {
131
131
  class?: any;
132
- theme?: string | undefined;
133
132
  touch?: boolean | TouchHandlers | undefined;
133
+ theme?: string | undefined;
134
134
  showArrows?: string | boolean | undefined;
135
135
  } & {}, {
136
136
  group: GroupProvide;
137
137
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
138
138
  'update:modelValue': (value: any) => boolean;
139
- }, "v-slot:default" | "$children" | "v-slots" | "modelValue" | "v-slot:additional" | "update:modelValue" | "v-slot:next" | "v-slot:prev">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
139
+ }, "$children" | "v-slot:default" | "v-slots" | "modelValue" | "v-slot:additional" | "update:modelValue" | "v-slot:next" | "v-slot:prev">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
140
140
  reverse: boolean;
141
+ direction: "horizontal" | "vertical";
141
142
  style: vue.StyleValue;
142
143
  disabled: boolean;
143
144
  tag: string;
144
145
  mandatory: boolean | "force";
145
- direction: "horizontal" | "vertical";
146
146
  selectedClass: string;
147
147
  nextIcon: IconValue;
148
148
  prevIcon: IconValue;
149
149
  continuous: boolean;
150
150
  } & {
151
151
  class?: any;
152
- theme?: string | undefined;
153
152
  touch?: boolean | TouchHandlers | undefined;
153
+ theme?: string | undefined;
154
154
  showArrows?: string | boolean | undefined;
155
155
  } & {}, {
156
156
  reverse: boolean;
157
+ direction: "horizontal" | "vertical";
157
158
  style: vue.StyleValue;
158
159
  disabled: boolean;
159
160
  tag: string;
160
161
  mandatory: boolean | "force";
161
162
  touch: boolean | TouchHandlers;
162
- direction: "horizontal" | "vertical";
163
163
  selectedClass: string;
164
164
  nextIcon: IconValue;
165
165
  prevIcon: IconValue;
@@ -194,30 +194,30 @@ declare const VWindow: {
194
194
  Defaults: {};
195
195
  }, {
196
196
  reverse: boolean;
197
+ direction: "horizontal" | "vertical";
197
198
  style: vue.StyleValue;
198
199
  disabled: boolean;
199
200
  tag: string;
200
201
  mandatory: boolean | "force";
201
- direction: "horizontal" | "vertical";
202
202
  selectedClass: string;
203
203
  nextIcon: IconValue;
204
204
  prevIcon: IconValue;
205
205
  continuous: boolean;
206
206
  } & {
207
207
  class?: any;
208
- theme?: string | undefined;
209
208
  touch?: boolean | TouchHandlers | undefined;
209
+ theme?: string | undefined;
210
210
  showArrows?: string | boolean | undefined;
211
211
  } & {}, {
212
212
  group: GroupProvide;
213
213
  }, {}, {}, {}, {
214
214
  reverse: boolean;
215
+ direction: "horizontal" | "vertical";
215
216
  style: vue.StyleValue;
216
217
  disabled: boolean;
217
218
  tag: string;
218
219
  mandatory: boolean | "force";
219
220
  touch: boolean | TouchHandlers;
220
- direction: "horizontal" | "vertical";
221
221
  selectedClass: string;
222
222
  nextIcon: IconValue;
223
223
  prevIcon: IconValue;
@@ -228,32 +228,32 @@ declare const VWindow: {
228
228
  __isSuspense?: undefined;
229
229
  } & vue.ComponentOptionsBase<{
230
230
  reverse: boolean;
231
+ direction: "horizontal" | "vertical";
231
232
  style: vue.StyleValue;
232
233
  disabled: boolean;
233
234
  tag: string;
234
235
  mandatory: boolean | "force";
235
- direction: "horizontal" | "vertical";
236
236
  selectedClass: string;
237
237
  nextIcon: IconValue;
238
238
  prevIcon: IconValue;
239
239
  continuous: boolean;
240
240
  } & {
241
241
  class?: any;
242
- theme?: string | undefined;
243
242
  touch?: boolean | TouchHandlers | undefined;
243
+ theme?: string | undefined;
244
244
  showArrows?: string | boolean | undefined;
245
245
  } & {}, {
246
246
  group: GroupProvide;
247
247
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
248
248
  'update:modelValue': (value: any) => boolean;
249
- }, "v-slot:default" | "$children" | "v-slots" | "modelValue" | "v-slot:additional" | "update:modelValue" | "v-slot:next" | "v-slot:prev">, string, {
249
+ }, "$children" | "v-slot:default" | "v-slots" | "modelValue" | "v-slot:additional" | "update:modelValue" | "v-slot:next" | "v-slot:prev">, string, {
250
250
  reverse: boolean;
251
+ direction: "horizontal" | "vertical";
251
252
  style: vue.StyleValue;
252
253
  disabled: boolean;
253
254
  tag: string;
254
255
  mandatory: boolean | "force";
255
256
  touch: boolean | TouchHandlers;
256
- direction: "horizontal" | "vertical";
257
257
  selectedClass: string;
258
258
  nextIcon: IconValue;
259
259
  prevIcon: IconValue;
@@ -377,12 +377,12 @@ type VWindow = InstanceType<typeof VWindow>;
377
377
  declare const VWindowItem: {
378
378
  new (...args: any[]): vue.CreateComponentPublicInstance<{
379
379
  style: vue.StyleValue;
380
- disabled: boolean;
381
380
  eager: boolean;
381
+ disabled: boolean;
382
382
  } & {
383
- class?: any;
384
- value?: any;
385
383
  transition?: string | boolean | undefined;
384
+ value?: any;
385
+ class?: any;
386
386
  selectedClass?: string | undefined;
387
387
  reverseTransition?: string | boolean | undefined;
388
388
  } & {
@@ -406,12 +406,12 @@ declare const VWindowItem: {
406
406
  }) => true;
407
407
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
408
408
  style: vue.StyleValue;
409
- disabled: boolean;
410
409
  eager: boolean;
410
+ disabled: boolean;
411
411
  } & {
412
- class?: any;
413
- value?: any;
414
412
  transition?: string | boolean | undefined;
413
+ value?: any;
414
+ class?: any;
415
415
  selectedClass?: string | undefined;
416
416
  reverseTransition?: string | boolean | undefined;
417
417
  } & {
@@ -428,10 +428,10 @@ declare const VWindowItem: {
428
428
  value: boolean;
429
429
  }) => any) | undefined;
430
430
  }, {
431
- style: vue.StyleValue;
432
- disabled: boolean;
433
431
  transition: string | boolean;
432
+ style: vue.StyleValue;
434
433
  eager: boolean;
434
+ disabled: boolean;
435
435
  reverseTransition: string | boolean;
436
436
  }, true, {}, vue.SlotsType<Partial<{
437
437
  default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -446,12 +446,12 @@ declare const VWindowItem: {
446
446
  Defaults: {};
447
447
  }, {
448
448
  style: vue.StyleValue;
449
- disabled: boolean;
450
449
  eager: boolean;
450
+ disabled: boolean;
451
451
  } & {
452
- class?: any;
453
- value?: any;
454
452
  transition?: string | boolean | undefined;
453
+ value?: any;
454
+ class?: any;
455
455
  selectedClass?: string | undefined;
456
456
  reverseTransition?: string | boolean | undefined;
457
457
  } & {
@@ -470,10 +470,10 @@ declare const VWindowItem: {
470
470
  }, {
471
471
  groupItem: GroupItemProvide;
472
472
  }, {}, {}, {}, {
473
- style: vue.StyleValue;
474
- disabled: boolean;
475
473
  transition: string | boolean;
474
+ style: vue.StyleValue;
476
475
  eager: boolean;
476
+ disabled: boolean;
477
477
  reverseTransition: string | boolean;
478
478
  }>;
479
479
  __isFragment?: undefined;
@@ -481,12 +481,12 @@ declare const VWindowItem: {
481
481
  __isSuspense?: undefined;
482
482
  } & vue.ComponentOptionsBase<{
483
483
  style: vue.StyleValue;
484
- disabled: boolean;
485
484
  eager: boolean;
485
+ disabled: boolean;
486
486
  } & {
487
- class?: any;
488
- value?: any;
489
487
  transition?: string | boolean | undefined;
488
+ value?: any;
489
+ class?: any;
490
490
  selectedClass?: string | undefined;
491
491
  reverseTransition?: string | boolean | undefined;
492
492
  } & {
@@ -509,10 +509,10 @@ declare const VWindowItem: {
509
509
  value: boolean;
510
510
  }) => true;
511
511
  }, string, {
512
- style: vue.StyleValue;
513
- disabled: boolean;
514
512
  transition: string | boolean;
513
+ style: vue.StyleValue;
515
514
  eager: boolean;
515
+ disabled: boolean;
516
516
  reverseTransition: string | boolean;
517
517
  }, {}, string, vue.SlotsType<Partial<{
518
518
  default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {