@vuetify/nightly 3.1.8 → 3.2.0-dev-20230309.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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.1.8
2
+ * Vuetify v3.2.0-dev-20230309.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -16238,9 +16238,6 @@
16238
16238
  const range = vue.computed(() => createRange(Number(props.length), 1));
16239
16239
  const increments = vue.computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]));
16240
16240
  const hoverIndex = vue.ref(-1);
16241
- const focusIndex = vue.ref(-1);
16242
- const firstRef = vue.ref();
16243
- let isClicking = false;
16244
16241
  const itemState = vue.computed(() => increments.value.map(value => {
16245
16242
  const isHovering = props.hover && hoverIndex.value > -1;
16246
16243
  const isFilled = normalizedValue.value >= value;
@@ -16263,16 +16260,6 @@
16263
16260
  function onMouseleave() {
16264
16261
  hoverIndex.value = -1;
16265
16262
  }
16266
- function onFocus() {
16267
- if (value === 0 && normalizedValue.value === 0) {
16268
- firstRef.value?.focus();
16269
- } else {
16270
- focusIndex.value = value;
16271
- }
16272
- }
16273
- function onBlur() {
16274
- if (!isClicking) focusIndex.value = -1;
16275
- }
16276
16263
  function onClick() {
16277
16264
  if (props.disabled || props.readonly) return;
16278
16265
  rating.value = normalizedValue.value === value && props.clearable ? 0 : value;
@@ -16280,17 +16267,9 @@
16280
16267
  return {
16281
16268
  onMouseenter: props.hover ? onMouseenter : undefined,
16282
16269
  onMouseleave: props.hover ? onMouseleave : undefined,
16283
- onFocus,
16284
- onBlur,
16285
16270
  onClick
16286
16271
  };
16287
16272
  }));
16288
- function onMousedown() {
16289
- isClicking = true;
16290
- }
16291
- function onMouseup() {
16292
- isClicking = false;
16293
- }
16294
16273
  const name = vue.computed(() => props.name ?? `v-rating-${getUid()}`);
16295
16274
  function VRatingItem(_ref2) {
16296
16275
  let {
@@ -16301,8 +16280,6 @@
16301
16280
  const {
16302
16281
  onMouseenter,
16303
16282
  onMouseleave,
16304
- onFocus,
16305
- onBlur,
16306
16283
  onClick
16307
16284
  } = eventState.value[index + 1];
16308
16285
  const id = `${name.value}-${String(value).replace('.', '-')}`;
@@ -16313,7 +16290,6 @@
16313
16290
  icon: itemState.value[index]?.icon,
16314
16291
  ripple: props.ripple,
16315
16292
  size: props.size,
16316
- tag: 'span',
16317
16293
  variant: 'plain'
16318
16294
  };
16319
16295
  return vue.createVNode(vue.Fragment, null, [vue.createVNode("label", {
@@ -16322,17 +16298,17 @@
16322
16298
  'v-rating__item--half': props.halfIncrements && value % 1 > 0,
16323
16299
  'v-rating__item--full': props.halfIncrements && value % 1 === 0
16324
16300
  },
16325
- "onMousedown": onMousedown,
16326
- "onMouseup": onMouseup,
16327
16301
  "onMouseenter": onMouseenter,
16328
- "onMouseleave": onMouseleave
16302
+ "onMouseleave": onMouseleave,
16303
+ "onClick": onClick
16329
16304
  }, [vue.createVNode("span", {
16330
16305
  "class": "v-rating__hidden"
16331
16306
  }, [t(props.itemAriaLabel, value, props.length)]), !showStar ? undefined : slots.item ? slots.item({
16332
16307
  ...itemState.value[index],
16333
16308
  props: btnProps,
16334
16309
  value,
16335
- index
16310
+ index,
16311
+ rating: normalizedValue.value
16336
16312
  }) : vue.createVNode(VBtn, btnProps, null)]), vue.createVNode("input", {
16337
16313
  "class": "v-rating__hidden",
16338
16314
  "name": name.value,
@@ -16340,10 +16316,7 @@
16340
16316
  "type": "radio",
16341
16317
  "value": value,
16342
16318
  "checked": normalizedValue.value === value,
16343
- "onClick": onClick,
16344
- "onFocus": onFocus,
16345
- "onBlur": onBlur,
16346
- "ref": index === 0 ? firstRef : undefined,
16319
+ "tabindex": -1,
16347
16320
  "readonly": props.readonly,
16348
16321
  "disabled": props.disabled
16349
16322
  }, null)]);
@@ -16372,9 +16345,7 @@
16372
16345
  index: i,
16373
16346
  label: props.itemLabels?.[i]
16374
16347
  }) : undefined, vue.createVNode("div", {
16375
- "class": ['v-rating__item', {
16376
- 'v-rating__item--focused': Math.ceil(focusIndex.value) === value
16377
- }]
16348
+ "class": "v-rating__item"
16378
16349
  }, [props.halfIncrements ? vue.createVNode(vue.Fragment, null, [vue.createVNode(VRatingItem, {
16379
16350
  "value": value - 0.5,
16380
16351
  "index": i * 2
@@ -17792,6 +17763,7 @@
17792
17763
  closeOnBack: false,
17793
17764
  location: 'end',
17794
17765
  locationStrategy: 'connected',
17766
+ eager: true,
17795
17767
  minWidth: 0,
17796
17768
  offset: 10,
17797
17769
  openOnClick: false,
@@ -17800,7 +17772,7 @@
17800
17772
  scrim: false,
17801
17773
  scrollStrategy: 'reposition',
17802
17774
  transition: false
17803
- }), ['absolute', 'persistent', 'eager'])
17775
+ }), ['absolute', 'persistent'])
17804
17776
  },
17805
17777
  emits: {
17806
17778
  'update:modelValue': value => true
@@ -17844,7 +17816,6 @@
17844
17816
  "origin": origin.value,
17845
17817
  "persistent": true,
17846
17818
  "role": "tooltip",
17847
- "eager": true,
17848
17819
  "activatorProps": activatorProps.value,
17849
17820
  "_disableGlobalStack": true
17850
17821
  }, scopeId), {
@@ -18223,7 +18194,7 @@
18223
18194
  locale
18224
18195
  };
18225
18196
  }
18226
- const version$1 = "3.1.8";
18197
+ const version$1 = "3.2.0-dev-20230309.0";
18227
18198
  createVuetify$1.version = version$1;
18228
18199
 
18229
18200
  // Vue's inject() can only be used in setup
@@ -18243,7 +18214,7 @@
18243
18214
  ...options
18244
18215
  });
18245
18216
  };
18246
- const version = "3.1.8";
18217
+ const version = "3.2.0-dev-20230309.0";
18247
18218
  createVuetify.version = version;
18248
18219
 
18249
18220
  exports.components = components;