vuetify 3.7.16 → 3.7.18

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 (47) hide show
  1. package/dist/json/attributes.json +3633 -3633
  2. package/dist/json/importMap-labs.json +34 -34
  3. package/dist/json/importMap.json +146 -146
  4. package/dist/json/web-types.json +6922 -6922
  5. package/dist/vuetify-labs.css +4443 -4442
  6. package/dist/vuetify-labs.d.ts +3 -3
  7. package/dist/vuetify-labs.esm.js +31 -28
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +31 -28
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +3398 -3397
  12. package/dist/vuetify.d.ts +59 -59
  13. package/dist/vuetify.esm.js +30 -27
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +30 -27
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +336 -337
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/components/VDatePicker/VDatePickerControls.mjs +5 -5
  21. package/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
  22. package/lib/components/VDatePicker/VDatePickerMonth.mjs +21 -12
  23. package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
  24. package/lib/components/VDatePicker/index.d.mts +3 -3
  25. package/lib/components/VDialog/__test__/VDialog.spec.browser.mjs +50 -0
  26. package/lib/components/VDialog/__test__/VDialog.spec.browser.mjs.map +1 -0
  27. package/lib/components/VField/VField.mjs +1 -6
  28. package/lib/components/VField/VField.mjs.map +1 -1
  29. package/lib/components/VFileInput/VFileInput.mjs +2 -2
  30. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  31. package/lib/components/VTextField/VTextField.mjs +2 -2
  32. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  33. package/lib/components/VTextarea/VTextarea.mjs +2 -2
  34. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  35. package/lib/components/VToolbar/VToolbar.css +1 -0
  36. package/lib/components/VToolbar/VToolbar.sass +1 -0
  37. package/lib/components/index.d.mts +3 -3
  38. package/lib/composables/theme.mjs +1 -1
  39. package/lib/composables/theme.mjs.map +1 -1
  40. package/lib/entry-bundler.mjs +1 -1
  41. package/lib/framework.mjs +1 -1
  42. package/lib/index.d.mts +56 -56
  43. package/lib/labs/VDateInput/VDateInput.mjs +1 -1
  44. package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
  45. package/package.json +2 -2
  46. package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +0 -39
  47. package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.16
2
+ * Vuetify v3.7.18
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -2451,7 +2451,7 @@
2451
2451
  function getHead() {
2452
2452
  return {
2453
2453
  style: [{
2454
- children: styles.value,
2454
+ textContent: styles.value,
2455
2455
  id: 'vuetify-theme-stylesheet',
2456
2456
  nonce: parsedOptions.cspNonce || false
2457
2457
  }]
@@ -11829,11 +11829,6 @@
11829
11829
  };
11830
11830
  }
11831
11831
  });
11832
- // TODO: this is kinda slow, might be better to implicitly inherit props instead
11833
- function filterFieldProps(attrs) {
11834
- const keys = Object.keys(VField.props).filter(k => !isOn(k) && k !== 'class' && k !== 'style');
11835
- return pick(attrs, keys);
11836
- }
11837
11832
 
11838
11833
  // Types
11839
11834
 
@@ -11941,7 +11936,7 @@
11941
11936
  modelValue: _,
11942
11937
  ...inputProps
11943
11938
  } = VInput.filterProps(props);
