@vuetify/nightly 3.7.0-beta.1-dev.2024-07-29 → 3.7.0-beta.1-dev.2024-08-01

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 (135) hide show
  1. package/dist/json/attributes.json +17 -5
  2. package/dist/json/importMap-labs.json +12 -12
  3. package/dist/json/importMap.json +112 -112
  4. package/dist/json/tags.json +3 -0
  5. package/dist/json/web-types.json +44 -14
  6. package/dist/vuetify-labs.css +4400 -3677
  7. package/dist/vuetify-labs.d.ts +219 -117
  8. package/dist/vuetify-labs.esm.js +125 -77
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +125 -77
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +3534 -2811
  13. package/dist/vuetify.d.ts +230 -146
  14. package/dist/vuetify.esm.js +62 -39
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +62 -39
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +52 -51
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAlert/VAlert.css +5 -1
  22. package/lib/components/VAutocomplete/VAutocomplete.css +4 -0
  23. package/lib/components/VAutocomplete/index.d.mts +42 -24
  24. package/lib/components/VAvatar/VAvatar.css +8 -4
  25. package/lib/components/VAvatar/VAvatar.mjs +1 -1
  26. package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
  27. package/lib/components/VBadge/VBadge.css +2 -0
  28. package/lib/components/VBanner/VBanner.css +12 -4
  29. package/lib/components/VBottomNavigation/VBottomNavigation.css +11 -3
  30. package/lib/components/VBottomSheet/VBottomSheet.css +2 -0
  31. package/lib/components/VBtn/VBtn.css +16 -9
  32. package/lib/components/VBtn/VBtn.mjs +1 -1
  33. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  34. package/lib/components/VBtn/VBtn.sass +4 -4
  35. package/lib/components/VBtnGroup/VBtnGroup.css +12 -4
  36. package/lib/components/VCard/VCard.css +9 -1
  37. package/lib/components/VCarousel/VCarousel.css +2 -0
  38. package/lib/components/VChip/VChip.css +15 -9
  39. package/lib/components/VChip/VChip.sass +1 -1
  40. package/lib/components/VColorPicker/VColorPicker.css +2 -0
  41. package/lib/components/VColorPicker/VColorPicker.sass +4 -4
  42. package/lib/components/VColorPicker/VColorPickerPreview.sass +4 -4
  43. package/lib/components/VCombobox/VCombobox.css +4 -0
  44. package/lib/components/VCombobox/index.d.mts +42 -24
  45. package/lib/components/VDialog/VDialog.css +5 -0
  46. package/lib/components/VDialog/index.d.mts +3 -3
  47. package/lib/components/VDivider/VDivider.css +2 -0
  48. package/lib/components/VExpansionPanel/VExpansionPanel.css +11 -5
  49. package/lib/components/VExpansionPanel/VExpansionPanel.sass +3 -3
  50. package/lib/components/VField/VField.css +13 -1
  51. package/lib/components/VField/VField.sass +5 -8
  52. package/lib/components/VFooter/VFooter.css +12 -4
  53. package/lib/components/VFooter/VFooter.mjs +20 -14
  54. package/lib/components/VFooter/VFooter.mjs.map +1 -1
  55. package/lib/components/VFooter/index.d.mts +3 -3
  56. package/lib/components/VGrid/VGrid.sass +1 -1
  57. package/lib/components/VGrid/_mixins.sass +4 -4
  58. package/lib/components/VImg/VImg.css +6 -0
  59. package/lib/components/VKbd/VKbd.css +2 -0
  60. package/lib/components/VList/VList.css +12 -4
  61. package/lib/components/VList/VListItem.css +21 -11
  62. package/lib/components/VList/VListItem.mjs +1 -1
  63. package/lib/components/VList/VListItem.mjs.map +1 -1
  64. package/lib/components/VList/VListItem.sass +1 -1
  65. package/lib/components/VMain/VMain.css +2 -0
  66. package/lib/components/VMenu/VMenu.css +6 -0
  67. package/lib/components/VMenu/VMenu.mjs +20 -4
  68. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  69. package/lib/components/VMenu/index.d.mts +27 -12
  70. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +9 -3
  71. package/lib/components/VOtpInput/VOtpInput.css +3 -1
  72. package/lib/components/VOtpInput/VOtpInput.sass +1 -2
  73. package/lib/components/VOverflowBtn/VOverflowBtn.sass +1 -1
  74. package/lib/components/VOverlay/VOverlay.mjs +5 -4
  75. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  76. package/lib/components/VOverlay/useActivator.mjs +3 -2
  77. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  78. package/lib/components/VSelect/VSelect.css +4 -0
  79. package/lib/components/VSelect/index.d.mts +42 -24
  80. package/lib/components/VSelectionControl/VSelectionControl.css +6 -4
  81. package/lib/components/VSelectionControl/VSelectionControl.sass +1 -1
  82. package/lib/components/VSheet/VSheet.css +12 -4
  83. package/lib/components/VSkeletonLoader/VSkeletonLoader.css +6 -4
  84. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +9 -8
  85. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
  86. package/lib/components/VSkeletonLoader/VSkeletonLoader.sass +1 -2
  87. package/lib/components/VSlider/VSliderThumb.sass +2 -2
  88. package/lib/components/VSnackbar/VSnackbar.css +2 -0
  89. package/lib/components/VSnackbar/VSnackbar.mjs +4 -4
  90. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  91. package/lib/components/VSnackbar/index.d.mts +3 -3
  92. package/lib/components/VSpeedDial/index.d.mts +28 -13
  93. package/lib/components/VStepper/VStepper.css +8 -2
  94. package/lib/components/VStepper/VStepper.sass +2 -4
  95. package/lib/components/VStepper/VStepperItem.css +4 -1
  96. package/lib/components/VStepper/VStepperItem.sass +1 -1
  97. package/lib/components/VSwitch/VSwitch.css +2 -0
  98. package/lib/components/VSwitch/VSwitch.sass +10 -10
  99. package/lib/components/VSystemBar/VSystemBar.css +14 -8
  100. package/lib/components/VTable/VTable.css +8 -4
  101. package/lib/components/VTable/VTable.sass +2 -3
  102. package/lib/components/VTimeline/VTimeline.css +2 -0
  103. package/lib/components/VToolbar/VToolbar.css +21 -7
  104. package/lib/components/VToolbar/VToolbar.sass +1 -2
  105. package/lib/components/VTooltip/index.d.mts +3 -3
  106. package/lib/components/VTreeview/VTreeview.sass +9 -9
  107. package/lib/components/index.d.mts +193 -109
  108. package/lib/entry-bundler.mjs +1 -1
  109. package/lib/framework.mjs +1 -1
  110. package/lib/index.d.mts +37 -37
  111. package/lib/labs/VNumberInput/VNumberInput.mjs +60 -36
  112. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  113. package/lib/labs/VNumberInput/index.d.mts +17 -8
  114. package/lib/labs/VPicker/VPicker.css +6 -2
  115. package/lib/labs/VPicker/VPicker.sass +2 -3
  116. package/lib/labs/VPullToRefresh/VPullToRefresh.mjs +4 -3
  117. package/lib/labs/VPullToRefresh/VPullToRefresh.mjs.map +1 -1
  118. package/lib/labs/VPullToRefresh/index.d.mts +9 -0
  119. package/lib/labs/VSnackbarQueue/index.d.mts +3 -3
  120. package/lib/labs/components.d.mts +29 -11
  121. package/lib/styles/generic/_colors.scss +9 -3
  122. package/lib/styles/main.css +520 -0
  123. package/lib/styles/tools/_absolute.sass +8 -7
  124. package/lib/styles/tools/_border.sass +4 -3
  125. package/lib/styles/tools/_display.sass +8 -7
  126. package/lib/styles/tools/_elevation.sass +4 -2
  127. package/lib/styles/tools/_index.sass +0 -1
  128. package/lib/styles/tools/_radius.sass +6 -5
  129. package/lib/styles/tools/_rounded.sass +2 -1
  130. package/lib/styles/tools/_theme.sass +3 -2
  131. package/lib/styles/tools/_typography.sass +6 -5
  132. package/lib/styles/tools/_utilities.sass +5 -5
  133. package/lib/styles/utilities/_index.sass +7 -7
  134. package/package.json +1 -1
  135. package/lib/styles/tools/_sheet.sass +0 -14
