@vuetify/nightly 3.3.9-master.2023-07-19 → 3.3.9-master.2023-07-21

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.3.9-master.2023-07-19
2
+ * Vuetify v3.3.9-master.2023-07-21
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -9725,6 +9725,20 @@
9725
9725
  }
9726
9726
  return false;
9727
9727
  },
9728
+ set(target, key, value) {
9729
+ if (Reflect.has(target, key)) {
9730
+ return Reflect.set(target, key, value);
9731
+ }
9732
+
9733
+ // Skip internal properties
9734
+ if (typeof key === 'symbol' || key.startsWith('__')) return false;
9735
+ for (const ref of refs) {
9736
+ if (ref.value && Reflect.has(ref.value, key)) {
9737
+ return Reflect.set(ref.value, key, value);
9738
+ }
9739
+ }
9740
+ return false;
9741
+ },
9728
9742
  getOwnPropertyDescriptor(target, key) {
9729
9743
  const descriptor = Reflect.getOwnPropertyDescriptor(target, key);
9730
9744
  if (descriptor) return descriptor;
@@ -10815,7 +10829,7 @@
10815
10829
  menu.value = !menu.value;
10816
10830
  }
10817
10831
  function onKeydown(e) {
10818
- if (props.readonly || form?.isReadonly.value) return;
10832
+ if (!e.key || props.readonly || form?.isReadonly.value) return;
10819
10833
  if (['Enter', ' ', 'ArrowDown', 'ArrowUp', 'Home', 'End'].includes(e.key)) {
10820
10834
  e.preventDefault();
10821
10835
  }
@@ -10879,6 +10893,16 @@
10879
10893
  function onFocusin(e) {
10880
10894
  isFocused.value = true;
10881
10895
  }
10896
+ function onModelUpdate(v) {
10897
+ if (v == null) model.value = [];else if (vTextFieldRef.value?.matches(':autofill') || vTextFieldRef.value?.matches(':-webkit-autofill')) {
10898
+ const item = items.value.find(item => item.title === v);
10899
+ if (item) {
10900
+ select(item);
10901
+ }
10902
+ } else if (vTextFieldRef.value) {
10903
+ vTextFieldRef.value.value = '';
10904
+ }
10905
+ }
10882
10906
  useRender(() => {
10883
10907
  const hasChips = !!(props.chips || slots.chip);
10884
10908
  const hasList = !!(!props.hideNoData || displayItems.value.length || slots['prepend-item'] || slots['append-item'] || slots['no-data']);
@@ -10889,9 +10913,7 @@
10889
10913
  "ref": vTextFieldRef
10890
10914
  }, textFieldProps, {
10891
10915
  "modelValue": model.value.map(v => v.props.value).join(', '),
10892
- "onUpdate:modelValue": v => {
10893
- if (v == null) model.value = [];
10894
- },
10916
+ "onUpdate:modelValue": onModelUpdate,
10895
10917
  "focused": isFocused.value,
10896
10918
  "onUpdate:focused": $event => isFocused.value = $event,
10897
10919
  "validationValue": model.externalValue,
@@ -10904,7 +10926,7 @@
10904
10926
  'v-select--selection-slot': !!slots.selection
10905
10927
  }, props.class],
10906
10928
  "style": props.style,
10907
- "readonly": true,
10929
+ "inputmode": "none",
10908
10930
  "placeholder": placeholder,
10909
10931
  "onClick:clear": onClear,
10910
10932
  "onMousedown:control": onMousedownControl,
@@ -11326,6 +11348,14 @@
11326
11348
  function onInput(e) {
11327
11349
  search.value = e.target.value;
11328
11350
  }
11351
+ function onChange(e) {
11352
+ if (vTextFieldRef.value?.matches(':autofill') || vTextFieldRef.value?.matches(':-webkit-autofill')) {
11353
+ const item = items.value.find(item => item.title === e.target.value);
11354
+ if (item) {
11355
+ select(item);
11356
+ }
11357
+ }
11358
+ }
11329
11359
  function onAfterLeave() {
11330
11360
  if (isFocused.value) {
11331
11361
  isPristine.value = true;
@@ -11405,6 +11435,7 @@
11405
11435
  "validationValue": model.externalValue,
11406
11436
  "dirty": isDirty,
11407
11437
  "onInput": onInput,
11438
+ "onChange": onChange,
11408
11439
  "class": ['v-autocomplete', `v-autocomplete--${props.multiple ? 'multiple' : 'single'}`, {
11409
11440
  'v-autocomplete--active-menu': menu.value,
11410
11441
  'v-autocomplete--chips': !!props.chips,
@@ -16394,7 +16425,7 @@
16394
16425
  });
16395
16426
  });
16396
16427
  vue.onBeforeUnmount(() => {
16397
- document.removeEventListener('scroll', onScroll);
16428
+ window.removeEventListener('scroll', onScroll);
16398
16429
  });
16399
16430
  let lastScrollTop = 0;
16400
16431
  function onScroll() {
@@ -23667,7 +23698,7 @@
23667
23698
  date
23668
23699
  };
23669
23700
  }
23670
- const version$1 = "3.3.9-master.2023-07-19";
23701
+ const version$1 = "3.3.9-master.2023-07-21";
23671
23702
  createVuetify$1.version = version$1;
23672
23703
 
23673
23704
  // Vue's inject() can only be used in setup
@@ -23681,7 +23712,7 @@
23681
23712
 
23682
23713
  /* eslint-disable local-rules/sort-imports */
23683
23714
 
23684
- const version = "3.3.9-master.2023-07-19";
23715
+ const version = "3.3.9-master.2023-07-21";
23685
23716
 
23686
23717
  /* eslint-disable local-rules/sort-imports */
23687
23718