11944
- const fieldProps = filterFieldProps(props);
11939
+ const fieldProps = VField.filterProps(props);
11945
11940
  return vue.createVNode(VInput, vue.mergeProps({
11946
11941
  "ref": vInputRef,
11947
11942
  "modelValue": model.value,
@@ -21555,30 +21550,30 @@
21555
21550
  "class": ['v-date-picker-controls']
21556
21551
  }, [vue.createVNode(VBtn, {
21557
21552
  "class": "v-date-picker-controls__month-btn",
21553
+ "data-testid": "month-btn",
21558
21554
  "disabled": disableMonth.value,
21559
21555
  "text": props.text,
21560
21556
  "variant": "text",
21561
21557
  "rounded": true,
21562
21558
  "onClick": onClickMonth
21563
21559
  }, null), vue.createVNode(VBtn, {
21564
- "key": "mode-btn",
21565
21560
  "class": "v-date-picker-controls__mode-btn",
21561
+ "data-testid": "year-btn",
21566
21562
  "disabled": disableYear.value,
21567
21563
  "density": "comfortable",
21568
21564
  "icon": props.modeIcon,
21569
21565
  "variant": "text",
21570
21566
  "onClick": onClickYear
21571
- }, null), vue.createVNode(VSpacer, {
21572
- "key": "mode-spacer"
21573
- }, null), vue.createVNode("div", {
21574
- "key": "month-buttons",
21567
+ }, null), vue.createVNode(VSpacer, null, null), vue.createVNode("div", {
21575
21568
  "class": "v-date-picker-controls__month"
21576
21569
  }, [vue.createVNode(VBtn, {
21570
+ "data-testid": "prev-month",
21577
21571
  "disabled": disablePrev.value,
21578
21572
  "icon": props.prevIcon,
21579
21573
  "variant": "text",
21580
21574
  "onClick": onClickPrev
21581
21575
  }, null), vue.createVNode(VBtn, {
21576
+ "data-testid": "next-month",
21582
21577
  "disabled": disableNext.value,
21583
21578
  "icon": props.nextIcon,
21584
21579
  "variant": "text",
@@ -21925,7 +21920,7 @@
21925
21920
  model.value = [value];
21926
21921
  }
21927
21922
  }
21928
- useRender(() => vue.createVNode("div", {
21923
+ return () => vue.createVNode("div", {
21929
21924
  "class": "v-date-picker-month"
21930
21925
  }, [props.showWeek && vue.createVNode("div", {
21931
21926
  "key": "weeks",
@@ -21947,13 +21942,6 @@
21947
21942
  }, [weekDay])), daysInMonth.value.map((item, i) => {
21948
21943
  const slotProps = {
21949
21944
  props: {
21950
- class: 'v-date-picker-month__day-btn',
21951
- color: (item.isSelected || item.isToday) && !item.isDisabled ? props.color : undefined,
21952
- disabled: item.isDisabled,
21953
- icon: true,
21954
- ripple: false,
21955
- text: item.localized,
21956
- variant: item.isDisabled ? item.isToday ? 'outlined' : 'text' : item.isToday && !item.isSelected ? 'outlined' : 'flat',
21957
21945
  onClick: () => onClick(item.date)
21958
21946
  },
21959
21947
  item,
@@ -21971,9 +21959,24 @@
21971
21959
  'v-date-picker-month__day--week-start': item.isWeekStart
21972
21960
  }],
21973
21961
  "data-v-date": !item.isDisabled ? item.isoDate : undefined
21974
- }, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? vue.createVNode(VBtn, slotProps.props, null))]);
21962
+ }, [(props.showAdjacentMonths || !item.isAdjacent) && vue.createVNode(VDefaultsProvider, {
21963
+ "defaults": {
21964
+ VBtn: {
21965
+ class: 'v-date-picker-month__day-btn',
21966
+ color: (item.isSelected || item.isToday) && !item.isDisabled ? props.color : undefined,
21967
+ disabled: item.isDisabled,
21968
+ icon: true,
21969
+ ripple: false,
21970
+ text: item.localized,
21971
+ variant: item.isDisabled ? item.isToday ? 'outlined' : 'text' : item.isToday && !item.isSelected ? 'outlined' : 'flat',
21972
+ onClick: () => onClick(item.date)
21973
+ }
21974
+ }
21975
+ }, {
21976
+ default: () => [slots.day?.(slotProps) ?? vue.createVNode(VBtn, slotProps.props, null)]
21977
+ })]);
21975
21978
  })])]
21976
- })]));
21979
+ })]);
21977
21980
  }
21978
21981
  });
21979
21982
 
@@ -23111,7 +23114,7 @@
23111
23114
  modelValue: _,
23112
23115
  ...inputProps
23113
23116
  } = VInput.filterProps(props);
23114
- const fieldProps = filterFieldProps(props);
23117
+ const fieldProps = VField.filterProps(props);
23115
23118
  return vue.createVNode(VInput, vue.mergeProps({
23116
23119
  "ref": vInputRef,
23117
23120
  "modelValue": props.multiple ? model.value : model.value[0],
@@ -27246,7 +27249,7 @@
27246
27249
  modelValue: _,
27247
27250
  ...inputProps
27248
27251
  } = VInput.filterProps(props);
27249
- const fieldProps = filterFieldProps(props);
27252
+ const fieldProps = VField.filterProps(props);
27250
27253
  return vue.createVNode(VInput, vue.mergeProps({
27251
27254
  "ref": vInputRef,
27252
27255
  "modelValue": model.value,
@@ -28297,7 +28300,7 @@
28297
28300
  return;
28298
28301
  }
28299
28302
  const target = e.target;
28300
- model.value = target.value;
28303
+ model.value = target.value === '' ? null : target.value;
28301
28304
  }
28302
28305
  function onClick(e) {
28303
28306
  e.preventDefault();
@@ -31081,7 +31084,7 @@
31081
31084
  goTo
31082
31085
  };
31083
31086
  }
31084
- const version$1 = "3.7.16";
31087
+ const version$1 = "3.7.18";
31085
31088
  createVuetify$1.version = version$1;
31086
31089
 
31087
31090
  // Vue's inject() can only be used in setup
@@ -31334,7 +31337,7 @@
31334
31337
 
31335
31338
  /* eslint-disable local-rules/sort-imports */
31336
31339
 
31337
- const version = "3.7.16";
31340
+ const version = "3.7.18";
31338
31341
 
31339
31342
  /* eslint-disable local-rules/sort-imports */
31340
31343