@@ -76,6 +76,7 @@ declare const VNumberInput: {
76
76
  errorMessages: string | readonly string[] | null;
77
77
  maxErrors: string | number;
78
78
  rules: readonly ValidationRule[];
79
+ modelValue: Number | null;
79
80
  tile: boolean;
80
81
  density: Density;
81
82
  clearIcon: IconValue;
@@ -105,7 +106,6 @@ declare const VNumberInput: {
105
106
  theme?: string | undefined;
106
107
  counter?: string | number | boolean | undefined;
107
108
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
108
- modelValue?: any;
109
109
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
110
110
  validationValue?: any;
111
111
  rounded?: string | number | boolean | undefined;
@@ -184,7 +184,7 @@ declare const VNumberInput: {
184
184
  } & {
185
185
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
186
186
  }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
187
- 'update:modelValue': (val: number) => true;
187
+ 'update:modelValue': (val: number) => boolean;
188
188
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
189
189
  flat: boolean;
190
190
  reverse: boolean;
@@ -206,6 +206,7 @@ declare const VNumberInput: {
206
206
  errorMessages: string | readonly string[] | null;
207
207
  maxErrors: string | number;
208
208
  rules: readonly ValidationRule[];
209
+ modelValue: Number | null;
209
210
  tile: boolean;
210
211
  density: Density;
211
212
  clearIcon: IconValue;
@@ -235,7 +236,6 @@ declare const VNumberInput: {
235
236
  theme?: string | undefined;
236
237
  counter?: string | number | boolean | undefined;
237
238
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
238
- modelValue?: any;
239
239
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
240
240
  validationValue?: any;
241
241
  rounded?: string | number | boolean | undefined;
@@ -334,6 +334,7 @@ declare const VNumberInput: {
334
334
  errorMessages: string | readonly string[] | null;
335
335
  maxErrors: string | number;
336
336
  rules: readonly ValidationRule[];
337
+ modelValue: Number | null;
337
338
  rounded: string | number | boolean;
338
339
  tile: boolean;
339
340
  density: Density;
@@ -419,6 +420,7 @@ declare const VNumberInput: {
419
420
  errorMessages: string | readonly string[] | null;
420
421
  maxErrors: string | number;
421
422
  rules: readonly ValidationRule[];
423
+ modelValue: Number | null;
422
424
  tile: boolean;
423
425
  density: Density;
424
426
  clearIcon: IconValue;
@@ -448,7 +450,6 @@ declare const VNumberInput: {
448
450
  theme?: string | undefined;
449
451
  counter?: string | number | boolean | undefined;
450
452
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
451
- modelValue?: any;
452
453
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
453
454
  validationValue?: any;
454
455
  rounded?: string | number | boolean | undefined;
@@ -547,6 +548,7 @@ declare const VNumberInput: {
547
548
  errorMessages: string | readonly string[] | null;
548
549
  maxErrors: string | number;
549
550
  rules: readonly ValidationRule[];
551
+ modelValue: Number | null;
550
552
  rounded: string | number | boolean;
551
553
  tile: boolean;
552
554
  density: Density;
@@ -587,6 +589,7 @@ declare const VNumberInput: {
587
589
  errorMessages: string | readonly string[] | null;
588
590
  maxErrors: string | number;
589
591
  rules: readonly ValidationRule[];
592
+ modelValue: Number | null;
590
593
  tile: boolean;
591
594
  density: Density;
592
595
  clearIcon: IconValue;
@@ -616,7 +619,6 @@ declare const VNumberInput: {
616
619
  theme?: string | undefined;
617
620
  counter?: string | number | boolean | undefined;
618
621
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
619
- modelValue?: any;
620
622
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
621
623
  validationValue?: any;
622
624
  rounded?: string | number | boolean | undefined;
@@ -695,7 +697,7 @@ declare const VNumberInput: {
695
697
  } & {
696
698
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
697
699
  }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
698
- 'update:modelValue': (val: number) => true;
700
+ 'update:modelValue': (val: number) => boolean;
699
701
  }, string, {
700
702
  flat: boolean;
701
703
  reverse: boolean;
@@ -717,6 +719,7 @@ declare const VNumberInput: {
717
719
  errorMessages: string | readonly string[] | null;
718
720
  maxErrors: string | number;
719
721
  rules: readonly ValidationRule[];
722
+ modelValue: Number | null;
720
723
  rounded: string | number | boolean;
721
724
  tile: boolean;
722
725
  density: Density;
@@ -838,7 +841,6 @@ declare const VNumberInput: {
838
841
  type: PropType<readonly ValidationRule[]>;
839
842
  default: () => never[];
840
843
  };
841
- modelValue: null;
842
844
  validateOn: PropType<("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined>;
843
845
  validationValue: null;
844
846
  rounded: {
@@ -887,6 +889,10 @@ declare const VNumberInput: {
887
889
  };
888
890
  inset: BooleanConstructor;
889
891
  hideInput: BooleanConstructor;
892
+ modelValue: {
893
+ type: PropType<Number | null>;
894
+ default: null;
895
+ };
890
896
  min: {
891
897
  type: NumberConstructor;
892
898
  default: number;
@@ -963,7 +969,6 @@ declare const VNumberInput: {
963
969
  type: PropType<readonly ValidationRule[]>;
964
970
  default: () => never[];
965
971
  };
966
- modelValue: null;
967
972
  validateOn: PropType<("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined>;
968
973
  validationValue: null;
969
974
  rounded: {
@@ -1012,6 +1017,10 @@ declare const VNumberInput: {
1012
1017
  };
1013
1018
  inset: BooleanConstructor;
1014
1019
  hideInput: BooleanConstructor;
1020
+ modelValue: {
1021
+ type: PropType<Number | null>;
1022
+ default: null;
1023
+ };
1015
1024
  min: {
1016
1025
  type: NumberConstructor;
1017
1026
  default: number;
@@ -1,11 +1,15 @@
1
1
  .v-picker.v-sheet {
2
- box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
3
- border-radius: 4px;
4
2
  display: grid;
5
3
  grid-auto-rows: min-content;
6
4
  grid-template-areas: "title" "header" "body";
7
5
  overflow: hidden;
8
6
  }
7
+ .v-picker.v-sheet {
8
+ box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
9
+ }
10
+ .v-picker.v-sheet {
11
+ border-radius: 4px;
12
+ }
9
13
  .v-picker.v-sheet.v-picker--with-actions {
10
14
  grid-template-areas: "title" "header" "body" "actions";
11
15
  }
@@ -4,13 +4,12 @@
4
4
 
5
5
  @include tools.layer('components')
6
6
  .v-picker.v-sheet
7
- @include tools.elevation($picker-elevation)
8
- @include tools.rounded($picker-border-radius)
9
-
10
7
  display: grid
11
8
  grid-auto-rows: min-content
12
9
  grid-template-areas: "title" "header" "body"
13
10
  overflow: hidden
11
+ @include tools.elevation($picker-elevation)
12
+ @include tools.rounded($picker-border-radius)
14
13
 
15
14
  &.v-picker--with-actions
16
15
  grid-template-areas: "title" "header" "body" "actions"
@@ -10,6 +10,7 @@ import { clamp, convertToUnit, genericComponent, getScrollParents, useRender } f
10
10
  export const VPullToRefresh = genericComponent()({
11
11
  name: 'VPullToRefresh',
12
12
  props: {
13
+ disabled: Boolean,
13
14
  pullDownThreshold: {
14
15
  type: Number,
15
16
  default: 64
@@ -33,19 +34,19 @@ export const VPullToRefresh = genericComponent()({
33
34
  const canRefresh = computed(() => touchDiff.value >= props.pullDownThreshold && !refreshing.value);
34
35
  const topOffset = computed(() => clamp(touchDiff.value, 0, props.pullDownThreshold));
35
36
  function onTouchstart(e) {
36
- if (refreshing.value) return;
37
+ if (refreshing.value || props.disabled) return;
37
38
  touching.value = true;
38
39
  touchstartY = 'clientY' in e ? e.clientY : e.touches[0].clientY;
39
40
  }
40
41
  function onTouchmove(e) {
41
- if (refreshing.value || !touching.value) return;
42
+ if (refreshing.value || !touching.value || props.disabled) return;
42
43
  const touchY = 'clientY' in e ? e.clientY : e.touches[0].clientY;
43
44
  if (scrollParents.length && !scrollParents[0].scrollTop) {
44
45
  touchDiff.value = touchY - touchstartY;
45
46
  }
46
47
  }
47
48
  function onTouchend(e) {
48
- if (refreshing.value) return;
49
+ if (refreshing.value || props.disabled) return;
49
50
  touching.value = false;
50
51
  if (canRefresh.value) {
51
52
  function done() {
@@ -1 +1 @@
1
- {"version":3,"file":"VPullToRefresh.mjs","names":["VIcon","VProgressCircular","computed","onMounted","ref","shallowRef","watch","clamp","convertToUnit","genericComponent","getScrollParents","useRender","VPullToRefresh","name","props","pullDownThreshold","type","Number","default","emits","load","options","setup","_ref","slots","emit","touchstartY","scrollParents","touchDiff","containerRef","refreshing","goingUp","touching","canRefresh","value","topOffset","onTouchstart","e","clientY","touches","onTouchmove","touchY","length","scrollTop","onTouchend","done","stopScrolling","forEach","p","style","overflow","newVal","oldVal","_createVNode","top","height","pullDownPanel"],"sources":["../../../src/labs/VPullToRefresh/VPullToRefresh.tsx"],"sourcesContent":["// Styles\nimport './VPullToRefresh.sass'\n\n// Components\nimport { VIcon } from '@/components/VIcon'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Utilities\nimport { computed, onMounted, ref, shallowRef, watch } from 'vue'\nimport { clamp, convertToUnit, genericComponent, getScrollParents, useRender } from '@/util'\n\nexport type VPullToRefreshSlots = {\n default: never\n pullDownPanel: {\n canRefresh: boolean\n goingUp: boolean\n refreshing: boolean\n }\n}\n\nexport const VPullToRefresh = genericComponent<VPullToRefreshSlots>()({\n name: 'VPullToRefresh',\n\n props: {\n pullDownThreshold: {\n type: Number,\n default: 64,\n },\n },\n\n emits: {\n load: (options: { done: () => void }) => true,\n },\n\n setup (props, { slots, emit }) {\n let touchstartY = 0\n let scrollParents: HTMLElement[] = []\n\n const touchDiff = shallowRef(0)\n const containerRef = ref<HTMLElement>()\n\n const refreshing = shallowRef(false)\n const goingUp = shallowRef(false)\n const touching = shallowRef(false)\n\n const canRefresh = computed(() => touchDiff.value >= props.pullDownThreshold && !refreshing.value)\n const topOffset = computed(() => clamp(touchDiff.value, 0, props.pullDownThreshold))\n\n function onTouchstart (e: TouchEvent | MouseEvent) {\n if (refreshing.value) return\n touching.value = true\n touchstartY = 'clientY' in e ? e.clientY : e.touches[0].clientY\n }\n\n function onTouchmove (e: TouchEvent | MouseEvent) {\n if (refreshing.value || !touching.value) return\n\n const touchY = 'clientY' in e ? e.clientY : e.touches[0].clientY\n\n if (scrollParents.length && !scrollParents[0].scrollTop) {\n touchDiff.value = touchY - touchstartY\n }\n }\n\n function onTouchend (e: TouchEvent | MouseEvent) {\n if (refreshing.value) return\n touching.value = false\n if (canRefresh.value) {\n function done () {\n if (!refreshing.value) return\n touchDiff.value = 0\n refreshing.value = false\n }\n emit('load', { done })\n refreshing.value = true\n } else {\n touchDiff.value = 0\n }\n }\n\n onMounted(() => {\n scrollParents = getScrollParents(containerRef.value)\n })\n\n watch([topOffset, refreshing], () => {\n if (scrollParents.length) {\n const stopScrolling = topOffset.value && !refreshing.value\n scrollParents.forEach(p => p.style.overflow = stopScrolling ? 'hidden' : 'auto')\n }\n })\n\n watch(topOffset, (newVal, oldVal) => {\n goingUp.value = newVal < oldVal\n })\n\n useRender(() => {\n return (\n <div\n class={[\n 'v-pull-to-refresh',\n ]}\n onTouchstart={ onTouchstart }\n onTouchmove={ onTouchmove }\n onTouchend={ onTouchend }\n onMousedown={ onTouchstart }\n onMouseup={ onTouchend }\n onMouseleave={ onTouchend }\n onMousemove={ onTouchmove }\n ref={ containerRef }\n >\n <div\n class={[\n 'v-pull-to-refresh__pull-down',\n {\n 'v-pull-to-refresh__pull-down--touching': touching.value,\n },\n ]}\n style={{\n top: convertToUnit(-1 * props.pullDownThreshold + topOffset.value),\n height: convertToUnit(props.pullDownThreshold),\n }}\n >\n { slots.pullDownPanel\n ? slots.pullDownPanel({\n canRefresh: canRefresh.value,\n goingUp: goingUp.value,\n refreshing: refreshing.value,\n }) : (\n <div\n class={[\n 'v-pull-to-refresh__pull-down-default',\n ]}\n >\n {\n refreshing.value ? (\n <VProgressCircular\n indeterminate\n active={ false }\n />\n ) : (\n <VIcon\n icon={ canRefresh.value || goingUp.value ? '$sortAsc' : '$sortDesc' }\n />\n )\n }\n </div>\n )\n }\n </div>\n <div\n class={[\n 'v-pull-to-refresh__scroll-container',\n {\n 'v-pull-to-refresh__scroll-container--touching': touching.value,\n },\n ]}\n style={{ top: convertToUnit(topOffset.value) }}\n >\n { slots.default?.() }\n </div>\n </div>\n )\n })\n },\n})\n\nexport type VPullToRefresh = InstanceType<typeof VPullToRefresh>\n"],"mappings":";AAAA;AACA;;AAEA;AA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AAU,CAACC,KAAK,IAAIH,OAAO,CAACG,KAAK,GAAG,UAAU,GAAG;MAAW,QAEtE,EAGN,IAAAmB,YAAA;QAAA,SAII,CACL,qCAAqC,EACrC;UACE,+CAA+C,EAAErB,QAAQ,CAACE;QAC5D,CAAC,CACF;QAAA,SACM;UAAEoB,GAAG,EAAE9C,aAAa,CAAC2B,SAAS,CAACD,KAAK;QAAE;MAAC,IAE5CV,KAAK,CAACN,OAAO,GAAG,CAAC;IAI3B,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VPullToRefresh.mjs","names":["VIcon","VProgressCircular","computed","onMounted","ref","shallowRef","watch","clamp","convertToUnit","genericComponent","getScrollParents","useRender","VPullToRefresh","name","props","disabled","Boolean","pullDownThreshold","type","Number","default","emits","load","options","setup","_ref","slots","emit","touchstartY","scrollParents","touchDiff","containerRef","refreshing","goingUp","touching","canRefresh","value","topOffset","onTouchstart","e","clientY","touches","onTouchmove","touchY","length","scrollTop","onTouchend","done","stopScrolling","forEach","p","style","overflow","newVal","oldVal","_createVNode","top","height","pullDownPanel"],"sources":["../../../src/labs/VPullToRefresh/VPullToRefresh.tsx"],"sourcesContent":["// Styles\nimport './VPullToRefresh.sass'\n\n// Components\nimport { VIcon } from '@/components/VIcon'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Utilities\nimport { computed, onMounted, ref, shallowRef, watch } from 'vue'\nimport { clamp, convertToUnit, genericComponent, getScrollParents, useRender } from '@/util'\n\nexport type VPullToRefreshSlots = {\n default: never\n pullDownPanel: {\n canRefresh: boolean\n goingUp: boolean\n refreshing: boolean\n }\n}\n\nexport const VPullToRefresh = genericComponent<VPullToRefreshSlots>()({\n name: 'VPullToRefresh',\n\n props: {\n disabled: Boolean,\n pullDownThreshold: {\n type: Number,\n default: 64,\n },\n },\n\n emits: {\n load: (options: { done: () => void }) => true,\n },\n\n setup (props, { slots, emit }) {\n let touchstartY = 0\n let scrollParents: HTMLElement[] = []\n\n const touchDiff = shallowRef(0)\n const containerRef = ref<HTMLElement>()\n\n const refreshing = shallowRef(false)\n const goingUp = shallowRef(false)\n const touching = shallowRef(false)\n\n const canRefresh = computed(() => touchDiff.value >= props.pullDownThreshold && !refreshing.value)\n const topOffset = computed(() => clamp(touchDiff.value, 0, props.pullDownThreshold))\n\n function onTouchstart (e: TouchEvent | MouseEvent) {\n if (refreshing.value || props.disabled) return\n touching.value = true\n touchstartY = 'clientY' in e ? e.clientY : e.touches[0].clientY\n }\n\n function onTouchmove (e: TouchEvent | MouseEvent) {\n if (refreshing.value || !touching.value || props.disabled) return\n\n const touchY = 'clientY' in e ? e.clientY : e.touches[0].clientY\n\n if (scrollParents.length && !scrollParents[0].scrollTop) {\n touchDiff.value = touchY - touchstartY\n }\n }\n\n function onTouchend (e: TouchEvent | MouseEvent) {\n if (refreshing.value || props.disabled) return\n touching.value = false\n if (canRefresh.value) {\n function done () {\n if (!refreshing.value) return\n touchDiff.value = 0\n refreshing.value = false\n }\n emit('load', { done })\n refreshing.value = true\n } else {\n touchDiff.value = 0\n }\n }\n\n onMounted(() => {\n scrollParents = getScrollParents(containerRef.value)\n })\n\n watch([topOffset, refreshing], () => {\n if (scrollParents.length) {\n const stopScrolling = topOffset.value && !refreshing.value\n scrollParents.forEach(p => p.style.overflow = stopScrolling ? 'hidden' : 'auto')\n }\n })\n\n watch(topOffset, (newVal, oldVal) => {\n goingUp.value = newVal < oldVal\n })\n\n useRender(() => {\n return (\n <div\n class={[\n 'v-pull-to-refresh',\n ]}\n onTouchstart={ onTouchstart }\n onTouchmove={ onTouchmove }\n onTouchend={ onTouchend }\n onMousedown={ onTouchstart }\n onMouseup={ onTouchend }\n onMouseleave={ onTouchend }\n onMousemove={ onTouchmove }\n ref={ containerRef }\n >\n <div\n class={[\n 'v-pull-to-refresh__pull-down',\n {\n 'v-pull-to-refresh__pull-down--touching': touching.value,\n },\n ]}\n style={{\n top: convertToUnit(-1 * props.pullDownThreshold + topOffset.value),\n height: convertToUnit(props.pullDownThreshold),\n }}\n >\n { slots.pullDownPanel\n ? slots.pullDownPanel({\n canRefresh: canRefresh.value,\n goingUp: goingUp.value,\n refreshing: refreshing.value,\n }) : (\n <div\n class={[\n 'v-pull-to-refresh__pull-down-default',\n ]}\n >\n {\n refreshing.value ? (\n <VProgressCircular\n indeterminate\n active={ false }\n />\n ) : (\n <VIcon\n icon={ canRefresh.value || goingUp.value ? '$sortAsc' : '$sortDesc' }\n />\n )\n }\n </div>\n )\n }\n </div>\n <div\n class={[\n 'v-pull-to-refresh__scroll-container',\n {\n 'v-pull-to-refresh__scroll-container--touching': touching.value,\n },\n ]}\n style={{ top: convertToUnit(topOffset.value) }}\n >\n { slots.default?.() }\n </div>\n </div>\n )\n })\n },\n})\n\nexport type VPullToRefresh = InstanceType<typeof VPullToRefresh>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,iBAAiB,wDAE1B;AACA,SAASC,QAAQ,EAAEC,SAAS,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACxDC,KAAK,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,gBAAgB,EAAEC,SAAS;AAW5E,OAAO,MAAMC,cAAc,GAAGH,gBAAgB,CAAsB,CAAC,CAAC;EACpEI,IAAI,EAAE,gBAAgB;EAEtBC,KAAK,EAAE;IACLC,QAAQ,EAAEC,OAAO;IACjBC,iBAAiB,EAAE;MACjBC,IAAI,EAAEC,MAAM;MACZC,OAAO,EAAE;IACX;EACF,CAAC;EAEDC,KAAK,EAAE;IACLC,IAAI,EAAGC,OAA6B,IAAK;EAC3C,CAAC;EAEDC,KAAKA,CAAEV,KAAK,EAAAW,IAAA,EAAmB;IAAA,IAAjB;MAAEC,KAAK;MAAEC;IAAK,CAAC,GAAAF,IAAA;IAC3B,IAAIG,WAAW,GAAG,CAAC;IACnB,IAAIC,aAA4B,GAAG,EAAE;IAErC,MAAMC,SAAS,GAAG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AAA,OACnBX;MAAY,IAAAwB,YAAA;QAAA,SAGT,CACL,8BAA8B,EAC9B;UACE,wCAAwC,EAAErB,QAAQ,CAACE;QACrD,CAAC,CACF;QAAA,SACM;UACLoB,GAAG,EAAEhD,aAAa,CAAC,CAAC,CAAC,GAAGM,KAAK,CAACG,iBAAiB,GAAGoB,SAAS,CAACD,KAAK,CAAC;UAClEqB,MAAM,EAAEjD,aAAa,CAACM,KAAK,CAACG,iBAAiB;QAC/C;MAAC,IAECS,KAAK,CAACgC,aAAa,GACjBhC,KAAK,CAACgC,aAAa,CAAC;QACpBvB,UAAU,EAAEA,UAAU,CAACC,KAAK;QAC5BH,OAAO,EAAEA,OAAO,CAACG,KAAK;QACtBJ,UAAU,EAAEA,UAAU,CAACI;MACzB,CAAC,CAAC,GAAAmB,YAAA;QAAA,SAES,CACL,sCAAsC;MACvC,IAGCvB,UAAU,CAACI,KAAK,GAAAmB,YAAA,CAAAtD,iBAAA;QAAA;QAAA,UAGH;MAAK,WAAAsD,YAAA,CAAAvD,KAAA;QAAA,QAIPmC,UAAU,CAACC,KAAK,IAAIH,OAAO,CAACG,KAAK,GAAG,UAAU,GAAG;MAAW,QAEtE,EAGN,IAAAmB,YAAA;QAAA,SAII,CACL,qCAAqC,EACrC;UACE,+CAA+C,EAAErB,QAAQ,CAACE;QAC5D,CAAC,CACF;QAAA,SACM;UAAEoB,GAAG,EAAEhD,aAAa,CAAC6B,SAAS,CAACD,KAAK;QAAE;MAAC,IAE5CV,KAAK,CAACN,OAAO,GAAG,CAAC;IAI3B,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -7,6 +7,7 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
7
7
 
8
8
  declare const VPullToRefresh: {
9
9
  new (...args: any[]): vue.CreateComponentPublicInstance<{
10
+ disabled: boolean;
10
11
  pullDownThreshold: number;
11
12
  } & {} & {
12
13
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -41,6 +42,7 @@ declare const VPullToRefresh: {
41
42
  done: () => void;
42
43
  }) => true;
43
44
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
45
+ disabled: boolean;
44
46
  pullDownThreshold: number;
45
47
  } & {} & {
46
48
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -71,6 +73,7 @@ declare const VPullToRefresh: {
71
73
  done: () => void;
72
74
  }) => any) | undefined;
73
75
  }, {
76
+ disabled: boolean;
74
77
  pullDownThreshold: number;
75
78
  }, true, {}, vue.SlotsType<Partial<{
76
79
  default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -91,6 +94,7 @@ declare const VPullToRefresh: {
91
94
  M: {};
92
95
  Defaults: {};
93
96
  }, {
97
+ disabled: boolean;
94
98
  pullDownThreshold: number;
95
99
  } & {} & {
96
100
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -121,12 +125,14 @@ declare const VPullToRefresh: {
121
125
  done: () => void;
122
126
  }) => any) | undefined;
123
127
  }, {}, {}, {}, {}, {
128
+ disabled: boolean;
124
129
  pullDownThreshold: number;
125
130
  }>;
126
131
  __isFragment?: undefined;
127
132
  __isTeleport?: undefined;
128
133
  __isSuspense?: undefined;
129
134
  } & vue.ComponentOptionsBase<{
135
+ disabled: boolean;
130
136
  pullDownThreshold: number;
131
137
  } & {} & {
132
138
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -161,6 +167,7 @@ declare const VPullToRefresh: {
161
167
  done: () => void;
162
168
  }) => true;
163
169
  }, string, {
170
+ disabled: boolean;
164
171
  pullDownThreshold: number;
165
172
  }, {}, string, vue.SlotsType<Partial<{
166
173
  default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -174,11 +181,13 @@ declare const VPullToRefresh: {
174
181
  [key: string]: any;
175
182
  }>[];
176
183
  }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
184
+ disabled: BooleanConstructor;
177
185
  pullDownThreshold: {
178
186
  type: NumberConstructor;
179
187
  default: number;
180
188
  };
181
189
  }, vue.ExtractPropTypes<{
190
+ disabled: BooleanConstructor;
182
191
  pullDownThreshold: {
183
192
  type: NumberConstructor;
184
193
  default: number;
@@ -654,7 +654,7 @@ declare const VSnackbar: {
654
654
  onAfterLeave?: (() => any) | undefined;
655
655
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
656
656
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
657
- }, "target" | "activatorEl" | "scrimEl" | "animateClick" | "contentEl" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
657
+ }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
658
658
  activatorEl: Ref<HTMLElement | undefined>;
659
659
  scrimEl: Ref<HTMLElement | undefined>;
660
660
  target: vue.ComputedRef<HTMLElement | [x: number, y: number] | undefined>;
@@ -1341,7 +1341,7 @@ declare const VSnackbar: {
1341
1341
  onAfterLeave?: (() => any) | undefined;
1342
1342
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1343
1343
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1344
- }, "target" | "activatorEl" | "scrimEl" | "animateClick" | "contentEl" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
1344
+ }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
1345
1345
  activatorEl: Ref<HTMLElement | undefined>;
1346
1346
  scrimEl: Ref<HTMLElement | undefined>;
1347
1347
  target: vue.ComputedRef<HTMLElement | [x: number, y: number] | undefined>;
@@ -1920,7 +1920,7 @@ declare const VSnackbar: {
1920
1920
  onAfterLeave?: (() => any) | undefined;
1921
1921
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1922
1922
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1923
- }, "target" | "activatorEl" | "scrimEl" | "animateClick" | "contentEl" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
1923
+ }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
1924
1924
  activatorEl: Ref<HTMLElement | undefined>;
1925
1925
  scrimEl: Ref<HTMLElement | undefined>;
1926
1926
  target: vue.ComputedRef<HTMLElement | [x: number, y: number] | undefined>;
@@ -2939,6 +2939,7 @@ declare const VNumberInput: {
2939
2939
  errorMessages: string | readonly string[] | null;
2940
2940
  maxErrors: string | number;
2941
2941
  rules: readonly ValidationRule$1[];
2942
+ modelValue: Number | null;
2942
2943
  tile: boolean;
2943
2944
  density: Density;
2944
2945
  clearIcon: IconValue;
@@ -2968,7 +2969,6 @@ declare const VNumberInput: {
2968
2969
  theme?: string | undefined;
2969
2970
  counter?: string | number | boolean | undefined;
2970
2971
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
2971
- modelValue?: any;
2972
2972
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
2973
2973
  validationValue?: any;
2974
2974
  rounded?: string | number | boolean | undefined;
@@ -3047,7 +3047,7 @@ declare const VNumberInput: {
3047
3047
  } & {
3048
3048
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
3049
3049
  }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3050
- 'update:modelValue': (val: number) => true;
3050
+ 'update:modelValue': (val: number) => boolean;
3051
3051
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
3052
3052
  flat: boolean;
3053
3053
  reverse: boolean;
@@ -3069,6 +3069,7 @@ declare const VNumberInput: {
3069
3069
  errorMessages: string | readonly string[] | null;
3070
3070
  maxErrors: string | number;
3071
3071
  rules: readonly ValidationRule$1[];
3072
+ modelValue: Number | null;
3072
3073
  tile: boolean;
3073
3074
  density: Density;
3074
3075
  clearIcon: IconValue;
@@ -3098,7 +3099,6 @@ declare const VNumberInput: {
3098
3099
  theme?: string | undefined;
3099
3100
  counter?: string | number | boolean | undefined;
3100
3101
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
3101
- modelValue?: any;
3102
3102
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
3103
3103
  validationValue?: any;
3104
3104
  rounded?: string | number | boolean | undefined;
@@ -3197,6 +3197,7 @@ declare const VNumberInput: {
3197
3197
  errorMessages: string | readonly string[] | null;
3198
3198
  maxErrors: string | number;
3199
3199
  rules: readonly ValidationRule$1[];
3200
+ modelValue: Number | null;
3200
3201
  rounded: string | number | boolean;
3201
3202
  tile: boolean;
3202
3203
  density: Density;
@@ -3282,6 +3283,7 @@ declare const VNumberInput: {
3282
3283
  errorMessages: string | readonly string[] | null;
3283
3284
  maxErrors: string | number;
3284
3285
  rules: readonly ValidationRule$1[];
3286
+ modelValue: Number | null;
3285
3287
  tile: boolean;
3286
3288
  density: Density;
3287
3289
  clearIcon: IconValue;
@@ -3311,7 +3313,6 @@ declare const VNumberInput: {
3311
3313
  theme?: string | undefined;
3312
3314
  counter?: string | number | boolean | undefined;
3313
3315
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
3314
- modelValue?: any;
3315
3316
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
3316
3317
  validationValue?: any;
3317
3318
  rounded?: string | number | boolean | undefined;
@@ -3410,6 +3411,7 @@ declare const VNumberInput: {
3410
3411
  errorMessages: string | readonly string[] | null;
3411
3412
  maxErrors: string | number;
3412
3413
  rules: readonly ValidationRule$1[];
3414
+ modelValue: Number | null;
3413
3415
  rounded: string | number | boolean;
3414
3416
  tile: boolean;
3415
3417
  density: Density;
@@ -3450,6 +3452,7 @@ declare const VNumberInput: {
3450
3452
  errorMessages: string | readonly string[] | null;
3451
3453
  maxErrors: string | number;
3452
3454
  rules: readonly ValidationRule$1[];
3455
+ modelValue: Number | null;
3453
3456
  tile: boolean;
3454
3457
  density: Density;
3455
3458
  clearIcon: IconValue;
@@ -3479,7 +3482,6 @@ declare const VNumberInput: {
3479
3482
  theme?: string | undefined;
3480
3483
  counter?: string | number | boolean | undefined;
3481
3484
  'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
3482
- modelValue?: any;
3483
3485
  validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
3484
3486
  validationValue?: any;
3485
3487
  rounded?: string | number | boolean | undefined;
@@ -3558,7 +3560,7 @@ declare const VNumberInput: {
3558
3560
  } & {
3559
3561
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
3560
3562
  }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
3561
- 'update:modelValue': (val: number) => true;
3563
+ 'update:modelValue': (val: number) => boolean;
3562
3564
  }, string, {
3563
3565
  flat: boolean;
3564
3566
  reverse: boolean;
@@ -3580,6 +3582,7 @@ declare const VNumberInput: {
3580
3582
  errorMessages: string | readonly string[] | null;
3581
3583
  maxErrors: string | number;
3582
3584
  rules: readonly ValidationRule$1[];
3585
+ modelValue: Number | null;
3583
3586
  rounded: string | number | boolean;
3584
3587
  tile: boolean;
3585
3588
  density: Density;
@@ -3701,7 +3704,6 @@ declare const VNumberInput: {
3701
3704
  type: PropType<readonly ValidationRule$1[]>;
3702
3705
  default: () => never[];
3703
3706
  };
3704
- modelValue: null;
3705
3707
  validateOn: PropType<("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined>;
3706
3708
  validationValue: null;
3707
3709
  rounded: {
@@ -3750,6 +3752,10 @@ declare const VNumberInput: {
3750
3752
  };
3751
3753
  inset: BooleanConstructor;
3752
3754
  hideInput: BooleanConstructor;
3755
+ modelValue: {
3756
+ type: PropType<Number | null>;
3757
+ default: null;
3758
+ };
3753
3759
  min: {
3754
3760
  type: NumberConstructor;
3755
3761
  default: number;
@@ -3826,7 +3832,6 @@ declare const VNumberInput: {
3826
3832
  type: PropType<readonly ValidationRule$1[]>;
3827
3833
  default: () => never[];
3828
3834
  };
3829
- modelValue: null;
3830
3835
  validateOn: PropType<("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined>;
3831
3836
  validationValue: null;
3832
3837
  rounded: {
@@ -3875,6 +3880,10 @@ declare const VNumberInput: {
3875
3880
  };
3876
3881
  inset: BooleanConstructor;
3877
3882
  hideInput: BooleanConstructor;
3883
+ modelValue: {
3884
+ type: PropType<Number | null>;
3885
+ default: null;
3886
+ };
3878
3887
  min: {
3879
3888
  type: NumberConstructor;
3880
3889
  default: number;
@@ -5009,7 +5018,7 @@ declare const VSnackbar: {
5009
5018
  onAfterLeave?: (() => any) | undefined;
5010
5019
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
5011
5020
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
5012
- }, "target" | "activatorEl" | "scrimEl" | "animateClick" | "contentEl" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
5021
+ }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
5013
5022
  activatorEl: Ref<HTMLElement | undefined>;
5014
5023
  scrimEl: Ref<HTMLElement | undefined>;
5015
5024
  target: vue.ComputedRef<HTMLElement | [x: number, y: number] | undefined>;
@@ -5696,7 +5705,7 @@ declare const VSnackbar: {
5696
5705
  onAfterLeave?: (() => any) | undefined;
5697
5706
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
5698
5707
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
5699
- }, "target" | "activatorEl" | "scrimEl" | "animateClick" | "contentEl" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
5708
+ }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
5700
5709
  activatorEl: Ref<HTMLElement | undefined>;
5701
5710
  scrimEl: Ref<HTMLElement | undefined>;
5702
5711
  target: vue.ComputedRef<HTMLElement | [x: number, y: number] | undefined>;
@@ -6275,7 +6284,7 @@ declare const VSnackbar: {
6275
6284
  onAfterLeave?: (() => any) | undefined;
6276
6285
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
6277
6286
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
6278
- }, "target" | "activatorEl" | "scrimEl" | "animateClick" | "contentEl" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
6287
+ }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
6279
6288
  activatorEl: Ref<HTMLElement | undefined>;
6280
6289
  scrimEl: Ref<HTMLElement | undefined>;
6281
6290
  target: vue.ComputedRef<HTMLElement | [x: number, y: number] | undefined>;
@@ -8166,6 +8175,7 @@ type VStepperVerticalActions = InstanceType<typeof VStepperVerticalActions>;
8166
8175
 
8167
8176
  declare const VPullToRefresh: {
8168
8177
  new (...args: any[]): vue.CreateComponentPublicInstance<{
8178
+ disabled: boolean;
8169
8179
  pullDownThreshold: number;
8170
8180
  } & {} & {
8171
8181
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -8200,6 +8210,7 @@ declare const VPullToRefresh: {
8200
8210
  done: () => void;
8201
8211
  }) => true;
8202
8212
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
8213
+ disabled: boolean;
8203
8214
  pullDownThreshold: number;
8204
8215
  } & {} & {
8205
8216
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -8230,6 +8241,7 @@ declare const VPullToRefresh: {
8230
8241
  done: () => void;
8231
8242
  }) => any) | undefined;
8232
8243
  }, {
8244
+ disabled: boolean;
8233
8245
  pullDownThreshold: number;
8234
8246
  }, true, {}, vue.SlotsType<Partial<{
8235
8247
  default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -8250,6 +8262,7 @@ declare const VPullToRefresh: {
8250
8262
  M: {};
8251
8263
  Defaults: {};
8252
8264
  }, {
8265
+ disabled: boolean;
8253
8266
  pullDownThreshold: number;
8254
8267
  } & {} & {
8255
8268
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -8280,12 +8293,14 @@ declare const VPullToRefresh: {
8280
8293
  done: () => void;
8281
8294
  }) => any) | undefined;
8282
8295
  }, {}, {}, {}, {}, {
8296
+ disabled: boolean;
8283
8297
  pullDownThreshold: number;
8284
8298
  }>;
8285
8299
  __isFragment?: undefined;
8286
8300
  __isTeleport?: undefined;
8287
8301
  __isSuspense?: undefined;
8288
8302
  } & vue.ComponentOptionsBase<{
8303
+ disabled: boolean;
8289
8304
  pullDownThreshold: number;
8290
8305
  } & {} & {
8291
8306
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -8320,6 +8335,7 @@ declare const VPullToRefresh: {
8320
8335
  done: () => void;
8321
8336
  }) => true;
8322
8337
  }, string, {
8338
+ disabled: boolean;
8323
8339
  pullDownThreshold: number;
8324
8340
  }, {}, string, vue.SlotsType<Partial<{
8325
8341
  default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -8333,11 +8349,13 @@ declare const VPullToRefresh: {
8333
8349
  [key: string]: any;
8334
8350
  }>[];
8335
8351
  }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
8352
+ disabled: BooleanConstructor;
8336
8353
  pullDownThreshold: {
8337
8354
  type: NumberConstructor;
8338
8355
  default: number;
8339
8356
  };
8340
8357
  }, vue.ExtractPropTypes<{
8358
+ disabled: BooleanConstructor;
8341
8359
  pullDownThreshold: {
8342
8360
  type: NumberConstructor;
8343
8361
  default: number;
@@ -5,15 +5,21 @@
5
5
  @use '../tools/functions' as *;
6
6
 
7
7
  @mixin background-color($color_value) {
8
- background-color: $color_value !important;
8
+ & {
9
+ background-color: $color_value !important;
10
+ }
9
11
  }
10
12
  @mixin text-color($color_value) {
11
- color: $color_value !important;
13
+ & {
14
+ color: $color_value !important;
15
+ }
12
16
  }
13
17
  @mixin background-text-color($color_name, $color_type) {
14
18
  $map_value: map-deep-get(colors.$text-on-colors, $color_name, $color_type);
15
19
 
16
- color: $map_value !important;
20
+ & {
21
+ color: $map_value !important;
22
+ }
17
23
  }
18
24
 
19
25
  @if (settings.$color-pack) {