@vuetify/nightly 3.5.9-dev.2024-03-29 → 3.5.9-dev.2024-03-30

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.
@@ -27678,6 +27678,7 @@ type VDatePickerSlots = Omit<VPickerSlots, 'header'> & {
27678
27678
  };
27679
27679
  declare const VDatePicker: {
27680
27680
  new (...args: any[]): vue.CreateComponentPublicInstance<{
27681
+ transition: string;
27681
27682
  header: string;
27682
27683
  style: vue.StyleValue;
27683
27684
  title: string;
@@ -27687,6 +27688,7 @@ declare const VDatePicker: {
27687
27688
  tile: boolean;
27688
27689
  nextIcon: string;
27689
27690
  prevIcon: string;
27691
+ reverseTransition: string;
27690
27692
  modeIcon: string;
27691
27693
  viewMode: "month" | "year" | "months";
27692
27694
  showAdjacentMonths: boolean;
@@ -27728,6 +27730,7 @@ declare const VDatePicker: {
27728
27730
  'update:year': (date: any) => true;
27729
27731
  'update:viewMode': (date: any) => true;
27730
27732
  }, "multiple" | "$children" | "v-slot:default" | "v-slots" | "modelValue" | "v-slot:title" | "update:modelValue" | "v-slot:header" | "v-slot:actions">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
27733
+ transition: string;
27731
27734
  header: string;
27732
27735
  style: vue.StyleValue;
27733
27736
  title: string;
@@ -27737,6 +27740,7 @@ declare const VDatePicker: {
27737
27740
  tile: boolean;
27738
27741
  nextIcon: string;
27739
27742
  prevIcon: string;
27743
+ reverseTransition: string;
27740
27744
  modeIcon: string;
27741
27745
  viewMode: "month" | "year" | "months";
27742
27746
  showAdjacentMonths: boolean;
@@ -27774,6 +27778,7 @@ declare const VDatePicker: {
27774
27778
  "onUpdate:viewMode"?: ((date: any) => any) | undefined;
27775
27779
  }, {
27776
27780
  active: string | string[];
27781
+ transition: string;
27777
27782
  header: string;
27778
27783
  style: vue.StyleValue;
27779
27784
  title: string;
@@ -27784,6 +27789,7 @@ declare const VDatePicker: {
27784
27789
  tile: boolean;
27785
27790
  nextIcon: string;
27786
27791
  prevIcon: string;
27792
+ reverseTransition: string;
27787
27793
  modeIcon: string;
27788
27794
  viewMode: "month" | "year" | "months";
27789
27795
  showAdjacentMonths: boolean;
@@ -27815,6 +27821,7 @@ declare const VDatePicker: {
27815
27821
  M: {};
27816
27822
  Defaults: {};
27817
27823
  }, {
27824
+ transition: string;
27818
27825
  header: string;
27819
27826
  style: vue.StyleValue;
27820
27827
  title: string;
@@ -27824,6 +27831,7 @@ declare const VDatePicker: {
27824
27831
  tile: boolean;
27825
27832
  nextIcon: string;
27826
27833
  prevIcon: string;
27834
+ reverseTransition: string;
27827
27835
  modeIcon: string;
27828
27836
  viewMode: "month" | "year" | "months";
27829
27837
  showAdjacentMonths: boolean;
@@ -27861,6 +27869,7 @@ declare const VDatePicker: {
27861
27869
  "onUpdate:viewMode"?: ((date: any) => any) | undefined;
27862
27870
  }, {}, {}, {}, {}, {
27863
27871
  active: string | string[];
27872
+ transition: string;
27864
27873
  header: string;
27865
27874
  style: vue.StyleValue;
27866
27875
  title: string;
@@ -27871,6 +27880,7 @@ declare const VDatePicker: {
27871
27880
  tile: boolean;
27872
27881
  nextIcon: string;
27873
27882
  prevIcon: string;
27883
+ reverseTransition: string;
27874
27884
  modeIcon: string;
27875
27885
  viewMode: "month" | "year" | "months";
27876
27886
  showAdjacentMonths: boolean;
@@ -27883,6 +27893,7 @@ declare const VDatePicker: {
27883
27893
  __isTeleport?: undefined;
27884
27894
  __isSuspense?: undefined;
27885
27895
  } & vue.ComponentOptionsBase<{
27896
+ transition: string;
27886
27897
  header: string;
27887
27898
  style: vue.StyleValue;
27888
27899
  title: string;
@@ -27892,6 +27903,7 @@ declare const VDatePicker: {
27892
27903
  tile: boolean;
27893
27904
  nextIcon: string;
27894
27905
  prevIcon: string;
27906
+ reverseTransition: string;
27895
27907
  modeIcon: string;
27896
27908
  viewMode: "month" | "year" | "months";
27897
27909
  showAdjacentMonths: boolean;
@@ -27934,6 +27946,7 @@ declare const VDatePicker: {
27934
27946
  'update:viewMode': (date: any) => true;
27935
27947
  }, "multiple" | "$children" | "v-slot:default" | "v-slots" | "modelValue" | "v-slot:title" | "update:modelValue" | "v-slot:header" | "v-slot:actions">, string, {
27936
27948
  active: string | string[];
27949
+ transition: string;
27937
27950
  header: string;
27938
27951
  style: vue.StyleValue;
27939
27952
  title: string;
@@ -27944,6 +27957,7 @@ declare const VDatePicker: {
27944
27957
  tile: boolean;
27945
27958
  nextIcon: string;
27946
27959
  prevIcon: string;
27960
+ reverseTransition: string;
27947
27961
  modeIcon: string;
27948
27962
  viewMode: "month" | "year" | "months";
27949
27963
  showAdjacentMonths: boolean;
@@ -28044,6 +28058,14 @@ declare const VDatePicker: {
28044
28058
  hideWeekdays: BooleanConstructor;
28045
28059
  multiple: vue.PropType<number | boolean | "range" | (string & {})>;
28046
28060
  showWeek: BooleanConstructor;
28061
+ transition: {
28062
+ type: StringConstructor;
28063
+ default: string;
28064
+ };
28065
+ reverseTransition: {
28066
+ type: StringConstructor;
28067
+ default: string;
28068
+ };
28047
28069
  active: {
28048
28070
  type: vue.PropType<string | string[]>;
28049
28071
  default: undefined;
@@ -28138,6 +28160,14 @@ declare const VDatePicker: {
28138
28160
  hideWeekdays: BooleanConstructor;
28139
28161
  multiple: vue.PropType<number | boolean | "range" | (string & {})>;
28140
28162
  showWeek: BooleanConstructor;
28163
+ transition: {
28164
+ type: StringConstructor;
28165
+ default: string;
28166
+ };
28167
+ reverseTransition: {
28168
+ type: StringConstructor;
28169
+ default: string;
28170
+ };
28141
28171
  active: {
28142
28172
  type: vue.PropType<string | string[]>;
28143
28173
  default: undefined;
@@ -28521,7 +28551,9 @@ type VDatePickerHeader = InstanceType<typeof VDatePickerHeader>;
28521
28551
 
28522
28552
  declare const VDatePickerMonth: {
28523
28553
  new (...args: any[]): vue.CreateComponentPublicInstance<{
28554
+ transition: string;
28524
28555
  disabled: boolean;
28556
+ reverseTransition: string;
28525
28557
  showAdjacentMonths: boolean;
28526
28558
  weekdays: number[];
28527
28559
  hideWeekdays: boolean;
@@ -28572,7 +28604,9 @@ declare const VDatePickerMonth: {
28572
28604
  'update:month': (date: number) => true;
28573
28605
  'update:year': (date: number) => true;
28574
28606
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
28607
+ transition: string;
28575
28608
  disabled: boolean;
28609
+ reverseTransition: string;
28576
28610
  showAdjacentMonths: boolean;
28577
28611
  weekdays: number[];
28578
28612
  hideWeekdays: boolean;
@@ -28619,7 +28653,9 @@ declare const VDatePickerMonth: {
28619
28653
  "onUpdate:month"?: ((date: number) => any) | undefined;
28620
28654
  "onUpdate:year"?: ((date: number) => any) | undefined;
28621
28655
  }, {
28656
+ transition: string;
28622
28657
  disabled: boolean;
28658
+ reverseTransition: string;
28623
28659
  showAdjacentMonths: boolean;
28624
28660
  weekdays: number[];
28625
28661
  hideWeekdays: boolean;
@@ -28642,7 +28678,9 @@ declare const VDatePickerMonth: {
28642
28678
  M: {};
28643
28679
  Defaults: {};
28644
28680
  }, {
28681
+ transition: string;
28645
28682
  disabled: boolean;
28683
+ reverseTransition: string;
28646
28684
  showAdjacentMonths: boolean;
28647
28685
  weekdays: number[];
28648
28686
  hideWeekdays: boolean;
@@ -28689,7 +28727,9 @@ declare const VDatePickerMonth: {
28689
28727
  "onUpdate:month"?: ((date: number) => any) | undefined;
28690
28728
  "onUpdate:year"?: ((date: number) => any) | undefined;
28691
28729
  }, () => JSX.Element, {}, {}, {}, {
28730
+ transition: string;
28692
28731
  disabled: boolean;
28732
+ reverseTransition: string;
28693
28733
  showAdjacentMonths: boolean;
28694
28734
  weekdays: number[];
28695
28735
  hideWeekdays: boolean;
@@ -28699,7 +28739,9 @@ declare const VDatePickerMonth: {
28699
28739
  __isTeleport?: undefined;
28700
28740
  __isSuspense?: undefined;
28701
28741
  } & vue.ComponentOptionsBase<{
28742
+ transition: string;
28702
28743
  disabled: boolean;
28744
+ reverseTransition: string;
28703
28745
  showAdjacentMonths: boolean;
28704
28746
  weekdays: number[];
28705
28747
  hideWeekdays: boolean;
@@ -28750,7 +28792,9 @@ declare const VDatePickerMonth: {
28750
28792
  'update:month': (date: number) => true;
28751
28793
  'update:year': (date: number) => true;
28752
28794
  }, string, {
28795
+ transition: string;
28753
28796
  disabled: boolean;
28797
+ reverseTransition: string;
28754
28798
  showAdjacentMonths: boolean;
28755
28799
  weekdays: number[];
28756
28800
  hideWeekdays: boolean;
@@ -28796,6 +28840,14 @@ declare const VDatePickerMonth: {
28796
28840
  hideWeekdays: BooleanConstructor;
28797
28841
  multiple: PropType<number | boolean | "range" | (string & {})>;
28798
28842
  showWeek: BooleanConstructor;
28843
+ transition: {
28844
+ type: StringConstructor;
28845
+ default: string;
28846
+ };
28847
+ reverseTransition: {
28848
+ type: StringConstructor;
28849
+ default: string;
28850
+ };
28799
28851
  }, vue.ExtractPropTypes<{
28800
28852
  allowedDates: PropType<unknown[] | ((date: unknown) => boolean)>;
28801
28853
  disabled: BooleanConstructor;
@@ -28827,6 +28879,14 @@ declare const VDatePickerMonth: {
28827
28879
  hideWeekdays: BooleanConstructor;
28828
28880
  multiple: PropType<number | boolean | "range" | (string & {})>;
28829
28881
  showWeek: BooleanConstructor;
28882
+ transition: {
28883
+ type: StringConstructor;
28884
+ default: string;
28885
+ };
28886
+ reverseTransition: {
28887
+ type: StringConstructor;
28888
+ default: string;
28889
+ };
28830
28890
  }>>;
28831
28891
  type VDatePickerMonth = InstanceType<typeof VDatePickerMonth>;
28832
28892
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.5.9-dev.2024-03-29
2
+ * Vuetify v3.5.9-dev.2024-03-30
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -18715,7 +18715,7 @@ const VDataTableFooter = genericComponent()({
18715
18715
  }
18716
18716
  return {
18717
18717
  ...option,
18718
- title: t(option.title)
18718
+ title: !isNaN(Number(option.title)) ? option.title : t(option.title)
18719
18719
  };
18720
18720
  }));
18721
18721
  useRender(() => {
@@ -20765,6 +20765,14 @@ const makeVDatePickerMonthProps = propsFactory({
20765
20765
  hideWeekdays: Boolean,
20766
20766
  multiple: [Boolean, Number, String],
20767
20767
  showWeek: Boolean,
20768
+ transition: {
20769
+ type: String,
20770
+ default: 'picker-transition'
20771
+ },
20772
+ reverseTransition: {
20773
+ type: String,
20774
+ default: 'picker-reverse-transition'
20775
+ },
20768
20776
  ...makeCalendarProps()
20769
20777
  }, 'VDatePickerMonth');
20770
20778
  const VDatePickerMonth = genericComponent()({
@@ -20789,6 +20797,10 @@ const VDatePickerMonth = genericComponent()({
20789
20797
  const adapter = useDate();
20790
20798
  const rangeStart = shallowRef();
20791
20799
  const rangeStop = shallowRef();
20800
+ const isReverse = shallowRef(false);
20801
+ const transition = computed(() => {
20802
+ return !isReverse.value ? props.transition : props.reverseTransition;
20803
+ });
20792
20804
  if (props.multiple === 'range' && model.value.length > 0) {
20793
20805
  rangeStart.value = model.value[0];
20794
20806
  if (model.value.length > 1) {
@@ -20799,6 +20811,10 @@ const VDatePickerMonth = genericComponent()({
20799
20811
  const max = ['number', 'string'].includes(typeof props.multiple) ? Number(props.multiple) : Infinity;
20800
20812
  return model.value.length >= max;
20801
20813
  });
20814
+ watch(daysInMonth, (val, oldVal) => {
20815
+ if (!oldVal) return;
20816
+ isReverse.value = adapter.isBefore(val[0].date, oldVal[0].date);
20817
+ });
20802
20818
  function onRangeClick(value) {
20803
20819
  const _value = adapter.startOfDay(value);
20804
20820
  if (!rangeStart.value) {
@@ -20858,48 +20874,53 @@ const VDatePickerMonth = genericComponent()({
20858
20874
  "class": "v-date-picker-month__day"
20859
20875
  }, [createTextVNode("\xA0")]), weekNumbers.value.map(week => createVNode("div", {
20860
20876
  "class": ['v-date-picker-month__day', 'v-date-picker-month__day--adjacent']
20861
- }, [week]))]), createVNode("div", {
20862
- "ref": daysRef,
20863
- "class": "v-date-picker-month__days"
20864
- }, [!props.hideWeekdays && adapter.getWeekdays().map(weekDay => createVNode("div", {
20865
- "class": ['v-date-picker-month__day', 'v-date-picker-month__weekday']
20866
- }, [weekDay])), daysInMonth.value.map((item, i) => {
20867
- const slotProps = {
20868
- props: {
20869
- onClick: () => onClick(item.date)
20870
- },
20871
- item,
20872
- i
20873
- };
20874
- if (atMax.value && !item.isSelected) {
20875
- item.isDisabled = true;
20876
- }
20877
- return createVNode("div", {
20878
- "class": ['v-date-picker-month__day', {
20879
- 'v-date-picker-month__day--adjacent': item.isAdjacent,
20880
- 'v-date-picker-month__day--hide-adjacent': item.isHidden,
20881
- 'v-date-picker-month__day--selected': item.isSelected,
20882
- 'v-date-picker-month__day--week-end': item.isWeekEnd,
20883
- 'v-date-picker-month__day--week-start': item.isWeekStart
20884
- }],
20885
- "data-v-date": !item.isDisabled ? item.isoDate : undefined
20886
- }, [(props.showAdjacentMonths || !item.isAdjacent) && createVNode(VDefaultsProvider, {
20887
- "defaults": {
20888
- VBtn: {
20889
- class: 'v-date-picker-month__day-btn',
20890
- color: (item.isSelected || item.isToday) && !item.isDisabled ? props.color : undefined,
20891
- disabled: item.isDisabled,
20892
- icon: true,
20893
- ripple: false,
20894
- text: item.localized,
20895
- variant: item.isDisabled ? item.isToday ? 'outlined' : 'text' : item.isToday && !item.isSelected ? 'outlined' : 'flat',
20877
+ }, [week]))]), createVNode(MaybeTransition, {
20878
+ "name": transition.value
20879
+ }, {
20880
+ default: () => [createVNode("div", {
20881
+ "ref": daysRef,
20882
+ "key": daysInMonth.value[0].date.toString(),
20883
+ "class": "v-date-picker-month__days"
20884
+ }, [!props.hideWeekdays && adapter.getWeekdays().map(weekDay => createVNode("div", {
20885
+ "class": ['v-date-picker-month__day', 'v-date-picker-month__weekday']
20886
+ }, [weekDay])), daysInMonth.value.map((item, i) => {
20887
+ const slotProps = {
20888
+ props: {
20896
20889
  onClick: () => onClick(item.date)
20897
- }
20890
+ },
20891
+ item,
20892
+ i
20893
+ };
20894
+ if (atMax.value && !item.isSelected) {
20895
+ item.isDisabled = true;
20898
20896
  }
20899
- }, {
20900
- default: () => [slots.day?.(slotProps) ?? createVNode(VBtn, slotProps.props, null)]
20901
- })]);
20902
- })])]);
20897
+ return createVNode("div", {
20898
+ "class": ['v-date-picker-month__day', {
20899
+ 'v-date-picker-month__day--adjacent': item.isAdjacent,
20900
+ 'v-date-picker-month__day--hide-adjacent': item.isHidden,
20901
+ 'v-date-picker-month__day--selected': item.isSelected,
20902
+ 'v-date-picker-month__day--week-end': item.isWeekEnd,
20903
+ 'v-date-picker-month__day--week-start': item.isWeekStart
20904
+ }],
20905
+ "data-v-date": !item.isDisabled ? item.isoDate : undefined
20906
+ }, [(props.showAdjacentMonths || !item.isAdjacent) && createVNode(VDefaultsProvider, {
20907
+ "defaults": {
20908
+ VBtn: {
20909
+ class: 'v-date-picker-month__day-btn',
20910
+ color: (item.isSelected || item.isToday) && !item.isDisabled ? props.color : undefined,
20911
+ disabled: item.isDisabled,
20912
+ icon: true,
20913
+ ripple: false,
20914
+ text: item.localized,
20915
+ variant: item.isDisabled ? item.isToday ? 'outlined' : 'text' : item.isToday && !item.isSelected ? 'outlined' : 'flat',
20916
+ onClick: () => onClick(item.date)
20917
+ }
20918
+ }
20919
+ }, {
20920
+ default: () => [slots.day?.(slotProps) ?? createVNode(VBtn, slotProps.props, null)]
20921
+ })]);
20922
+ })])]
20923
+ })]);
20903
20924
  }
20904
20925
  });
20905
20926
 
@@ -27671,7 +27692,7 @@ function createVuetify$1() {
27671
27692
  goTo
27672
27693
  };
27673
27694
  }
27674
- const version$1 = "3.5.9-dev.2024-03-29";
27695
+ const version$1 = "3.5.9-dev.2024-03-30";
27675
27696
  createVuetify$1.version = version$1;
27676
27697
 
27677
27698
  // Vue's inject() can only be used in setup
@@ -27924,7 +27945,7 @@ var index = /*#__PURE__*/Object.freeze({
27924
27945
 
27925
27946
  /* eslint-disable local-rules/sort-imports */
27926
27947
 
27927
- const version = "3.5.9-dev.2024-03-29";
27948
+ const version = "3.5.9-dev.2024-03-30";
27928
27949
 
27929
27950
  /* eslint-disable local-rules/sort-imports */
27930
27951