@vuetify/nightly 3.1.6 → 3.1.7-dev-20230224.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vuetify.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.1.6
2
+ * Vuetify v3.1.7-dev-20230224.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -20741,10 +20741,6 @@ html.v-overlay-scroll-blocked {
20741
20741
  .v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn {
20742
20742
  transform: scale(1.25);
20743
20743
  }
20744
- .v-rating__item--focused .v-btn__overlay {
20745
- display: block;
20746
- opacity: var(--v-hover-opacity);
20747
- }
20748
20744
  .v-rating__item--half {
20749
20745
  overflow: hidden;
20750
20746
  position: absolute;
package/dist/vuetify.d.ts CHANGED
@@ -11980,6 +11980,7 @@ type VRatingItemSlot = {
11980
11980
  icon: IconValue;
11981
11981
  color?: string;
11982
11982
  props: Record<string, unknown>;
11983
+ rating: number;
11983
11984
  };
11984
11985
  type VRatingItemLabelSlot = {
11985
11986
  value: number;
@@ -18202,16 +18203,16 @@ declare module '@vue/runtime-core' {
18202
18203
 
18203
18204
  export interface GlobalComponents {
18204
18205
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
18205
- VForm: typeof import('vuetify/components')['VForm']
18206
18206
  VContainer: typeof import('vuetify/components')['VContainer']
18207
18207
  VCol: typeof import('vuetify/components')['VCol']
18208
18208
  VRow: typeof import('vuetify/components')['VRow']
18209
18209
  VSpacer: typeof import('vuetify/components')['VSpacer']
18210
18210
  VHover: typeof import('vuetify/components')['VHover']
18211
- VLayout: typeof import('vuetify/components')['VLayout']
18212
- VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
18211
+ VForm: typeof import('vuetify/components')['VForm']
18213
18212
  VLazy: typeof import('vuetify/components')['VLazy']
18214
18213
  VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
18214
+ VLayout: typeof import('vuetify/components')['VLayout']
18215
+ VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
18215
18216
  VNoSsr: typeof import('vuetify/components')['VNoSsr']
18216
18217
  VParallax: typeof import('vuetify/components')['VParallax']
18217
18218
  VRadio: typeof import('vuetify/components')['VRadio']
@@ -18251,19 +18252,19 @@ declare module '@vue/runtime-core' {
18251
18252
  VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
18252
18253
  VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
18253
18254
  VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
18254
- VBtn: typeof import('vuetify/components')['VBtn']
18255
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
18256
18255
  VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
18256
+ VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
18257
+ VBtn: typeof import('vuetify/components')['VBtn']
18257
18258
  VCard: typeof import('vuetify/components')['VCard']
18258
18259
  VCardActions: typeof import('vuetify/components')['VCardActions']
18259
18260
  VCardItem: typeof import('vuetify/components')['VCardItem']
18260
18261
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
18261
18262
  VCardText: typeof import('vuetify/components')['VCardText']
18262
18263
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
18263
- VCarousel: typeof import('vuetify/components')['VCarousel']
18264
- VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
18265
18264
  VCheckbox: typeof import('vuetify/components')['VCheckbox']
18266
18265
  VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
18266
+ VCarousel: typeof import('vuetify/components')['VCarousel']
18267
+ VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
18267
18268
  VChip: typeof import('vuetify/components')['VChip']
18268
18269
  VChipGroup: typeof import('vuetify/components')['VChipGroup']
18269
18270
  VCode: typeof import('vuetify/components')['VCode']
@@ -18271,24 +18272,22 @@ declare module '@vue/runtime-core' {
18271
18272
  VCombobox: typeof import('vuetify/components')['VCombobox']
18272
18273
  VCounter: typeof import('vuetify/components')['VCounter']
18273
18274
  VDialog: typeof import('vuetify/components')['VDialog']
18274
- VDivider: typeof import('vuetify/components')['VDivider']
18275
18275
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
18276
18276
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
18277
18277
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
18278
18278
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
18279
+ VDivider: typeof import('vuetify/components')['VDivider']
18279
18280
  VField: typeof import('vuetify/components')['VField']
18280
18281
  VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
18281
18282
  VFileInput: typeof import('vuetify/components')['VFileInput']
18282
18283
  VFooter: typeof import('vuetify/components')['VFooter']
18284
+ VImg: typeof import('vuetify/components')['VImg']
18283
18285
  VIcon: typeof import('vuetify/components')['VIcon']
18284
18286
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
18285
18287
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
18286
18288
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
18287
18289
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
18288
- VImg: typeof import('vuetify/components')['VImg']
18289
18290
  VInput: typeof import('vuetify/components')['VInput']
18290
- VItemGroup: typeof import('vuetify/components')['VItemGroup']
18291
- VItem: typeof import('vuetify/components')['VItem']
18292
18291
  VKbd: typeof import('vuetify/components')['VKbd']
18293
18292
  VLabel: typeof import('vuetify/components')['VLabel']
18294
18293
  VList: typeof import('vuetify/components')['VList']
@@ -18303,8 +18302,8 @@ declare module '@vue/runtime-core' {
18303
18302
  VMain: typeof import('vuetify/components')['VMain']
18304
18303
  VMenu: typeof import('vuetify/components')['VMenu']
18305
18304
  VMessages: typeof import('vuetify/components')['VMessages']
18306
- VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
18307
18305
  VOverlay: typeof import('vuetify/components')['VOverlay']
18306
+ VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
18308
18307
  VPagination: typeof import('vuetify/components')['VPagination']
18309
18308
  VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
18310
18309
  VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
@@ -18316,15 +18315,15 @@ declare module '@vue/runtime-core' {
18316
18315
  VSheet: typeof import('vuetify/components')['VSheet']
18317
18316
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
18318
18317
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
18319
- VSlider: typeof import('vuetify/components')['VSlider']
18320
18318
  VSnackbar: typeof import('vuetify/components')['VSnackbar']
18319
+ VSlider: typeof import('vuetify/components')['VSlider']
18321
18320
  VSwitch: typeof import('vuetify/components')['VSwitch']
18322
- VSystemBar: typeof import('vuetify/components')['VSystemBar']
18323
18321
  VTabs: typeof import('vuetify/components')['VTabs']
18324
18322
  VTab: typeof import('vuetify/components')['VTab']
18325
- VTable: typeof import('vuetify/components')['VTable']
18323
+ VSystemBar: typeof import('vuetify/components')['VSystemBar']
18326
18324
  VTextarea: typeof import('vuetify/components')['VTextarea']
18327
18325
  VTextField: typeof import('vuetify/components')['VTextField']
18326
+ VTable: typeof import('vuetify/components')['VTable']
18328
18327
  VTimeline: typeof import('vuetify/components')['VTimeline']
18329
18328
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
18330
18329
  VToolbar: typeof import('vuetify/components')['VToolbar']
@@ -18333,5 +18332,7 @@ declare module '@vue/runtime-core' {
18333
18332
  VTooltip: typeof import('vuetify/components')['VTooltip']
18334
18333
  VWindow: typeof import('vuetify/components')['VWindow']
18335
18334
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
18335
+ VItemGroup: typeof import('vuetify/components')['VItemGroup']
18336
+ VItem: typeof import('vuetify/components')['VItem']
18336
18337
  }
18337
18338
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.1.6
2
+ * Vuetify v3.1.7-dev-20230224.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -16232,9 +16232,6 @@ const VRating = genericComponent()({
16232
16232
  const range = computed(() => createRange(Number(props.length), 1));
16233
16233
  const increments = computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]));
16234
16234
  const hoverIndex = ref(-1);
16235
- const focusIndex = ref(-1);
16236
- const firstRef = ref();
16237
- let isClicking = false;
16238
16235
  const itemState = computed(() => increments.value.map(value => {
16239
16236
  const isHovering = props.hover && hoverIndex.value > -1;
16240
16237
  const isFilled = normalizedValue.value >= value;
@@ -16257,16 +16254,6 @@ const VRating = genericComponent()({
16257
16254
  function onMouseleave() {
16258
16255
  hoverIndex.value = -1;
16259
16256
  }
16260
- function onFocus() {
16261
- if (value === 0 && normalizedValue.value === 0) {
16262
- firstRef.value?.focus();
16263
- } else {
16264
- focusIndex.value = value;
16265
- }
16266
- }
16267
- function onBlur() {
16268
- if (!isClicking) focusIndex.value = -1;
16269
- }
16270
16257
  function onClick() {
16271
16258
  if (props.disabled || props.readonly) return;
16272
16259
  rating.value = normalizedValue.value === value && props.clearable ? 0 : value;
@@ -16274,17 +16261,9 @@ const VRating = genericComponent()({
16274
16261
  return {
16275
16262
  onMouseenter: props.hover ? onMouseenter : undefined,
16276
16263
  onMouseleave: props.hover ? onMouseleave : undefined,
16277
- onFocus,
16278
- onBlur,
16279
16264
  onClick
16280
16265
  };
16281
16266
  }));
16282
- function onMousedown() {
16283
- isClicking = true;
16284
- }
16285
- function onMouseup() {
16286
- isClicking = false;
16287
- }
16288
16267
  const name = computed(() => props.name ?? `v-rating-${getUid()}`);
16289
16268
  function VRatingItem(_ref2) {
16290
16269
  let {
@@ -16295,8 +16274,6 @@ const VRating = genericComponent()({
16295
16274
  const {
16296
16275
  onMouseenter,
16297
16276
  onMouseleave,
16298
- onFocus,
16299
- onBlur,
16300
16277
  onClick
16301
16278
  } = eventState.value[index + 1];
16302
16279
  const id = `${name.value}-${String(value).replace('.', '-')}`;
@@ -16307,7 +16284,6 @@ const VRating = genericComponent()({
16307
16284
  icon: itemState.value[index]?.icon,
16308
16285
  ripple: props.ripple,
16309
16286
  size: props.size,
16310
- tag: 'span',
16311
16287
  variant: 'plain'
16312
16288
  };
16313
16289
  return createVNode(Fragment, null, [createVNode("label", {
@@ -16316,17 +16292,17 @@ const VRating = genericComponent()({
16316
16292
  'v-rating__item--half': props.halfIncrements && value % 1 > 0,
16317
16293
  'v-rating__item--full': props.halfIncrements && value % 1 === 0
16318
16294
  },
16319
- "onMousedown": onMousedown,
16320
- "onMouseup": onMouseup,
16321
16295
  "onMouseenter": onMouseenter,
16322
- "onMouseleave": onMouseleave
16296
+ "onMouseleave": onMouseleave,
16297
+ "onClick": onClick
16323
16298
  }, [createVNode("span", {
16324
16299
  "class": "v-rating__hidden"
16325
16300
  }, [t(props.itemAriaLabel, value, props.length)]), !showStar ? undefined : slots.item ? slots.item({
16326
16301
  ...itemState.value[index],
16327
16302
  props: btnProps,
16328
16303
  value,
16329
- index
16304
+ index,
16305
+ rating: normalizedValue.value
16330
16306
  }) : createVNode(VBtn, btnProps, null)]), createVNode("input", {
16331
16307
  "class": "v-rating__hidden",
16332
16308
  "name": name.value,
@@ -16334,10 +16310,7 @@ const VRating = genericComponent()({
16334
16310
  "type": "radio",
16335
16311
  "value": value,
16336
16312
  "checked": normalizedValue.value === value,
16337
- "onClick": onClick,
16338
- "onFocus": onFocus,
16339
- "onBlur": onBlur,
16340
- "ref": index === 0 ? firstRef : undefined,
16313
+ "tabindex": -1,
16341
16314
  "readonly": props.readonly,
16342
16315
  "disabled": props.disabled
16343
16316
  }, null)]);
@@ -16366,9 +16339,7 @@ const VRating = genericComponent()({
16366
16339
  index: i,
16367
16340
  label: props.itemLabels?.[i]
16368
16341
  }) : undefined, createVNode("div", {
16369
- "class": ['v-rating__item', {
16370
- 'v-rating__item--focused': Math.ceil(focusIndex.value) === value
16371
- }]
16342
+ "class": "v-rating__item"
16372
16343
  }, [props.halfIncrements ? createVNode(Fragment, null, [createVNode(VRatingItem, {
16373
16344
  "value": value - 0.5,
16374
16345
  "index": i * 2
@@ -18218,7 +18189,7 @@ function createVuetify$1() {
18218
18189
  locale
18219
18190
  };
18220
18191
  }
18221
- const version$1 = "3.1.6";
18192
+ const version$1 = "3.1.7-dev-20230224.0";
18222
18193
  createVuetify$1.version = version$1;
18223
18194
 
18224
18195
  // Vue's inject() can only be used in setup
@@ -18238,7 +18209,7 @@ const createVuetify = function () {
18238
18209
  ...options
18239
18210
  });
18240
18211
  };
18241
- const version = "3.1.6";
18212
+ const version = "3.1.7-dev-20230224.0";
18242
18213
  createVuetify.version = version;
18243
18214
 
18244
18215
  export { components, createVuetify, directives, useDisplay, useLayout, useLocale, useRtl, useTheme, version };