@vuetify/nightly 3.0.0-next-20220107.0 → 3.0.0-next-20220112.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.
@@ -2779,29 +2779,25 @@
2779
2779
  "type": "any",
2780
2780
  "description": "Show buttons for going to first and last page"
2781
2781
  },
2782
- "v-pagination/tag": {
2783
- "type": "string",
2784
- "description": "Specify a custom tag used on the root element."
2785
- },
2786
- "v-pagination/elevation": {
2787
- "type": "number|string",
2788
- "description": "Designates an elevation applied to the component between 0 and 24. You can find more information on the [elevation page](/styles/elevation)."
2782
+ "v-pagination/border": {
2783
+ "type": "boolean|number|string",
2784
+ "description": "Applies border styles to component."
2789
2785
  },
2790
2786
  "v-pagination/density": {
2791
2787
  "type": "string",
2792
2788
  "description": "Adjusts the spacing within the component. Available options are: **default**, **comfortable**, and **compact**."
2793
2789
  },
2794
- "v-pagination/rounded": {
2795
- "type": "boolean|number|string",
2796
- "description": ""
2790
+ "v-pagination/elevation": {
2791
+ "type": "number|string",
2792
+ "description": "Designates an elevation applied to the component between 0 and 24. You can find more information on the [elevation page](/styles/elevation)."
2797
2793
  },
2798
2794
  "v-pagination/size": {
2799
2795
  "type": "string|number",
2800
2796
  "description": "Sets the height and width of the component. Default unit is px. Can also use the following predefined sizes: **x-small**, **small**, **default**, **large**, and **x-large**."
2801
2797
  },
2802
- "v-pagination/border": {
2803
- "type": "boolean|number|string",
2804
- "description": "Applies border styles to component."
2798
+ "v-pagination/tag": {
2799
+ "type": "string",
2800
+ "description": "Specify a custom tag used on the root element."
2805
2801
  },
2806
2802
  "v-pagination/theme": {
2807
2803
  "type": "string",
@@ -1061,7 +1061,6 @@
1061
1061
  "page-aria-label",
1062
1062
  "prev-icon",
1063
1063
  "previous-aria-label",
1064
- "rounded",
1065
1064
  "show-first-last-page",
1066
1065
  "size",
1067
1066
  "start",
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "vuetify",
5
- "version": "3.0.0-next-20220107.0",
5
+ "version": "3.0.0-next-20220112.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
@@ -9633,22 +9633,14 @@
9633
9633
  }
9634
9634
  },
9635
9635
  {
9636
- "name": "tag",
9637
- "description": "Specify a custom tag used on the root element.",
9638
- "doc-url": "https://vuetifyjs.com/api/v-pagination#props",
9639
- "default": "'nav'",
9640
- "value": {
9641
- "kind": "expression",
9642
- "type": "string"
9643
- }
9644
- },
9645
- {
9646
- "name": "elevation",
9647
- "description": "Designates an elevation applied to the component between 0 and 24. You can find more information on the [elevation page](/styles/elevation).",
9636
+ "name": "border",
9637
+ "description": "Applies border styles to component.",
9648
9638
  "doc-url": "https://vuetifyjs.com/api/v-pagination#props",
9639
+ "default": "false",
9649
9640
  "value": {
9650
9641
  "kind": "expression",
9651
9642
  "type": [
9643
+ "boolean",
9652
9644
  "number",
9653
9645
  "string"
9654
9646
  ]
@@ -9665,14 +9657,12 @@
9665
9657
  }
9666
9658
  },
9667
9659
  {
9668
- "name": "rounded",
9669
- "description": "",
9660
+ "name": "elevation",
9661
+ "description": "Designates an elevation applied to the component between 0 and 24. You can find more information on the [elevation page](/styles/elevation).",
9670
9662
  "doc-url": "https://vuetifyjs.com/api/v-pagination#props",
9671
- "default": "false",
9672
9663
  "value": {
9673
9664
  "kind": "expression",
9674
9665
  "type": [
9675
- "boolean",
9676
9666
  "number",
9677
9667
  "string"
9678
9668
  ]
@@ -9692,17 +9682,13 @@
9692
9682
  }
9693
9683
  },
9694
9684
  {
9695
- "name": "border",
9696
- "description": "Applies border styles to component.",
9685
+ "name": "tag",
9686
+ "description": "Specify a custom tag used on the root element.",
9697
9687
  "doc-url": "https://vuetifyjs.com/api/v-pagination#props",
9698
- "default": "false",
9688
+ "default": "'nav'",
9699
9689
  "value": {
9700
9690
  "kind": "expression",
9701
- "type": [
9702
- "boolean",
9703
- "number",
9704
- "string"
9705
- ]
9691
+ "type": "string"
9706
9692
  }
9707
9693
  },
9708
9694
  {
package/dist/vuetify.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.0.0-next-20220107.0
2
+ * Vuetify v3.0.0-next-20220112.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -20035,24 +20035,8 @@ html.overflow-y-hidden {
20035
20035
  }
20036
20036
 
20037
20037
  .v-pagination .v-btn {
20038
- box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);
20039
20038
  border-radius: 4px;
20040
20039
  }
20041
- .v-pagination .v-btn.v-btn--density-default {
20042
- height: calc(var(--v-btn-height) + 0px);
20043
- width: calc(var(--v-btn-height) + 0px);
20044
- }
20045
- .v-pagination .v-btn.v-btn--density-comfortable {
20046
- height: calc(var(--v-btn-height) + -4px);
20047
- width: calc(var(--v-btn-height) + -4px);
20048
- }
20049
- .v-pagination .v-btn.v-btn--density-compact {
20050
- height: calc(var(--v-btn-height) + -8px);
20051
- width: calc(var(--v-btn-height) + -8px);
20052
- }
20053
- .v-pagination__list .v-btn--elevated {
20054
- box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);
20055
- }
20056
20040
  .v-pagination__item--is-active .v-btn__overlay {
20057
20041
  opacity: var(--v-border-opacity);
20058
20042
  }.v-btn-group {
package/dist/vuetify.d.ts CHANGED
@@ -6567,6 +6567,7 @@ declare const VMessages: vue.DefineComponent<{
6567
6567
  leaveAbsolute: boolean;
6568
6568
  origin: string;
6569
6569
  }>;
6570
+ leaveAbsolute: boolean;
6570
6571
  group: boolean;
6571
6572
  }>;
6572
6573
  default: string | false | (vue.TransitionProps & {
@@ -6605,10 +6606,12 @@ declare const VMessages: vue.DefineComponent<{
6605
6606
  leaveAbsolute: boolean;
6606
6607
  origin: string;
6607
6608
  }>;
6609
+ leaveAbsolute: boolean;
6608
6610
  group: boolean;
6609
6611
  };
6610
6612
  };
6611
6613
  active: BooleanConstructor;
6614
+ color: StringConstructor;
6612
6615
  value: {
6613
6616
  type: PropType<string | string[]>;
6614
6617
  default: () => never[];
@@ -6616,6 +6619,7 @@ declare const VMessages: vue.DefineComponent<{
6616
6619
  }, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<{
6617
6620
  transition?: unknown;
6618
6621
  active?: unknown;
6622
+ color?: unknown;
6619
6623
  value?: unknown;
6620
6624
  } & {
6621
6625
  value: string | string[];
@@ -6655,10 +6659,13 @@ declare const VMessages: vue.DefineComponent<{
6655
6659
  leaveAbsolute: boolean;
6656
6660
  origin: string;
6657
6661
  }>;
6662
+ leaveAbsolute: boolean;
6658
6663
  group: boolean;
6659
6664
  };
6660
6665
  active: boolean;
6661
- } & {}>, {
6666
+ } & {
6667
+ color?: string | undefined;
6668
+ }>, {
6662
6669
  value: string | string[];
6663
6670
  transition: string | false | (vue.TransitionProps & {
6664
6671
  component?: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
@@ -6696,6 +6703,7 @@ declare const VMessages: vue.DefineComponent<{
6696
6703
  leaveAbsolute: boolean;
6697
6704
  origin: string;
6698
6705
  }>;
6706
+ leaveAbsolute: boolean;
6699
6707
  group: boolean;
6700
6708
  };
6701
6709
  active: boolean;
@@ -6837,31 +6845,27 @@ declare const VPagination: vue.DefineComponent<{
6837
6845
  default: "text" | "contained" | "outlined" | "plain" | "contained-text";
6838
6846
  };
6839
6847
  theme: StringConstructor;
6840
- border: (StringConstructor | NumberConstructor | BooleanConstructor)[];
6841
- size: {
6842
- type: (StringConstructor | NumberConstructor)[];
6848
+ tag: Omit<{
6849
+ type: StringConstructor;
6850
+ default: string;
6851
+ }, "default" | "type"> & {
6852
+ type: vue.PropType<string>;
6843
6853
  default: string;
6844
6854
  };
6845
- rounded: {
6846
- type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
6847
- default: undefined;
6848
- };
6849
- density: {
6850
- type: vue.PropType<"default" | "comfortable" | "compact" | null>;
6855
+ size: {
6856
+ type: (StringConstructor | NumberConstructor)[];
6851
6857
  default: string;
6852
- validator: (v: any) => boolean;
6853
6858
  };
6854
6859
  elevation: {
6855
6860
  type: (StringConstructor | NumberConstructor)[];
6856
6861
  validator(v: any): boolean;
6857
6862
  };
6858
- tag: Omit<{
6859
- type: StringConstructor;
6860
- default: string;
6861
- }, "default" | "type"> & {
6862
- type: vue.PropType<string>;
6863
+ density: {
6864
+ type: vue.PropType<"default" | "comfortable" | "compact" | null>;
6863
6865
  default: string;
6866
+ validator: (v: any) => boolean;
6864
6867
  };
6868
+ border: (StringConstructor | NumberConstructor | BooleanConstructor)[];
6865
6869
  start: {
6866
6870
  type: (StringConstructor | NumberConstructor)[];
6867
6871
  default: number;
@@ -6937,12 +6941,11 @@ declare const VPagination: vue.DefineComponent<{
6937
6941
  textColor?: unknown;
6938
6942
  variant?: unknown;
6939
6943
  theme?: unknown;
6940
- border?: unknown;
6944
+ tag?: unknown;
6941
6945
  size?: unknown;
6942
- rounded?: unknown;
6943
- density?: unknown;
6944
6946
  elevation?: unknown;
6945
- tag?: unknown;
6947
+ density?: unknown;
6948
+ border?: unknown;
6946
6949
  start?: unknown;
6947
6950
  modelValue?: unknown;
6948
6951
  disabled?: unknown;
@@ -6987,7 +6990,6 @@ declare const VPagination: vue.DefineComponent<{
6987
6990
  theme?: string | undefined;
6988
6991
  border?: string | number | boolean | undefined;
6989
6992
  elevation?: string | number | undefined;
6990
- rounded?: string | number | boolean | undefined;
6991
6993
  color?: string | undefined;
6992
6994
  textColor?: string | undefined;
6993
6995
  totalVisible?: string | number | undefined;
@@ -7002,7 +7004,6 @@ declare const VPagination: vue.DefineComponent<{
7002
7004
  tag: string;
7003
7005
  ariaLabel: string;
7004
7006
  density: "default" | "comfortable" | "compact" | null;
7005
- rounded: string | number | boolean;
7006
7007
  modelValue: number;
7007
7008
  start: string | number;
7008
7009
  ellipsis: string;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.0.0-next-20220107.0
2
+ * Vuetify v3.0.0-next-20220112.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -247,6 +247,9 @@ function convertToUnit(str) {
247
247
  function isObject(obj) {
248
248
  return obj !== null && typeof obj === 'object' && !Array.isArray(obj);
249
249
  }
250
+ function isComponentInstance(obj) {
251
+ return obj == null ? void 0 : obj.$el;
252
+ } // KeyboardEvent.keyCode aliases
250
253
 
251
254
  const keyCodes = Object.freeze({
252
255
  enter: 13,
@@ -4777,6 +4780,7 @@ const VMessages = defineComponent({
4777
4780
  name: 'VMessages',
4778
4781
  props: {
4779
4782
  active: Boolean,
4783
+ color: String,
4780
4784
  value: {
4781
4785
  type: [Array, String],
4782
4786
  default: () => []
@@ -4784,6 +4788,7 @@ const VMessages = defineComponent({
4784
4788
  ...makeTransitionProps({
4785
4789
  transition: {
4786
4790
  component: VSlideYTransition,
4791
+ leaveAbsolute: true,
4787
4792
  group: true
4788
4793
  }
4789
4794
  })
@@ -4794,20 +4799,25 @@ const VMessages = defineComponent({
4794
4799
  slots
4795
4800
  } = _ref;
4796
4801
  const messages = computed(() => wrapInArray(props.value));
4802
+ const {
4803
+ textColorClasses,
4804
+ textColorStyles
4805
+ } = useTextColor(computed(() => props.color));
4797
4806
  return () => {
4798
4807
  var _slots$default;
4799
4808
 
4800
4809
  return createVNode(MaybeTransition, {
4801
4810
  "transition": props.transition,
4802
4811
  "tag": "div",
4803
- "class": "v-messages"
4812
+ "class": ['v-messages', textColorClasses.value],
4813
+ "style": textColorStyles.value
4804
4814
  }, {
4805
4815
  default: () => [messages.value.length > 0 && props.active && messages.value.map((message, i) => createVNode("div", {
4806
4816
  "class": "v-messages__message",
4807
- "key": i
4817
+ "key": `${i}-${messages.value}`
4808
4818
  }, [message])), slots == null ? void 0 : (_slots$default = slots.default) == null ? void 0 : _slots$default.call(slots)],
4809
4819
  _: 1
4810
- }, 8, ["transition"]);
4820
+ }, 8, ["transition", "class", "style"]);
4811
4821
  };
4812
4822
  }
4813
4823
 
@@ -5111,10 +5121,11 @@ const VInput = genericComponent()({
5111
5121
  "class": "v-input__details"
5112
5122
  }, [createVNode(VMessages, {
5113
5123
  "active": showMessages,
5114
- "value": errorMessages.value || (hasMessages ? props.messages : props.hint)
5124
+ "color": isValid.value === false ? 'error' : undefined,
5125
+ "value": errorMessages.value.length > 0 ? errorMessages.value : hasMessages ? props.messages : props.hint
5115
5126
  }, {
5116
5127
  default: slots.messages
5117
- }, 8, ["active", "value"]), (_slots$details = slots.details) == null ? void 0 : _slots$details.call(slots, slotProps.value)])], 2);
5128
+ }, 8, ["active", "color", "value"]), (_slots$details = slots.details) == null ? void 0 : _slots$details.call(slots, slotProps.value)])], 2);
5118
5129
  });
5119
5130
  return {
5120
5131
  isValid,
@@ -5819,6 +5830,14 @@ function useActivator(props, isActive) {
5819
5830
 
5820
5831
  return events;
5821
5832
  });
5833
+ const activatorRef = ref();
5834
+ watchEffect(() => {
5835
+ if (!activatorRef.value) return;
5836
+ nextTick(() => {
5837
+ const activator = activatorRef.value;
5838
+ activatorEl.value = isComponentInstance(activator) ? activator.$el : activator;
5839
+ });
5840
+ });
5822
5841
  let scope;
5823
5842
  watch(() => !!props.activator, val => {
5824
5843
  if (val && IN_BROWSER) {
@@ -5826,6 +5845,7 @@ function useActivator(props, isActive) {
5826
5845
  scope.run(() => {
5827
5846
  _useActivator(props, {
5828
5847
  activatorEl,
5848
+ activatorRef,
5829
5849
  activatorEvents
5830
5850
  });
5831
5851
  });
@@ -5838,6 +5858,7 @@ function useActivator(props, isActive) {
5838
5858
  });
5839
5859
  return {
5840
5860
  activatorEl,
5861
+ activatorRef,
5841
5862
  activatorEvents
5842
5863
  };
5843
5864
  }
@@ -6623,6 +6644,7 @@ const VOverlay = genericComponent()({
6623
6644
  }));
6624
6645
  const {
6625
6646
  activatorEl,
6647
+ activatorRef,
6626
6648
  activatorEvents
6627
6649
  } = useActivator(props, isActive);
6628
6650
  const {
@@ -6717,8 +6739,7 @@ const VOverlay = genericComponent()({
6717
6739
  return createVNode(Fragment, null, [(_slots$activator = slots.activator) == null ? void 0 : _slots$activator.call(slots, {
6718
6740
  isActive: isActive.value,
6719
6741
  props: mergeProps({
6720
- modelValue: isActive.value,
6721
- 'onUpdate:modelValue': val => isActive.value = val
6742
+ ref: activatorRef
6722
6743
  }, toHandlers(activatorEvents.value), props.activatorProps)
6723
6744
  }), createVNode(Teleport, {
6724
6745
  "disabled": !teleportTarget.value,
@@ -10151,14 +10172,13 @@ const VPagination = defineComponent({
10151
10172
  default: '...'
10152
10173
  },
10153
10174
  showFirstLastPage: Boolean,
10175
+ ...makeBorderProps(),
10176
+ ...makeDensityProps(),
10177
+ ...makeElevationProps(),
10178
+ ...makeSizeProps(),
10154
10179
  ...makeTagProps({
10155
10180
  tag: 'nav'
10156
10181
  }),
10157
- ...makeElevationProps(),
10158
- ...makeDensityProps(),
10159
- ...makeRoundedProps(),
10160
- ...makeSizeProps(),
10161
- ...makeBorderProps(),
10162
10182
  ...makeThemeProps(),
10163
10183
  ...makeVariantProps({
10164
10184
  variant: 'text'
@@ -10252,12 +10272,15 @@ const VPagination = defineComponent({
10252
10272
  refs,
10253
10273
  updateRef
10254
10274
  } = useRefs();
10275
+ provideDefaults({
10276
+ VBtn: {
10277
+ border: toRef(props, 'border'),
10278
+ density: toRef(props, 'density'),
10279
+ size: toRef(props, 'size'),
10280
+ variant: toRef(props, 'variant')
10281
+ }
10282
+ });
10255
10283
  const items = computed(() => {
10256
- const sharedProps = {
10257
- density: props.density,
10258
- rounded: props.rounded,
10259
- size: props.size
10260
- };
10261
10284
  return range.value.map((item, index) => {
10262
10285
  const ref = e => updateRef(e, index);
10263
10286
 
@@ -10265,13 +10288,11 @@ const VPagination = defineComponent({
10265
10288
  return {
10266
10289
  isActive: false,
10267
10290
  page: item,
10268
- props: { ...sharedProps,
10291
+ props: {
10269
10292
  ref,
10270
10293
  ellipsis: true,
10271
10294
  icon: true,
10272
- disabled: true,
10273
- variant: props.variant,
10274
- border: props.border
10295
+ disabled: true
10275
10296
  }
10276
10297
  };
10277
10298
  } else {
@@ -10279,14 +10300,12 @@ const VPagination = defineComponent({
10279
10300
  return {
10280
10301
  isActive,
10281
10302
  page: n(item),
10282
- props: { ...sharedProps,
10303
+ props: {
10283
10304
  ref,
10284
10305
  ellipsis: false,
10285
10306
  icon: true,
10286
10307
  disabled: !!props.disabled || props.length < 2,
10287
10308
  elevation: props.elevation,
10288
- variant: props.variant,
10289
- border: props.border,
10290
10309
  color: isActive ? props.color : undefined,
10291
10310
  ariaCurrent: isActive,
10292
10311
  ariaLabel: t(isActive ? props.currentPageAriaLabel : props.pageAriaLabel, index + 1),
@@ -10297,39 +10316,31 @@ const VPagination = defineComponent({
10297
10316
  });
10298
10317
  });
10299
10318
  const controls = computed(() => {
10300
- const sharedProps = {
10301
- color: undefined,
10302
- density: props.density,
10303
- rounded: props.rounded,
10304
- size: props.size,
10305
- variant: props.variant,
10306
- border: props.border
10307
- };
10308
10319
  const prevDisabled = !!props.disabled || page.value <= start.value;
10309
10320
  const nextDisabled = !!props.disabled || page.value >= start.value + length.value - 1;
10310
10321
  return {
10311
- first: props.showFirstLastPage ? { ...sharedProps,
10322
+ first: props.showFirstLastPage ? {
10312
10323
  icon: isRtl.value ? props.lastIcon : props.firstIcon,
10313
10324
  onClick: e => setValue(e, start.value, 'first'),
10314
10325
  disabled: prevDisabled,
10315
10326
  ariaLabel: t(props.firstAriaLabel),
10316
10327
  ariaDisabled: prevDisabled
10317
10328
  } : undefined,
10318
- prev: { ...sharedProps,
10329
+ prev: {
10319
10330
  icon: isRtl.value ? props.nextIcon : props.prevIcon,
10320
10331
  onClick: e => setValue(e, page.value - 1, 'prev'),
10321
10332
  disabled: prevDisabled,
10322
10333
  ariaLabel: t(props.previousAriaLabel),
10323
10334
  ariaDisabled: prevDisabled
10324
10335
  },
10325
- next: { ...sharedProps,
10336
+ next: {
10326
10337
  icon: isRtl.value ? props.prevIcon : props.nextIcon,
10327
10338
  onClick: e => setValue(e, page.value + 1, 'next'),
10328
10339
  disabled: nextDisabled,
10329
10340
  ariaLabel: t(props.nextAriaLabel),
10330
10341
  ariaDisabled: nextDisabled
10331
10342
  },
10332
- last: props.showFirstLastPage ? { ...sharedProps,
10343
+ last: props.showFirstLastPage ? {
10333
10344
  icon: isRtl.value ? props.firstIcon : props.lastIcon,
10334
10345
  onClick: e => setValue(e, start.value + length.value - 1, 'last'),
10335
10346
  disabled: nextDisabled,
@@ -13308,7 +13319,7 @@ const createVuetify = function () {
13308
13319
  ...options
13309
13320
  });
13310
13321
  };
13311
- const version = "3.0.0-next-20220107.0";
13322
+ const version = "3.0.0-next-20220112.0";
13312
13323
 
13313
13324
  export { components, createVuetify, directives, provideRtl, useDisplay, useLayout, useRtl, useTheme, version };
13314
13325
  //# sourceMappingURL=vuetify.esm.js.map